Skip to content

Commit 1ec1f5b

Browse files
authored
Add player argument to onVehicleExplode (#3651)
1 parent 5b72fb9 commit 1ec1f5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Server/mods/deathmatch/logic/CGame.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ void CGame::AddBuiltInEvents()
16331633
m_Events.AddEvent("onVehicleStartExit", "player, seat, jacker", NULL, false);
16341634
m_Events.AddEvent("onVehicleEnter", "player, seat, jacked", NULL, false);
16351635
m_Events.AddEvent("onVehicleExit", "player, seat, jacker", NULL, false);
1636-
m_Events.AddEvent("onVehicleExplode", "", NULL, false);
1636+
m_Events.AddEvent("onVehicleExplode", "withExplosion, player", nullptr, false);
16371637

16381638
// Console events
16391639
m_Events.AddEvent("onConsole", "text", NULL, false);
@@ -2745,6 +2745,7 @@ void CGame::Packet_ExplosionSync(CExplosionSyncPacket& Packet)
27452745
{
27462746
CLuaArguments arguments;
27472747
arguments.PushBoolean(!Packet.m_blowVehicleWithoutExplosion);
2748+
arguments.PushElement(clientSource);
27482749
vehicle->CallEvent("onVehicleExplode", arguments);
27492750
}
27502751

0 commit comments

Comments
 (0)