Update XEH_postInit.sqf

This commit is contained in:
johnb432 2024-08-11 16:42:48 +02:00
parent 32f3dca815
commit 5aeb44c1a6

View File

@ -9,6 +9,22 @@
[QGVAR(burnEffects), LINKFUNC(burnEffects)] call CBA_fnc_addEventHandler;
[QGVAR(burnSimulation), LINKFUNC(burnSimulation)] call CBA_fnc_addEventHandler;
// Make burning wrecks into fire sources
["AllVehicles", "Killed", {
params ["_vehicle", "", "", "_useEffects"];
if (_useEffects) then {
[QGVAR(addFireSource), [
_vehicle,
(boundingBoxReal [_vehicle, "FireGeometry"]) select 2,
BURN_MAX_INTENSITY,
QGVAR(wreck) + hashValue _vehicle,
{!isNull _this && {_this getEntityInfo 13}},
_vehicle
]] call CBA_fnc_serverEvent;
};
}, true, ["CAManBase", "StaticWeapon"], true] call CBA_fnc_addClassEventHandler;
[QGVAR(playScream), {
params ["_scream", "_source"];