Browse Source

game: fix hl2mp slam (ValveSoftware/source-sdk-2013#532)

pull/112/head
SanyaSho 2 years ago
parent
commit
047b3e3150
  1. 6
      game/shared/hl2mp/weapon_slam.cpp

6
game/shared/hl2mp/weapon_slam.cpp

@ -303,9 +303,9 @@ bool CWeapon_SLAM::AnyUndetonatedCharges(void) @@ -303,9 +303,9 @@ 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
// -----------------------------------------
@ -313,7 +313,7 @@ void CWeapon_SLAM::StartSatchelDetonate() @@ -313,7 +313,7 @@ void CWeapon_SLAM::StartSatchelDetonate()
{
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);
}

Loading…
Cancel
Save