mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-17 18:39:07 +00:00
Fixed slap moving the player's aim
This commit is contained in:
@@ -172,7 +172,9 @@ public static class PlayerExtensions
|
||||
vel.Y += ((random.Next(180) + 50) * ((random.Next(2) == 1) ? -1 : 1));
|
||||
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)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user