]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/gamemodes/gamemode/survival/sv_survival.qc
Display the remaining round time in the panel next to the Survivor/Hunter text, rathe...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / survival / sv_survival.qc
index 757044dbf2aaa93a59666950c44feca1e507d1fe..130813b99b999ead95a0b05b34547aa0e86af510 100644 (file)
@@ -10,6 +10,7 @@ void surv_FakeTimeLimit(entity e, float t)
 {
        if(!IS_REAL_CLIENT(e))
                return;
+#if 0
        msg_entity = e;
        WriteByte(MSG_ONE, 3); // svc_updatestat
        WriteByte(MSG_ONE, 236); // STAT_TIMELIMIT
@@ -17,6 +18,9 @@ void surv_FakeTimeLimit(entity e, float t)
                WriteCoord(MSG_ONE, autocvar_timelimit);
        else
                WriteCoord(MSG_ONE, (t + 1) / 60);
+#else
+       STAT(SURVIVAL_ROUNDTIMER, e) = t;
+#endif
 }
 
 void nades_Clear(entity player);