vote for different configuration?

Discussion for Admins of Banimod servers.<br>
If you don't run a server, please don't post here...

Moderators: Forum moderators, developers

Post Reply
Centurion
Posts: 15
Joined: Fri Jul 01, 2005 6:28 am

vote for different configuration?

Post by Centurion »

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!
User avatar
=FF=im2good4u
Posts: 3821
Joined: Wed Feb 05, 2003 7:30 am
Location: The Netherlands, HOLLAND
Contact:

Post by =FF=im2good4u »

hmm that ..... a long time ago i worked whit those

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 &#91;av&#93;bani does a /callvote game 2, the callvote displayed to players would be "&#91;av&#93;bani called a vote for Game&#58; Instagib Objective".

If the vote passes, the script baniscript2.cfg would be executed.
oke so ..

lets assume u set g_games "game"

now u need gamemenu.txt

Code: Select all

20 public cfg 
21 twl cfg 
22 scrim cfg
now for the vote to display
: gamename20.txt

Code: Select all

Publick Config
: gamename21.txt

Code: Select all

TWL Config
: gamename22

Code: Select all

Scrim Config
oke and last your config :D
: gamescript20.cfg,gamescript21.cfg,gamescript22.cfg whit your settings
Centurion
Posts: 15
Joined: Fri Jul 01, 2005 6:28 am

Post by Centurion »

Thank you for the reply!

I already have a gamemenu and gamename files.

What I really need to know is:

1. in a gamescript file what is the command so the server will run a cfg file?

2. in a gamescript file what is the command for a server to wait until the next round to run a cfg or map?
Post Reply