aboutsummaryrefslogtreecommitdiffstats
path: root/code/pawn/PlayerAnimator.cs
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2023-07-28 22:06:03 +0100
committerLeonardo Bishop <me@leonardobishop.com>2023-07-28 22:06:03 +0100
commit1e5c6393a6b29eb00dbb8fb137d86647cb0c356b (patch)
tree95cbba0e7ade6bd97675480c2559c8e01f74a635 /code/pawn/PlayerAnimator.cs
parentf137095304f456b06229e4d17ee8249e974fceaf (diff)
Add TryUnstuck and death overlay
Diffstat (limited to 'code/pawn/PlayerAnimator.cs')
-rw-r--r--code/pawn/PlayerAnimator.cs21
1 files changed, 0 insertions, 21 deletions
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<Player>, 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();
- }
- }
-}