Skip to content

Commit deb9266

Browse files
Fix missing onExplosion trigger for satchel charges (#4267)
1 parent bdaf7fd commit deb9266

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Client/mods/deathmatch/logic/CClientPed.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4970,7 +4970,10 @@ void CClientPed::DestroySatchelCharges(bool bBlow, bool bDestroy)
49704970
bool bCancelExplosion = !CallEvent("onClientExplosion", Arguments, true);
49714971

49724972
if (!bCancelExplosion)
4973+
{
49734974
m_pManager->GetExplosionManager()->Create(EXP_TYPE_GRENADE, vecPosition, this, true, -1.0f, false, WEAPONTYPE_REMOTE_SATCHEL_CHARGE);
4975+
g_pClientGame->SendExplosionSync(vecPosition, EXP_TYPE_GRENADE, this);
4976+
}
49744977
}
49754978
if (bDestroy)
49764979
{

0 commit comments

Comments
 (0)