aboutsummaryrefslogtreecommitdiffstats
path: root/code/pawn/component/AnimatorComponent.cs
diff options
context:
space:
mode:
Diffstat (limited to 'code/pawn/component/AnimatorComponent.cs')
-rw-r--r--code/pawn/component/AnimatorComponent.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/code/pawn/component/AnimatorComponent.cs b/code/pawn/component/AnimatorComponent.cs
index 6b27b15..11eb67a 100644
--- a/code/pawn/component/AnimatorComponent.cs
+++ b/code/pawn/component/AnimatorComponent.cs
@@ -13,8 +13,11 @@ public class AnimatorComponent : EntityComponent<Player>, ISingletonComponent
helper.WithLookAt( Entity.EyePosition + Entity.EyeRotation.Forward * 100 );
helper.HoldType = CitizenAnimationHelper.HoldTypes.None;
helper.IsGrounded = Entity.GroundEntity.IsValid();
- helper.DuckLevel = MathX.Lerp( helper.DuckLevel, player.Controller.HasTag( "ducked" ) ? 1 : 0, Time.Delta * 10.0f );
- helper.VoiceLevel = (Game.IsClient && player.Client.IsValid()) ? player.Client.Voice.LastHeard < 0.5f ? player.Client.Voice.CurrentLevel : 0.0f : 0.0f;
+ helper.DuckLevel = MathX.Lerp( helper.DuckLevel, player.Controller.HasTag( "ducked" ) ? 1 : 0,
+ Time.Delta * 10.0f );
+ helper.VoiceLevel = Game.IsClient && player.Client.IsValid()
+ ? player.Client.Voice.LastHeard < 0.5f ? player.Client.Voice.CurrentLevel : 0.0f
+ : 0.0f;
helper.IsClimbing = player.Controller.HasTag( "climbing" );
helper.IsSwimming = player.GetWaterLevel() >= 0.5f;