Skip to content

Commit

Permalink
change autogain velocity setting so boosters on bhop_linear_gif aren'…
Browse files Browse the repository at this point in the history
…t affected by vertical velocity
  • Loading branch information
defiy authored and rtldg committed Mar 29, 2022
1 parent ddb902e commit 76aaecd
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions addons/sourcemod/scripting/include/shavit/tas-oblivious.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 76aaecd

Please sign in to comment.