Skip to content

Commit

Permalink
game: fix hl2mp slam (ValveSoftware/source-sdk-2013#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
SanyaSho committed Aug 16, 2022
1 parent 0ac3a16 commit 5d7bce9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions game/shared/hl2mp/weapon_slam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,17 +303,17 @@ bool CWeapon_SLAM::AnyUndetonatedCharges(void)
void CWeapon_SLAM::StartSatchelDetonate()
{

if ( GetActivity() != ACT_SLAM_DETONATOR_IDLE && GetActivity() != ACT_SLAM_THROW_IDLE )
if ( GetActivity() != ACT_SLAM_DETONATOR_IDLE && GetActivity() != ACT_SLAM_THROW_IDLE && !m_bDetonatorArmed )
return;

// -----------------------------------------
// Play detonate animation
// -----------------------------------------
if (m_bNeedReload)
{
SendWeaponAnim(ACT_SLAM_DETONATOR_DETONATE);
}
else if (m_tSlamState == SLAM_SATCHEL_ATTACH)
else if (m_tSlamState == SLAM_SATCHEL_ATTACH || m_tSlamState == SLAM_TRIPMINE_READY)
{
SendWeaponAnim(ACT_SLAM_STICKWALL_DETONATE);
}
Expand Down

0 comments on commit 5d7bce9

Please sign in to comment.