change autogain velocity setting so boosters on bhop_linear_gif aren't affected by vertical velocity

This commit is contained in:
defiy 2022-03-29 03:58:20 +00:00 committed by rtldg
parent ddb902e663
commit 76aaecdb6e

View File

@ -254,24 +254,10 @@ stock Action ObliviousOnPlayerRunCmd(int client, int& buttons, int& impulse, flo
if (GetVectorLength(new_vel) < 99999.0 && GetVectorLength(new_vel) > 0.0)
{
#if 0
SetEntPropVector(client, Prop_Data, "m_vecVelocity", new_vel);
float _new_vel[3];
for (int i = 0; i < 3; i++)
_new_vel[i] = new_vel[i] + base_vel[i];
SetEntPropVector(client, Prop_Data, "m_vecAbsVelocity", _new_vel); // m_vecBaseVelocity+m_vecVelocity
#else
TeleportEntity(client, NULL_VECTOR, NULL_VECTOR, new_vel);
#endif
SetEntPropVector(client, Prop_Data, "m_vecBaseVelocity", base_vel);
SetEntPropVector(client, Prop_Data, "m_vecAbsVelocity", new_vel);
}
#if 0
SetEntPropVector(client, Prop_Data, "m_vecBaseVelocity", base_vel);
#endif
if (set_back)
vel[1] = 0.0;