Fixed slap moving the player's aim

This commit is contained in:
Valentin Barat
2024-02-12 16:44:50 +01:00
parent 0a2d19accd
commit fa5296fec7

View File

@@ -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;