From 914512435d37d9f1e1ea4c045afd4ec5612b7534 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Sun, 30 Jul 2023 02:45:36 +0100 Subject: Replace movement controllers --- code/pawn/component/PlayerAnimator.cs | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 code/pawn/component/PlayerAnimator.cs (limited to 'code/pawn/component/PlayerAnimator.cs') diff --git a/code/pawn/component/PlayerAnimator.cs b/code/pawn/component/PlayerAnimator.cs deleted file mode 100644 index 4cd4e3f..0000000 --- a/code/pawn/component/PlayerAnimator.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Sandbox; -using System; - -namespace MurderGame; - -public class PlayerAnimator : EntityComponent, ISingletonComponent -{ - public void Simulate() - { - var helper = new CitizenAnimationHelper( Entity ); - helper.WithVelocity( Entity.Velocity ); - helper.WithLookAt( Entity.EyePosition + Entity.EyeRotation.Forward * 100 ); - helper.HoldType = CitizenAnimationHelper.HoldTypes.None; - helper.IsGrounded = Entity.GroundEntity.IsValid(); - - if ( Entity.Controller.HasEvent( "jump" ) ) - { - helper.TriggerJump(); - } - } -} -- cgit v1.2.3-70-g09d2