mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
use style runspeed instead of m_flMaxspeed for tas (and autoprestrafe)
(autoprestrafe is broken on 250 runspeed otherwise...)
This commit is contained in:
parent
44ac27a41d
commit
3609adf2aa
@ -55,7 +55,8 @@ stock float ground_delta_opt(int client, float angles[3], float move[3], float s
|
||||
|
||||
wishspeed = GetVectorLength(wishvel);
|
||||
|
||||
if(wishspeed > GetEntPropFloat(client, Prop_Send, "m_flMaxspeed") && GetEntPropFloat(client, Prop_Send, "m_flMaxspeed") != 0.0) wishspeed = GetEntPropFloat(client, Prop_Send, "m_flMaxspeed");
|
||||
float flMaxSpeed = Shavit_GetStyleSettingFloat(Shavit_GetBhopStyle(client), "runspeed");
|
||||
if(wishspeed > flMaxSpeed && flMaxSpeed != 0.0) wishspeed = flMaxSpeed;
|
||||
|
||||
float velocity[3];
|
||||
GetEntPropVector(client, Prop_Data, "m_vecVelocity", velocity);
|
||||
@ -106,7 +107,7 @@ stock Action ObliviousOnPlayerRunCmd(int client, int& buttons, int& impulse, flo
|
||||
float air_accelerate, float surface_friction, float flAirSpeedCap, float flMaxMove,
|
||||
bool no_speed_loss)
|
||||
{
|
||||
float flMaxSpeed = GetEntPropFloat(client, Prop_Send, "m_flMaxspeed");
|
||||
float flMaxSpeed = Shavit_GetStyleSettingFloat(Shavit_GetBhopStyle(client), "runspeed");
|
||||
|
||||
bool set_back = true;
|
||||
if (vel[0] != 0.0 || vel[1] != 0.0)
|
||||
|
||||
@ -360,7 +360,7 @@ stock Action XutaxOnPlayerRunCmd(int client, int& buttons, int& impulse, float v
|
||||
vel[0] = 0.0;
|
||||
|
||||
float flFowardMove, flSideMove;
|
||||
float flMaxSpeed = GetEntPropFloat(client, Prop_Data, "m_flMaxspeed");
|
||||
float flMaxSpeed = Shavit_GetStyleSettingFloat(Shavit_GetBhopStyle(client), "runspeed");
|
||||
float flVelocity[3], flVelocity2D[2];
|
||||
|
||||
GetEntPropVector(client, Prop_Data, "m_vecVelocity", flVelocity);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user