A simple script that allows players to toggle supported gameplay-modifying addons.
Commands:
SetGametype
Type SetGametype with no addons and you will be prompted with the arguments and a list of loaded (and supported) gameplay modifying addons. From there, you can type:SetGametype <Gametype> <Number of rounds>
to set your selected gametype for X rounds.
ExtendGametype
Want to play more of the current gametype? Simply typeExtendGametype <Number of rounds>
to extend the gametype that many rounds.
Note that the number of rounds a gametype can be extended to is set by the server using GH_RoundNumMax.
ResetGametype
Join a server that had 7 residual rounds of Combi from last session? EnterResetGametype
to "quit" out of any gametype and return to normal races.
This script is theoretically useful for player-hosted servers, but really shines on dedicated servers without an active host to change gametypes manually. For that reason, certain features are enabled when this addon is loaded alongside HOSTMOD.
Make sure to add
hm_votable "setgametype"; hm_votable "extendgametype"; hm_votable "resetgametype"
to your kartserv.cfg!
However, the system in place technically allows for anyone to vote for 9999 rounds of a gametype. While this is obviously handled, players may still get confused.
For that reason, the script prints chat confirmations to notify players whenever the current gametype is being modified in some way.
While I personally believe that informing the ignorant masses is extremely important (this script doesn't do anything obvious on its own), some server hosts may find this obnoxious, and have the ability to turn down the frequency, or turn the reminder off altogether.
Make sure to add
hm_votable "setgametype"; hm_votable "extendgametype"; hm_votable "resetgametype"
to your kartserv.cfg!
Chat Prints
HOSTMOD's vote feature is extremely useful for changing gametypes.However, the system in place technically allows for anyone to vote for 9999 rounds of a gametype. While this is obviously handled, players may still get confused.
For that reason, the script prints chat confirmations to notify players whenever the current gametype is being modified in some way.
GH_Reminder
Gametype Helper also prints reminders in chat every couple rounds that players can vote for their favorite gametype.While I personally believe that informing the ignorant masses is extremely important (this script doesn't do anything obvious on its own), some server hosts may find this obnoxious, and have the ability to turn down the frequency, or turn the reminder off altogether.
Known Issues:
- Some addons are technically supported but not recommended to be loaded yet.
- Combi will set KartEliminateLast off every tic.
- Wipezones disables player collisions whether it's toggled on or off.
- May require further testing in a busy netgame environment.