Fixed slap moving the player's aim
This commit is contained in:
parent
0a2d19accd
commit
fa5296fec7
1 changed files with 3 additions and 1 deletions
|
|
@ -172,7 +172,9 @@ public static class PlayerExtensions
|
||||||
vel.Y += ((random.Next(180) + 50) * ((random.Next(2) == 1) ? -1 : 1));
|
vel.Y += ((random.Next(180) + 50) * ((random.Next(2) == 1) ? -1 : 1));
|
||||||
vel.Z += random.Next(200) + 100;
|
vel.Z += random.Next(200) + 100;
|
||||||
|
|
||||||
pawn.Teleport(pawn.AbsOrigin!, pawn.AbsRotation!, vel);
|
pawn.AbsVelocity.X = vel.X;
|
||||||
|
pawn.AbsVelocity.Y = vel.Y;
|
||||||
|
pawn.AbsVelocity.Z = vel.Z;
|
||||||
|
|
||||||
if (damage <= 0)
|
if (damage <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue