From 19f3e2ca0f18f0a80e6c217a5af51a52f4e661dd Mon Sep 17 00:00:00 2001 From: Zodomaniac <15119473+Zodomaniac@users.noreply.github.com> Date: Sat, 29 Jan 2022 23:15:43 +0300 Subject: [PATCH] weapon_slam.cpp: fixed being unable to detonate the satchel when holding a detonator (i.e. having a satchel in the world) and ready tripmine in hands. --- mp/src/game/shared/hl2mp/weapon_slam.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mp/src/game/shared/hl2mp/weapon_slam.cpp b/mp/src/game/shared/hl2mp/weapon_slam.cpp index bcdec40c..52c1e05c 100644 --- a/mp/src/game/shared/hl2mp/weapon_slam.cpp +++ b/mp/src/game/shared/hl2mp/weapon_slam.cpp @@ -303,7 +303,7 @@ 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 ) //fix for being unable to detonate when holding a detonator and ready tripmine in hand return; // ----------------------------------------- @@ -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) // second part of the aforementioned fix { SendWeaponAnim(ACT_SLAM_STICKWALL_DETONATE); }