Resource icon

Gametype Helper V1

attachment.php

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 type

ExtendGametype <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? Enter

ResetGametype

to "quit" out of any gametype and return to normal races.
HOSTMOD Integration:
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!

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.
Supported Gametypes:
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.
  • Banner.png
    Banner.png
    11.5 KB · Views: 361
  • Example Console Print.png
    Example Console Print.png
    63 KB · Views: 340
  • Example Vote.png
    Example Vote.png
    30.7 KB · Views: 351
  • Intro Gametype Notice.gif
    Intro Gametype Notice.gif
    1.9 MB · Views: 324
Author
Eldog
Views
1,964
First release
Last update

More resources from Eldog

Share this resource

Back
Top