Author Topic: How to disable Kick Player in vote  (Read 1901 times)

Offline jakub742

  • Rank: Private
  • *
  • Posts: 14
How to disable Kick Player in vote
« on: September 28, 2011, 01:13:56 am »
I looked for this on this site but i dont found that on CoD4. Please help me. Thx for help  :)  and sorry for my english :D

Offline Grmm

  • Rank: Private
  • *
  • Posts: 46
    • http://www.nomercygamers.net
Re: How to disable Kick Player in vote
« Reply #1 on: September 28, 2011, 08:04:20 am »
As far as I know it's controlled in two files.

server.cfg
miscfeatures.cfg

Open each file and search on the word "vote"

Offline jakub742

  • Rank: Private
  • *
  • Posts: 14
Re: How to disable Kick Player in vote
« Reply #2 on: September 28, 2011, 09:27:20 am »
in server.cfg is only
// Voting
set g_allowVote "1"
set g_voteAbstainWeight "0.5"
set g_oldVoting "0"

and in miscfeatures.cfg too nothing about this i looked to all cfg and i didnt found that

Offline Grmm

  • Rank: Private
  • *
  • Posts: 46
    • http://www.nomercygamers.net
Re: How to disable Kick Player in vote
« Reply #3 on: September 28, 2011, 03:56:26 pm »
Quote from: "jakub742";p="38284"
in server.cfg is only
// Voting
set g_allowVote "1"
set g_voteAbstainWeight "0.5"
set g_oldVoting "0"

and in miscfeatures.cfg too nothing about this i looked to all cfg and i didnt found that

OK

In set g_allowVote "1" change the "1" to "0" and try it again.

1 is on
2 is off

But after re-reading your post and your subject line I think you just want to Disable the Kick Vote and not the rest  like "Change Map", and I don't think you can pick and choose.  All voting is either on or off.   Anyone please correct me if I'm wrong here.  :?

Offline 105HolyMoly

  • Rank: Private
  • *
  • Posts: 188
    • http://holymolymods.com
Re: How to disable Kick Player in vote
« Reply #4 on: September 28, 2011, 04:25:49 pm »
:) You'll have to make a new mod ff.

 Add callvote_button.inc file to your mod and comment out this line:


// CHOICE_BUTTON( 6, "@MPUI_KICK_PLAYER", open kickplayer; close changemap; close changegametype; close callvote; )

 Add this to your mod.csv:

menufile,ui_mp/scriptmenus/callvote_buttons.inc

 Re-compile mod ff and you"ll see that the kick vote is grayed out!

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
Re: How to disable Kick Player in vote
« Reply #5 on: September 28, 2011, 04:30:28 pm »
You will have to remove the "kickplayer" menuDef from callvote.menu.

Copy ui_mp\scriptmenus\callvote.menu from the COD4 raw files to the X4 raw files (ff\ui_mp\scriptmenus\callvote.menu)

Edit the copied file (ff\ui_mp\scriptmenus\callvote.menu), and delete the kickplayer menudef. This part:

Code: [Select]
menuDef
{
name kickplayer
fullScreen 0
rect 0 0 640 480 // Size and position of the menu
focusColor COLOR_FOCUSED // Menu focus color for text and items
blurWorld 7.0
onEsc {close self; open class;}
PREPROC_SHADER_DRAW( -120 0 880 480, 0 0, "white", 0 0 0 0.75, 0, 1, 0 0 0 0 )

#undef BACK_OPEN
#define BACK_OPEN exec "wait";
#include "ui_mp/navcontrols.inc"
CHOICE_MENU_TITLE( "@MPUI_CALLVOTE" )
#include "ui_mp/scriptmenus/callvote_buttons.inc"

CHOICE_SECTION_TITLE( 21, "@MPUI_KICK_PLAYER" )
#undef CHOICE_X_START
#define CHOICE_X_START -260
CHOICE_BUTTON( 36, "@MPUI_VOTE", close self; uiScript voteTempBan; )

itemDef
{
name maplist
visible 1
rect CHOICE_X( 21 ) 52 200 270 CHOICE_HORIZONTAL_ALIGN CHOICE_VERTICAL_ALIGN
forecolor COLOR_UNFOCUSED
style WINDOW_STYLE_FILLED
type ITEM_TYPE_LISTBOX
textscale CHOICE_TEXTSIZE
textstyle ITEM_TEXTSTYLE_SHADOWED
textfont UI_FONT_NORMAL
elementtype LISTBOX_TEXT
elementwidth 120
elementheight 24
textalignx 6
textaligny 0
forecolor CHOICE_TEXTCOLOR
backcolor 0 0 0 0
border 1
bordersize 1
bordercolor 1 1 1 0.15
outlinecolor 1 1 1 0.2
feeder FEEDER_PLAYER_LIST
columns 1 2 190 25
mouseEnter { setitemcolor maplist bordercolor 1 1 1 0.55 }
mouseExit { setitemcolor maplist bordercolor 1 1 1 0.15 }
}
}

Be careful: do not delete the } just below this block!

Edit the mod.csv in the X4 raw files (ff\mod.csv), and add this line
menufile,ui_mp/scriptmenus/callvote.menu

Recompile the X4 raw files

Cross your fingers and test (I did neither)

Offline Grmm

  • Rank: Private
  • *
  • Posts: 46
    • http://www.nomercygamers.net
Re: How to disable Kick Player in vote
« Reply #6 on: September 28, 2011, 04:35:41 pm »
Thanks guys I just learned something new.  I'll go give it a try tonight.

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
Re: How to disable Kick Player in vote
« Reply #7 on: September 28, 2011, 05:41:21 pm »
@HolyMoly, sorry for posting just after yours. I didn't notice your post until now.
@All, take HolyMoly's instructions. When it comes to COD4 I'm mostly just guessing  :)

Offline jakub742

  • Rank: Private
  • *
  • Posts: 14
Re: How to disable Kick Player in vote
« Reply #8 on: September 29, 2011, 08:21:08 am »
ill try this posts  thx guys ....

Offline jakub742

  • Rank: Private
  • *
  • Posts: 14
Re: How to disable Kick Player in vote
« Reply #9 on: September 30, 2011, 12:51:44 am »
How can i create a new mod.ff file ? or how can i open old mod.ff

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
Re: How to disable Kick Player in vote
« Reply #10 on: September 30, 2011, 02:25:51 am »
You need the COD4 raw files (installed) and the X4 raw files for the version of X4 you're running. X4 raw files include a "makemod.cmd" script to recompile the iwd and ff. Before running the script, check the  XDIR_TOOLS setting in the script. Make sure it points to the folder in which COD4 and the COD4 raw files are installed.

set XDIR_TOOLS=C:\Program Files\Activision\Call of Duty 4 - Modern Warfare