/cuff positioning test

This commit is contained in:
2021-04-06 17:34:34 +02:00
parent 8ee68a5a54
commit b4fb23078b
5 changed files with 61 additions and 11 deletions

View File

@@ -46,10 +46,8 @@ namespace ReallifeGamemode.Server.Commands
if (target.Id == player.Id)
return;
float rad = player.Heading * MathF.PI / 180;
Vector3 forwardV3 = new Vector3(player.Position.X + (1.2 * MathF.Sin(rad)), player.Position.Y + (1.2 * MathF.Cos(rad)), player.Position.Z);
target.Position = forwardV3;
target.Position = player.GetInFrontOfPosition();
target.Heading = player.Heading;
if (!target.HasAnimation("Cuffed"))
{