Skip to content

Commit

Permalink
gemidyne#144 - Altering knockback
Browse files Browse the repository at this point in the history
  • Loading branch information
safalin1 committed Feb 5, 2020
1 parent 3e965a2 commit 1b3c209
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripting/Minigames/Minigame22.sp
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ public void Minigame22_OnPlayerTakeDamage(int victimId, int attackerId, float da
GetClientEyeAngles(attackerId, ang);
GetEntPropVector(victimId, Prop_Data, "m_vecVelocity", vel);

vel[0] -= 300.0 * Cosine(DegToRad(ang[1])) * -1.0 * damage*0.01;
vel[1] -= 300.0 * Sine(DegToRad(ang[1])) * -1.0 * damage*0.01;
vel[2] += 450.0;
vel[0] -= 150.0 * Cosine(DegToRad(ang[1])) * -1.0 * damage*0.01;
vel[1] -= 150.0 * Sine(DegToRad(ang[1])) * -1.0 * damage*0.01;
vel[2] += 275.0;

TeleportEntity(victimId, NULL_VECTOR, ang, vel);
}
Expand Down

0 comments on commit 1b3c209

Please sign in to comment.