From 01e53b8aa70ad5e1cfe33911df6366c2ed5bb05e Mon Sep 17 00:00:00 2001 From: kookroach Date: Tue, 6 Apr 2021 14:30:30 +0200 Subject: [PATCH] Test /Cuff [id] --- ReallifeGamemode.Server/Commands/AdminCommands.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 85aba9b5..4f5bc0a9 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -35,7 +35,7 @@ namespace ReallifeGamemode.Server.Commands #region Todo [Command("cuff", "~m~Benutzung: ~s~/cuff [ID]")] - public void CmdSncAnim(Player player, string nameOrId) + public void CmdCuffTest(Player player, string nameOrId) { if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true) { @@ -47,9 +47,9 @@ namespace ReallifeGamemode.Server.Commands return; float rad = player.Heading * MathF.PI / 180; - Vector3 forward = new Vector3(player.Position.X + (1.2 * MathF.Sin(rad)), player.Position.Y + (1.2 * MathF.Cos(rad)), player.Position.Z); + 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 = forward; + target.Position = forwardV3; if (!target.HasAnimation("Cuffed")) { @@ -64,7 +64,7 @@ namespace ReallifeGamemode.Server.Commands } [Command("syncanim", "~m~Benutzung: ~s~/syncanim [animName]")] - public void CmdSncAnim(Player player, string animName = null) + public void CmdSyncAnim(Player player, string animName = null) { if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true) {