diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2009-10-18 17:32:09 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:55 +0000 |
commit | 5840d24c078ea3dacc1a0556ee5e98ba4a557682 (patch) | |
tree | c75bea90d4171fd7595abda0851855d976453c35 /src/game/g_cmds.c | |
parent | 6370fd13f490cda8d10e0eb3984761dda31298b7 (diff) |
* (bug 2923) Add ability to have a "warmup" time where players cannot join a team, in order to prevent dretches with fast computers from camping the other base before the humans even load the map. Disabled by default; set g_doWarmup 1 to enable.
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 8fc9a424..ac88b825 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -560,6 +560,13 @@ void Cmd_Team_f( gentity_t *ent ) else if( oldteam == TEAM_HUMANS ) humans--; + // disallow joining teams during warmup + if( g_doWarmup.integer && ( ( level.warmupTime - level.time ) / 1000 ) > 0 ) + { + G_TriggerMenu( ent - g_entities, MN_WARMUP ); + return; + } + trap_Argv( 1, s, sizeof( s ) ); if( !s[ 0 ] ) |