Description:
- Winner gets to choose the next maps gametype
- This version is made to run with GunGame5.1
Installation:
- Extract this file to your server
- Restart your server or reload GunGame
- Edit the newly appeared ../cfg/gungame51/custom_addon_configs/gg_winner_menu.cfg
- Restart your server or reload GunGame
Known Issues:
- The maximum number of choices shown is 9. This is due to an issue with the engine. I could make a workaround, but limitting it to 9 is much, much easier. If you have more than 9 gametypes, it will choose 9 at random. If you have 9 or less, it will show 'all' choices.
- Occasionally, while testing, I was unable to make a selection. I'm not sure what is causing this issue, but I'm 'trying' to track it down. I'm not sure there is anything I can do about it, sorry.
Features:
- A minimum number of players can be set for each gametype. If fewer than the allowed number are on the server, the given option will not be displayed in the menu.
- If you have more than 9 gametypes, 9 will be chosen at random and shown randomly in the menu.
- If you have 9 or fewer gametypes, all gametypes will be shown in the menu.
- If all gametypes are shown, by setting the gg_winner_menu_random variable to 1, all choices will be randomized in the menu each time a winner is sent the menu.
- If using any of GunGame's Team addons (gg_teamplay, gg_teamplay_deathmatch, or gg_teamwork) depending on the value of gg_winner_menu_team_most_kills, one of the 2 following will happen:
- The player on the winning team that completes the last objective or gets the last kill for their team will be the player that receives the menu.
- The player that has the most kills on the winning team will receive the menu.
- If a Bot wins, depending on the value of gg_winner_menu_allow_bots, either a random choice will be made or a random player from the Bots team (or the other team if no non-Bots are on the winning team) will be chosen to receive the menu.
Credits:
- CharlesT (aka EvilJesus) for the original idea:
- Warren who wrote the GG5.0 version: