Skip to content

Commit

Permalink
Merge pull request #31 from r4klatif/master
Browse files Browse the repository at this point in the history
Animations: fix ACT_CSGO_IDLE_TURN_BALANCEADJUST
  • Loading branch information
LWSS committed May 23, 2022
2 parents 8f16ca0 + 8e5167e commit 2d3a55c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game/shared/cstrike15/csgo_playeranimstate.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//========= Copyright 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
Expand Down Expand Up @@ -2377,7 +2377,7 @@ void CCSGOPlayerAnimState::SetUpVelocity( void )
}

#ifndef CLIENT_DLL
if ( m_flVelocityLengthXY <= CS_PLAYER_SPEED_STOPPED && m_bOnGround && !m_bOnLadder && !m_bLanding && m_flLastUpdateIncrement > 0 && abs( AngleDiff( m_flFootYawLast, m_flFootYaw ) / m_flLastUpdateIncrement > CSGO_ANIM_READJUST_THRESHOLD ) )
if ( m_flVelocityLengthXY <= CS_PLAYER_SPEED_STOPPED && m_bOnGround && !m_bOnLadder && !m_bLanding && m_flLastUpdateIncrement > 0 && abs( AngleDiff( m_flFootYawLast, m_flFootYaw ) / m_flLastUpdateIncrement ) > CSGO_ANIM_READJUST_THRESHOLD )
{
SetLayerSequence( ANIMATION_LAYER_ADJUST, SelectSequenceFromActMods( ACT_CSGO_IDLE_TURN_BALANCEADJUST ) );
m_bAdjustStarted = true;
Expand Down

0 comments on commit 2d3a55c

Please sign in to comment.