Discussion Forums | General Information | Player Guide | Admin Guide | Downloads | Changelog | Server List |
---|
Game menuing | |
g_games | Defines a game menu file |
An example game menu
.-----------------------------. | Game List for Bani's Server | .-----------------------------. | 1 - Normal Objective | | 2 - Instagib Objective | | 3 - Normal Gold Rush | | 4 - Instagib Gold Rush | | 5 - Assassin | | 6 - Normal Gravity | | 7 - Low Gravity | `-----------------------------' Use /callvote game # to change game types |
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 menuIf 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. |
g_rules | File to be displayed for the /rules command |
An example rules file King Of The Hill * teams compete to capture and hold the hill * team score for every 5 seconds the hill is held * the hill moves periodically * if the hill is recaptured by the opposing team, the hill moves * the team with the most points at the end of the round wins * engineers can see the hill on their compass |
If g_rules is defined, players will be notified
during warmup and at map restarts that game rules are available to them with
the message
Type /rules for games rulesIf they type the /rules command, the contents of the file defined in g_rules would be sent ot the client. |