REGISTER_STAT(SHOOTFROMEYE, bool, autocvar_g_shootfromeye)
REGISTER_STAT(SHOOTFROMCENTER, bool, autocvar_g_shootfromcenter)
-REGISTER_STAT(MOVEVARS_SPEED, float)
-
REGISTER_STAT(MOVEVARS_AIRACCEL_QW_STRETCHFACTOR, float)
REGISTER_STAT(MOVEVARS_AIRCONTROL_PENALTY, float)
REGISTER_STAT(MOVEVARS_AIRSPEEDLIMIT_NONQW, float)
void sys_phys_fixspeed(entity this, float maxspeed_mod)
{
- float spd = STAT(MOVEVARS_SPEED, this);
+ float spd = max(PHYS_MAXSPEED(this), PHYS_MAXAIRSPEED(this)) * maxspeed_mod;
if (this.speed != spd) {
this.speed = spd;
string temps = ftos(spd);
void sys_phys_fixspeed(entity this, float maxspeed_mod)
{
- float spd = max(PHYS_MAXSPEED(this), PHYS_MAXAIRSPEED(this)) * maxspeed_mod;
- STAT(MOVEVARS_SPEED, this) = spd;
-
if (this.jumpspeedcap_min != autocvar_sv_jumpspeedcap_min) {
this.jumpspeedcap_min = autocvar_sv_jumpspeedcap_min;
stuffcmd(this, sprintf("\ncl_jumpspeedcap_min \"%s\"\n", autocvar_sv_jumpspeedcap_min));