aboutsummaryrefslogtreecommitdiffstats
path: root/code/pawn/component/AnimatorComponent.cs
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2023-08-06 17:21:45 +0100
committerLeonardo Bishop <me@leonardobishop.com>2023-08-06 17:21:45 +0100
commit0bba89a7858ce091f485e04284f853e1f7f304af (patch)
tree89ba42616e0f245cc84c96cc5b353eea117057d0 /code/pawn/component/AnimatorComponent.cs
parent87d74b50bf443bf199be05bd03afdca6ece082ff (diff)
ReformatHEADmaster
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;