This commit is contained in:
CortexCore
2023-12-15 20:03:44 +08:00
parent 1f5b779aa1
commit 2fe611c0d5
66 changed files with 10794 additions and 8815 deletions

View File

@@ -369,7 +369,13 @@ namespace BITFALL.Guns
animator.animator.SetBool((int)BITHash.Player.Cancel,
recoilSpring.value.GetLength()>0.1f);
animator.animator.SetFloat((int)BITHash.Player.Aim,_equipService.Zoom.Value);
animator.animator.SetFloat(BITConstant.Player.SqrMagnitude,_movement.LocomotionBasedVelocity.sqrMagnitude);
animator.animator.SetFloat(BITConstant.Player.SqrMagnitude,
math.clamp(
_movement.LocomotionBasedVelocity.sqrMagnitude
,0,1
)
);
recoilSpring.Update(deltaTime,default);