From: Mario Date: Mon, 8 Dec 2014 06:09:04 +0000 (+1100) Subject: Also set the stat X-Git-Tag: xonotic-v0.8.1~38^2~114 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4fd661f7a7c765f72b2fde141247aa34339987bd;p=xonotic%2Fxonotic-data.pk3dir.git Also set the stat --- diff --git a/qcsrc/common/stats.qh b/qcsrc/common/stats.qh index f358069e2..74bf7dc59 100644 --- a/qcsrc/common/stats.qh +++ b/qcsrc/common/stats.qh @@ -251,7 +251,7 @@ const float STAT_REVIVE_PROGRESS = 106; // 216 empty? // 217 empty? // 218 empty? -// 219 empty? +const float STAT_MOVEVARS_HIGHSPEED = 219; const float STAT_MOVEVARS_AIRACCEL_QW_STRETCHFACTOR = 220; const float STAT_MOVEVARS_AIRCONTROL_PENALTY = 221; const float STAT_MOVEVARS_AIRSPEEDLIMIT_NONQW = 222; diff --git a/qcsrc/server/cl_physics.qc b/qcsrc/server/cl_physics.qc index 8e0b0ca20..ae3b9affd 100644 --- a/qcsrc/server/cl_physics.qc +++ b/qcsrc/server/cl_physics.qc @@ -1000,6 +1000,7 @@ void SV_PlayerPhysics(void) self.stat_sv_airstrafeaccel_qw = 0; self.stat_sv_airspeedlimit_nonqw = autocvar_sv_airspeedlimit_nonqw * maxspd_mod; self.stat_sv_maxspeed = autocvar_sv_maxspeed * maxspd_mod; // also slow walking + self.stat_movement_highspeed = autocvar_g_movement_highspeed; if(self.PlayerPhysplug) if(self.PlayerPhysplug()) diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index b892e24f2..14f1ec16a 100644 --- a/qcsrc/server/defs.qh +++ b/qcsrc/server/defs.qh @@ -452,6 +452,7 @@ float round_starttime; //point in time when the countdown to round start is over .float stat_sv_airstrafeaccel_qw; .float stat_sv_airspeedlimit_nonqw; .float stat_sv_maxspeed; +.float stat_movement_highspeed; void W_Porto_Remove (entity p); diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index 7eda0103c..d3306f119 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -804,6 +804,7 @@ void spawnfunc_worldspawn (void) addstat(STAT_MOVEVARS_MAXSPEED, AS_FLOAT, stat_sv_maxspeed); addstat(STAT_MOVEVARS_AIRACCEL_QW, AS_FLOAT, stat_sv_airaccel_qw); addstat(STAT_MOVEVARS_AIRSTRAFEACCEL_QW, AS_FLOAT, stat_sv_airstrafeaccel_qw); + addstat(STAT_MOVEVARS_HIGHSPEED, AS_FLOAT, stat_movement_highspeed); // secrets addstat(STAT_SECRETS_TOTAL, AS_FLOAT, stat_secrets_total);