]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
freezetag can use the CA modicons panel for now, at the moment there's only support...
authorFruitieX <fruitiex@gmail.com>
Tue, 16 Nov 2010 08:27:27 +0000 (10:27 +0200)
committerFruitieX <fruitiex@gmail.com>
Tue, 16 Nov 2010 08:27:27 +0000 (10:27 +0200)
qcsrc/client/hud.qc
qcsrc/common/constants.qh
qcsrc/server/g_world.qc

index 9a203c72b54ac738d58346a4ffc2f38861985eae..855cec4de6be6c5bdd4e0f8c8665908687e80a49 100644 (file)
@@ -4455,7 +4455,7 @@ void HUD_ModIcons(void)
        if(!autocvar_hud_panel_modicons && !autocvar__hud_configure)
                return;
 
-       if (gametype != GAME_KEYHUNT && gametype != GAME_CTF && gametype != GAME_NEXBALL && gametype != GAME_CTS && gametype != GAME_RACE && gametype != GAME_CA && !autocvar__hud_configure)
+       if (gametype != GAME_KEYHUNT && gametype != GAME_CTF && gametype != GAME_NEXBALL && gametype != GAME_CTS && gametype != GAME_RACE && gametype != GAME_CA && gametype != GAME_FREEZETAG && !autocvar__hud_configure)
                return;
 
        active_panel = HUD_PANEL_MODICONS;
@@ -4492,7 +4492,7 @@ void HUD_ModIcons(void)
                HUD_Mod_NexBall(pos, mySize);
        else if(gametype == GAME_CTS || gametype == GAME_RACE)
                HUD_Mod_Race(pos, mySize);
-       else if(gametype == GAME_CA)
+       else if(gametype == GAME_CA || gametype == GAME_FREEZETAG)
                HUD_Mod_CA(pos, mySize);
 }
 
index f3150439a8db86276ff5e94e05fdd1f93950ab0d..3f95ed19e0d7e9e838abce40c234210d1499cd68 100644 (file)
@@ -342,6 +342,8 @@ const float STAT_VEHICLESTAT_RELOAD2 = 66;
 // mod stats (1xx)
 const float STAT_REDALIVE = 100;
 const float STAT_BLUEALIVE = 101;
+const float STAT_YELLOWALIVE = 102;
+const float STAT_PINKALIVE = 103;
 
 //const float STAT_SPIDERBOT_AIM     53 // compressShotOrigin
 //const float STAT_SPIDERBOT_TARGET  54 // compressShotOrigin
index f381612c3f7843a427fa43724cc16e7919b0edec..db5c360945f6c3e763716301819e926bb3d7f590 100644 (file)
@@ -809,10 +809,12 @@ void spawnfunc_worldspawn (void)
 
        addstat(STAT_NEX_CHARGE, AS_FLOAT, nex_charge);
 
-       if(g_ca)
+       if(g_ca || g_freezetag)
        {
                addstat(STAT_REDALIVE, AS_INT, redalive_stat);
                addstat(STAT_BLUEALIVE, AS_INT, bluealive_stat);
+               addstat(STAT_YELLOWALIVE, AS_INT, yellowalive_stat);
+               addstat(STAT_PINKALIVE, AS_INT, pinkalive_stat);
        }
        // g_movementspeed hack
        addstat(STAT_MOVEVARS_AIRSPEEDLIMIT_NONQW, AS_FLOAT, stat_sv_airspeedlimit_nonqw);