X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fstats.qh;h=ab1b8e7e4be1a62386c786321b93e3d8c75d1d84;hb=89ae8658d48e0a4be5e652004317bca5717b04fa;hp=12879a7531b1acd3f6bff24b18654d54bd1569cb;hpb=79012b90e96396059bcc310a8a95ae38918993a4;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/stats.qh b/qcsrc/common/stats.qh index 12879a753..ab1b8e7e4 100644 --- a/qcsrc/common/stats.qh +++ b/qcsrc/common/stats.qh @@ -4,6 +4,7 @@ #ifdef SVQC #include +#include #include #include #include @@ -77,6 +78,13 @@ float W_WeaponRateFactor(entity this); float game_stopped; float game_starttime; //point in time when the countdown to game start is over float round_starttime; //point in time when the countdown to round start is over +float overtime_starttime; // z411 point in time where first overtime started + +float checkrules_overtimesadded; // z411 add +float timeout_last; +float timeout_total_time; +bool game_timeout; + int autocvar_leadlimit; // TODO: world.qh can't be included here due to circular includes! #define autocvar_fraglimit cvar("fraglimit") @@ -86,6 +94,9 @@ int autocvar_leadlimit; #endif REGISTER_STAT(WEAPONRATEFACTOR, float, W_WeaponRateFactor(this)) REGISTER_STAT(GAME_STOPPED, int, game_stopped) + +REGISTER_STAT(TIMEOUT_LAST, float, timeout_last) + REGISTER_STAT(GAMESTARTTIME, float, game_starttime) /** arc heat in [0,1] */ REGISTER_STAT(PRESSED_KEYS, int) @@ -111,12 +122,14 @@ REGISTER_STAT(VEHICLESTAT_AMMO2, int) REGISTER_STAT(VEHICLESTAT_RELOAD2, int) REGISTER_STAT(VEHICLESTAT_W2MODE, int) REGISTER_STAT(NADE_TIMER, float) -REGISTER_STAT(SECRETS_TOTAL, int, secrets_total) -REGISTER_STAT(SECRETS_FOUND, int, secrets_found) +//REGISTER_STAT(SECRETS_TOTAL, int, secrets_total) +//REGISTER_STAT(SECRETS_FOUND, int, secrets_found) REGISTER_STAT(RESPAWN_TIME, float) REGISTER_STAT(ROUNDSTARTTIME, float, round_starttime) -REGISTER_STAT(MONSTERS_TOTAL, int) -REGISTER_STAT(MONSTERS_KILLED, int) +REGISTER_STAT(OVERTIMESTARTTIME, float, overtime_starttime) +REGISTER_STAT(OVERTIMESADDED, float, checkrules_overtimesadded) +//REGISTER_STAT(MONSTERS_TOTAL, int) +//REGISTER_STAT(MONSTERS_KILLED, int) REGISTER_STAT(NADE_BONUS, float) REGISTER_STAT(NADE_BONUS_TYPE, int) REGISTER_STAT(NADE_BONUS_SCORE, float) @@ -133,7 +146,6 @@ REGISTER_STAT(ITEMSTIME, int, autocvar_sv_itemstime) REGISTER_STAT(KILL_TIME, float) REGISTER_STAT(VEIL_ORB, float) REGISTER_STAT(VEIL_ORB_ALPHA, float) - #ifdef SVQC float autocvar_sv_showfps = 0; #endif @@ -352,10 +364,7 @@ bool autocvar_sv_slick_applygravity; #endif REGISTER_STAT(SLICK_APPLYGRAVITY, bool, autocvar_sv_slick_applygravity) -#ifdef SVQC -bool autocvar_sv_q3defragcompat; -#endif -REGISTER_STAT(Q3DEFRAGCOMPAT, bool, autocvar_sv_q3defragcompat) +REGISTER_STAT(Q3COMPAT, int, q3compat) #ifdef SVQC #include "physics/movetypes/movetypes.qh" @@ -430,3 +439,5 @@ REGISTER_STAT(GUNALIGN, int) #ifdef SVQC SPECTATE_COPYFIELD(_STAT(GUNALIGN)) #endif + +REGISTER_STAT(MMM_ROUNDTIMER, float) //LegendGuard adds MMM_ROUNDTIMER for MMM 20-02-2021