Skip to content

Commit 330f7b8

Browse files
committed
Refactor CClientPed::DestroySatchelCharges
1 parent c7b54b6 commit 330f7b8

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

Client/mods/deathmatch/logic/CClientPed.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4979,18 +4979,8 @@ void CClientPed::DestroySatchelCharges(bool bBlow, bool bDestroy)
49794979
if (bBlow)
49804980
{
49814981
pProjectile->GetPosition(vecPosition);
4982-
CLuaArguments Arguments;
4983-
Arguments.PushNumber(vecPosition.fX);
4984-
Arguments.PushNumber(vecPosition.fY);
4985-
Arguments.PushNumber(vecPosition.fZ);
4986-
Arguments.PushNumber(EXP_TYPE_GRENADE);
4987-
bool bCancelExplosion = !CallEvent("onClientExplosion", Arguments, true);
4988-
4989-
if (!bCancelExplosion)
4990-
{
4991-
m_pManager->GetExplosionManager()->Create(EXP_TYPE_GRENADE, vecPosition, this, true, -1.0f, false, WEAPONTYPE_REMOTE_SATCHEL_CHARGE);
4992-
g_pClientGame->SendExplosionSync(vecPosition, EXP_TYPE_GRENADE, this);
4993-
}
4982+
m_pManager->GetExplosionManager()->Create(EXP_TYPE_GRENADE, vecPosition, this, true, -1.0f, false, WEAPONTYPE_REMOTE_SATCHEL_CHARGE);
4983+
g_pClientGame->SendExplosionSync(vecPosition, EXP_TYPE_GRENADE, this);
49944984
}
49954985
if (bDestroy)
49964986
{

0 commit comments

Comments
 (0)