X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fstats.qh;h=128f090c4fd9ec94ff1269b3336bda705be60c8e;hb=a68bd132b214b46442e53fb92c86e881b39f346d;hp=ffc0cfacfbf14acb31196cac9e9c3996c1d5e8d2;hpb=d24e46b65c1fe73fae4cf8034f4e7f318a17053a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/stats.qh b/qcsrc/common/stats.qh index ffc0cfacf..128f090c4 100644 --- a/qcsrc/common/stats.qh +++ b/qcsrc/common/stats.qh @@ -1,10 +1,17 @@ #pragma once +// you're next + #ifdef SVQC -#include #include #include +#include +#include +#include #include +#include +#include +#include #endif // Full list of all stat constants, included in a single location for easy reference @@ -60,27 +67,33 @@ REGISTER_STAT(PL_CROUCH_MIN, vector) REGISTER_STAT(PL_MAX, vector) REGISTER_STAT(PL_CROUCH_MAX, vector) -REGISTER_STAT(KH_KEYS, int) +// networked bitflag for game objective display (modicons) +REGISTER_STAT(OBJECTIVE_STATUS, int) +#ifdef SVQC +SPECTATE_COPYFIELD(_STAT(OBJECTIVE_STATUS)) +#endif #ifdef SVQC 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 -bool autocvar_g_allow_oldvortexbeam; int autocvar_leadlimit; +int overtimes; // overtimes added (-1 = sudden death) +int timeout_status; // (values: 0, 1, 2) contains whether a timeout is not active (0), was called but still at leadtime (1) or is active (2) + +// TODO: world.qh can't be included here due to circular includes! +#define autocvar_fraglimit cvar("fraglimit") +#define autocvar_fraglimit_override cvar("fraglimit_override") +#define autocvar_timelimit cvar("timelimit") +#define autocvar_timelimit_override cvar("timelimit_override") #endif REGISTER_STAT(WEAPONRATEFACTOR, float, W_WeaponRateFactor(this)) REGISTER_STAT(GAME_STOPPED, int, game_stopped) REGISTER_STAT(GAMESTARTTIME, float, game_starttime) -REGISTER_STAT(STRENGTH_FINISHED, float) -REGISTER_STAT(INVINCIBLE_FINISHED, float) /** arc heat in [0,1] */ REGISTER_STAT(PRESSED_KEYS, int) -/** this stat could later contain some other bits of info, like, more server-side particle config */ -REGISTER_STAT(ALLOW_OLDVORTEXBEAM, bool, autocvar_g_allow_oldvortexbeam) REGISTER_STAT(FUEL, int) -REGISTER_STAT(NB_METERSTART, float) /** compressShotOrigin */ REGISTER_STAT(SHOTORG, int) REGISTER_STAT(LEADLIMIT, float, autocvar_leadlimit) @@ -89,9 +102,8 @@ REGISTER_STAT(LEADLIMIT_AND_FRAGLIMIT, float, autocvar_leadlimit_and_fraglimit) REGISTER_STAT(LAST_PICKUP, float) REGISTER_STAT(HUD, int) REGISTER_STAT(HIT_TIME, float) -REGISTER_STAT(DAMAGE_DEALT_TOTAL, int) +REGISTER_STAT(HITSOUND_DAMAGE_DEALT_TOTAL, int) REGISTER_STAT(TYPEHIT_TIME, float) -REGISTER_STAT(SUPERWEAPONS_FINISHED, float) REGISTER_STAT(AIR_FINISHED, float) REGISTER_STAT(VEHICLESTAT_HEALTH, int) REGISTER_STAT(VEHICLESTAT_SHIELD, int) @@ -106,9 +118,10 @@ 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(OVERTIMES, int, overtimes) +REGISTER_STAT(TIMEOUT_STATUS, int, timeout_status) REGISTER_STAT(MONSTERS_TOTAL, int) REGISTER_STAT(MONSTERS_KILLED, int) -REGISTER_STAT(BUFFS, int) REGISTER_STAT(NADE_BONUS, float) REGISTER_STAT(NADE_BONUS_TYPE, int) REGISTER_STAT(NADE_BONUS_SCORE, float) @@ -118,8 +131,6 @@ REGISTER_STAT(PLASMA, int) REGISTER_STAT(FROZEN, int) REGISTER_STAT(REVIVE_PROGRESS, float) REGISTER_STAT(ROUNDLOST, int) -REGISTER_STAT(BUFF_TIME, float) -REGISTER_STAT(CTF_FLAGSTATUS, int) REGISTER_STAT(CAPTURE_PROGRESS, float) REGISTER_STAT(ENTRAP_ORB, float) REGISTER_STAT(ENTRAP_ORB_ALPHA, float) @@ -129,7 +140,7 @@ REGISTER_STAT(VEIL_ORB, float) REGISTER_STAT(VEIL_ORB_ALPHA, float) #ifdef SVQC -float autocvar_sv_showfps = 5; +float autocvar_sv_showfps = 0; #endif REGISTER_STAT(SHOWFPS, float, autocvar_sv_showfps) @@ -173,6 +184,7 @@ float g_bugrigs_speed_ref; float g_bugrigs_speed_pow; float g_bugrigs_steer; #endif +#if 0 REGISTER_STAT(BUGRIGS, int, g_bugrigs) REGISTER_STAT(BUGRIGS_ACCEL, float, g_bugrigs_accel) REGISTER_STAT(BUGRIGS_AIR_STEERING, int, g_bugrigs_air_steering) @@ -188,6 +200,7 @@ REGISTER_STAT(BUGRIGS_REVERSE_STOPPING, int, g_bugrigs_reverse_stopping) REGISTER_STAT(BUGRIGS_SPEED_POW, float, g_bugrigs_speed_pow) REGISTER_STAT(BUGRIGS_SPEED_REF, float, g_bugrigs_speed_ref) REGISTER_STAT(BUGRIGS_STEER, float, g_bugrigs_steer) +#endif #ifdef SVQC int autocvar_sv_gameplayfix_downtracesupportsongroundflag = 1; @@ -202,6 +215,7 @@ int autocvar_sv_gameplayfix_grenadebouncedownslopes = 1; int autocvar_sv_gameplayfix_noairborncorpse = 1; int autocvar_sv_gameplayfix_noairborncorpse_allowsuspendeditems = 1; int autocvar_sv_gameplayfix_delayprojectiles = 0; +bool autocvar_sv_gameplayfix_upwardvelocityclearsongroundflag = true; #endif REGISTER_STAT(GAMEPLAYFIX_DOWNTRACEONGROUND, int, autocvar_sv_gameplayfix_downtracesupportsongroundflag) REGISTER_STAT(GAMEPLAYFIX_EASIERWATERJUMP, int, autocvar_sv_gameplayfix_easierwaterjump) @@ -220,6 +234,10 @@ REGISTER_STAT(GAMEPLAYFIX_DELAYPROJECTILES, int, autocvar_sv_gameplayfix_delaypr REGISTER_STAT(MOVEVARS_JUMPSTEP, int, cvar("sv_jumpstep")) REGISTER_STAT(NOSTEP, int, cvar("sv_nostep")) +#ifdef SVQC +float autocvar_sv_friction_on_land; +var float autocvar_sv_friction_slick = 0.5; +#endif REGISTER_STAT(MOVEVARS_FRICTION, float) REGISTER_STAT(MOVEVARS_FRICTION_SLICK, float, autocvar_sv_friction_slick) REGISTER_STAT(MOVEVARS_FRICTION_ONLAND, float, autocvar_sv_friction_on_land) @@ -273,6 +291,15 @@ REGISTER_STAT(DODGING_CLIENTSELECT, bool, autocvar_sv_dodging_clientselect) REGISTER_STAT(DODGING_FROZEN, int, autocvar_sv_dodging_frozen) REGISTER_STAT(DODGING_TIMEOUT, float) +#ifdef SVQC +float autocvar_g_jetpack_acceleration_side; +float autocvar_g_jetpack_acceleration_up; +float autocvar_g_jetpack_antigravity; +int autocvar_g_jetpack_fuel; +float autocvar_g_jetpack_maxspeed_side; +float autocvar_g_jetpack_maxspeed_up; +float autocvar_g_jetpack_reverse_thrust; +#endif REGISTER_STAT(JETPACK_ACCEL_SIDE, float, autocvar_g_jetpack_acceleration_side) REGISTER_STAT(JETPACK_ACCEL_UP, float, autocvar_g_jetpack_acceleration_up) REGISTER_STAT(JETPACK_ANTIGRAVITY, float, autocvar_g_jetpack_antigravity) @@ -315,6 +342,12 @@ REGISTER_STAT(DOM_PPS_BLUE, float) REGISTER_STAT(DOM_PPS_YELLOW, float) REGISTER_STAT(DOM_PPS_PINK, float) +// nexball +REGISTER_STAT(NB_METERSTART, float) + +#ifdef SVQC +float autocvar_g_teleport_maxspeed; +#endif REGISTER_STAT(TELEPORT_MAXSPEED, float, autocvar_g_teleport_maxspeed) REGISTER_STAT(TELEPORT_TELEFRAG_AVOID, int, autocvar_g_telefrags_avoid) @@ -332,6 +365,8 @@ REGISTER_STAT(Q3COMPAT, int, q3compat) #ifdef SVQC #include "physics/movetypes/movetypes.qh" float warmup_limit; +float round_limit; +int rounds_played; #endif #ifdef SVQC @@ -348,7 +383,11 @@ REGISTER_STAT(MOVEVARS_AIRSTRAFEACCEL_QW, float) REGISTER_STAT(MOVEVARS_AIRCONTROL_POWER, float) REGISTER_STAT(MOVEVARS_AIRCONTROL_BACKWARDS, bool) REGISTER_STAT(MOVEVARS_AIRCONTROL_SIDEWARDS, bool) -noref bool autocvar_sv_gameplayfix_nogravityonground = true; +#ifdef SVQC +float autocvar_sv_gameplayfix_q2airaccelerate = 1; +bool autocvar_sv_gameplayfix_nogravityonground = true; +bool autocvar_sv_gameplayfix_gravityunaffectedbyticrate = true; +#endif REGISTER_STAT(MOVEFLAGS, int, MOVEFLAG_VALID | (autocvar_sv_gameplayfix_q2airaccelerate ? MOVEFLAG_Q2AIRACCELERATE : 0) | (autocvar_sv_gameplayfix_nogravityonground ? MOVEFLAG_NOGRAVITYONGROUND : 0) @@ -367,8 +406,12 @@ REGISTER_STAT(MOVEVARS_AIRCONTROL, float) REGISTER_STAT(FRAGLIMIT, float, autocvar_fraglimit) REGISTER_STAT(TIMELIMIT, float, autocvar_timelimit) REGISTER_STAT(WARMUP_TIMELIMIT, float, warmup_limit) +REGISTER_STAT(ROUNDS_PLAYED, int, rounds_played) +REGISTER_STAT(ROUND_TIMELIMIT, float, round_limit) #ifdef SVQC float autocvar_sv_wallfriction; +#define autocvar_sv_gravity cvar("sv_gravity") +float autocvar_sv_stepheight; #endif REGISTER_STAT(MOVEVARS_WALLFRICTION, int, autocvar_sv_wallfriction) REGISTER_STAT(MOVEVARS_TICRATE, float, autocvar_sys_ticrate) @@ -387,7 +430,6 @@ REGISTER_STAT(MOVEVARS_MAXAIRSPEED, float) REGISTER_STAT(MOVEVARS_STEPHEIGHT, float, autocvar_sv_stepheight) REGISTER_STAT(MOVEVARS_AIRACCEL_QW, float) REGISTER_STAT(MOVEVARS_AIRACCEL_SIDEWAYS_FRICTION, float) -REGISTER_STAT(MOVEVARS_SPECIALCOMMAND, bool) #ifdef SVQC int autocvar_sv_wallclip; #endif