mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Make wrecks cause fire damage
This commit is contained in:
parent
02539ef9c6
commit
46e58177db
@ -14,13 +14,29 @@
|
||||
};
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
||||
if (!isServer) exitWith {};
|
||||
|
||||
["CBA_settingsInitialized", {
|
||||
TRACE_1("settingsInit",GVAR(enabled));
|
||||
|
||||
if (!GVAR(enabled)) exitWith {};
|
||||
|
||||
// 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;
|
||||
|
||||
if (!isServer) exitWith {};
|
||||
|
||||
GVAR(fireSources) = createHashMap;
|
||||
|
||||
[QGVAR(addFireSource), {
|
||||
|
Loading…
Reference in New Issue
Block a user