2016-07-14 14:16:53 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
[QGVAR(engineFire), FUNC(engineFire)] call CBA_fnc_addEventHandler;
|
|
|
|
[QGVAR(cookOff), FUNC(cookOff)] call CBA_fnc_addEventHandler;
|
|
|
|
|
|
|
|
// cookoff and burning engine
|
|
|
|
["Tank", "init", {
|
|
|
|
(_this select 0) addEventHandler ["HandleDamage", {
|
2016-08-13 10:38:04 +00:00
|
|
|
if (GVAR(enable)) then {
|
2016-08-13 10:12:34 +00:00
|
|
|
["tank", _this] call FUNC(handleDamage);
|
|
|
|
};
|
2016-07-14 14:16:53 +00:00
|
|
|
}];
|
|
|
|
}, nil, nil, true] call CBA_fnc_addClassEventHandler;
|
|
|
|
|
|
|
|
["Wheeled_APC_F", "init", {
|
|
|
|
(_this select 0) addEventHandler ["HandleDamage", {
|
2016-08-13 10:38:04 +00:00
|
|
|
if (GVAR(enable)) then {
|
2016-08-13 10:12:34 +00:00
|
|
|
["tank", _this] call FUNC(handleDamage);
|
|
|
|
};
|
2016-07-14 14:16:53 +00:00
|
|
|
}];
|
|
|
|
}, nil, nil, true] call CBA_fnc_addClassEventHandler;
|
|
|
|
|
|
|
|
["Car", "init", {
|
|
|
|
(_this select 0) addEventHandler ["HandleDamage", {
|
2016-08-13 10:38:04 +00:00
|
|
|
if (GVAR(enable)) then {
|
2016-08-13 10:12:34 +00:00
|
|
|
["car", _this] call FUNC(handleDamage);
|
|
|
|
};
|
2016-07-14 14:16:53 +00:00
|
|
|
}];
|
|
|
|
}, nil, ["Wheeled_APC_F"], true] call CBA_fnc_addClassEventHandler;
|
|
|
|
|
|
|
|
// secondary explosions
|
2016-08-13 10:12:34 +00:00
|
|
|
["AllVehicles", "killed", {
|
2016-08-13 10:38:04 +00:00
|
|
|
if (GVAR(enable)) then {
|
2016-08-13 10:12:34 +00:00
|
|
|
(_this select 0) call FUNC(secondaryExplosions);
|
|
|
|
};
|
|
|
|
}, nil, ["Man"]] call CBA_fnc_addClassEventHandler;
|
2016-07-14 14:16:53 +00:00
|
|
|
|
|
|
|
// blow off turret effect
|
2016-08-13 10:12:34 +00:00
|
|
|
["Tank", "killed", {
|
2016-08-13 10:38:04 +00:00
|
|
|
if (GVAR(enable)) then {
|
2016-08-13 10:12:34 +00:00
|
|
|
(_this select 0) call FUNC(blowOffTurret);
|
|
|
|
};
|
|
|
|
}] call CBA_fnc_addClassEventHandler;
|