Skip to content

Commit

Permalink
Fix viewmodel desync when switching while +attack held (ValveSoftware…
Browse files Browse the repository at this point in the history
  • Loading branch information
nekonomicon committed Dec 31, 2024
1 parent 881852d commit 00861b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3203,6 +3203,9 @@ void CBasePlayer::SelectItem( const char *pstr )
if( pItem == m_pActiveItem )
return;

if( !pItem->CanDeploy())
return;

ResetAutoaim();

// FIX, this needs to queue them up and delay
Expand Down Expand Up @@ -3233,6 +3236,9 @@ void CBasePlayer::SelectLastItem( void )
return;
}

if( !m_pLastItem->CanDeploy())
return;

ResetAutoaim();

// FIX, this needs to queue them up and delay
Expand Down

0 comments on commit 00861b5

Please sign in to comment.