mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
|
#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", {
|
||
|
["tank", _this] call FUNC(handleDamage);
|
||
|
}];
|
||
|
}, nil, nil, true] call CBA_fnc_addClassEventHandler;
|
||
|
|
||
|
["Wheeled_APC_F", "init", {
|
||
|
(_this select 0) addEventHandler ["HandleDamage", {
|
||
|
["tank", _this] call FUNC(handleDamage);
|
||
|
}];
|
||
|
}, nil, nil, true] call CBA_fnc_addClassEventHandler;
|
||
|
|
||
|
["Car", "init", {
|
||
|
(_this select 0) addEventHandler ["HandleDamage", {
|
||
|
["car", _this] call FUNC(handleDamage);
|
||
|
}];
|
||
|
}, nil, ["Wheeled_APC_F"], true] call CBA_fnc_addClassEventHandler;
|
||
|
|
||
|
// secondary explosions
|
||
|
["AllVehicles", "killed", {(_this select 0) call FUNC(secondaryExplosions)}, nil, ["Man"]] call CBA_fnc_addClassEventHandler;
|
||
|
|
||
|
// blow off turret effect
|
||
|
["Tank", "killed", {(_this select 0) call FUNC(blowOffTurret)}] call CBA_fnc_addClassEventHandler;
|
||
|
|
||
|
//Reammobox_F
|