aboutsummaryrefslogtreecommitdiffstats
path: root/code/pawn/component/PlayerAnimator.cs
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2023-07-30 02:45:36 +0100
committerLeonardo Bishop <me@leonardobishop.com>2023-07-30 02:45:36 +0100
commit914512435d37d9f1e1ea4c045afd4ec5612b7534 (patch)
treeaca7ae248159ad9dd6bf5ec09c4f6b2b4eb92848 /code/pawn/component/PlayerAnimator.cs
parentd599275439cd35e0d3e3146e39be809df55459bd (diff)
Replace movement controllers
Diffstat (limited to 'code/pawn/component/PlayerAnimator.cs')
-rw-r--r--code/pawn/component/PlayerAnimator.cs21
1 files changed, 0 insertions, 21 deletions
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<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();
- }
- }
-}