Hi fellow RTCW Bani die-hard fans! My "server expert" unfortunately left and Ive been trying to learn as much as I can, but I seem to be stuck.
Im trying to allow voting for different configuations on RTCW banimod server, so that a vote can pass to exec a public.cfg or a twl.cfg or a scrim.cfg (I think ET allows for this but I dont think Bani mod directly does)
For example, If I have as part of my games menu:
20 public cfg
21 twl cfg
22 scrim cfg
the corresponding gamescript files should read what?
gamescript 20.cfg
?????
Thanks for the help!
vote for different configuration?
Moderators: Forum moderators, developers
- =FF=im2good4u
- Posts: 3821
- Joined: Wed Feb 05, 2003 7:30 am
- Location: The Netherlands, HOLLAND
- Contact:
hmm that ..... a long time ago i worked whit those
well oke
first dont use spaces in the filenames
oke so ..
lets assume u set g_games "game"
now u need gamemenu.txt
now for the vote to display
: gamename20.txt: gamename21.txt: gamename22
oke and last your config
: gamescript20.cfg,gamescript21.cfg,gamescript22.cfg whit your settings
well oke
first dont use spaces in the filenames
Code: Select all
Set g_games to a symbolic name, eg seta g_games "bani". If g_games is defined, players will be notified during warmup and at map restarts that a games menu is available to them with the message
Type /games for games menu
If they type the /games command, the contents of the file banimenu.txt would be sent to the client. This file can be formatted any way desired, but should contain an itemized list of gametypes.
For each available gametype, you should create a game description file and a game script file. The game description file should contain a text description of the gametype, eg for example menu gametype 2 the filename would be baniname2.txt, the contents of the file would be "Instagib Objective".
If the player [av]bani does a /callvote game 2, the callvote displayed to players would be "[av]bani called a vote for Game: Instagib Objective".
If the vote passes, the script baniscript2.cfg would be executed.
lets assume u set g_games "game"
now u need gamemenu.txt
Code: Select all
20 public cfg
21 twl cfg
22 scrim cfg
: gamename20.txt
Code: Select all
Publick Config
Code: Select all
TWL Config
Code: Select all
Scrim Config
: gamescript20.cfg,gamescript21.cfg,gamescript22.cfg whit your settings
<a href="http://bunnyherolabs.com/adopt/showpet. ... dQ=="><img src="http://petimage.bunnyherolabs.com/adopt ... Q0dQ==.png" width="80" height="100" border="0"></a>