mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
change autogain velocity setting so boosters on bhop_linear_gif aren't affected by vertical velocity
This commit is contained in:
parent
ddb902e663
commit
76aaecdb6e
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user