From 1e5c6393a6b29eb00dbb8fb137d86647cb0c356b Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Fri, 28 Jul 2023 22:06:03 +0100 Subject: Add TryUnstuck and death overlay --- code/pawn/PlayerAnimator.cs | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 code/pawn/PlayerAnimator.cs (limited to 'code/pawn/PlayerAnimator.cs') diff --git a/code/pawn/PlayerAnimator.cs b/code/pawn/PlayerAnimator.cs deleted file mode 100644 index 4cd4e3f..0000000 --- a/code/pawn/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