Sunday, January 9, 2011

Overtime Settings

I added the ability to customize how overtime is played out.  I thought about providing a video but it would be fairly boring so I will hold off for now.  Anyway to turn on overtime customization you would use:

setdvar("gm_overtime_enabled", true);  If its set to false the stock settings will take over.

Right now I put in 6 different settings that can be tweaked for OT:

setdvar("gm_" + gametype + "_ot_timelimit, 10);
setdvar("gm_" + gametype + "_ot_scorelimit, 0);
setdvar("gm_" + gametype + "_ot_roundlimit, 2);
setdvar("gm_" + gametype + "_ot_roundwinlimit, 1);
setdvar("gm_" + gametype + "_ot_numlives, 0);
setdvar("gm_" + gametype + "_ot_roundswitch, 1);

ctf, dem, dom, koth, sab, sd, and tdm support this

In most cases timelimit, roundlimit, and roundswitch would be the only ones you would really want to tweak.  So now with GoneMOD we can setup a ruleset that matches some of the upcoming leagues/tournaments.  I've seen a few that use the following for ctf:

2 15 minute halves
if total score at end of 2 halves is tied, 2 7.5 minute halves are played for overtime

a config for this would look something like:

scr_ctf_timelimit 15
scr_ctf_roundlimit 2
scr_ctf_roundswitch 1
scr_ctf_scorelimit 0
gm_ctf_ot_timelimit 7.5
gm_ctf_ot_roundlimit 2
gm_ctf_ot_roundswitch 1
gm_ctf_ot_scorelimit 0

The mod would take care of the rest, no restarting necessary or new configs being loaded specific to overtime.  Player stats are also maintained throughout the whole entire match since there is no map restart.

For CTF specifically I added a sudden death option.  setdvar("gm_ctf_ot_suddendeath", "1");  The number you set this to will force that numbered overtime period to be sudden death. If I used the config listed above and had the sudden death flag set to 2, the first 2 overtime rounds would be considered the first overtime period.  If the score was still tied, the 2nd overtime period would begin and it would be sudden death.

In the future I will most likely have a dvar that will force an overtime mode in case teams need to switch servers or have to restart the game starting at overtime for some reason.

No comments:

Post a Comment