2015-03-10 18:55:56 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2016-05-24 16:58:27 +00:00
|
|
|
[QGVAR(setVehicleDamage), {_this call FUNC(setDamage)}] call CBA_fnc_addEventHandler;
|
|
|
|
[QGVAR(setVehicleHitPointDamage), {_this call FUNC(setHitPointDamage)}] call CBA_fnc_addEventHandler;
|
2015-03-29 01:35:55 +00:00
|
|
|
|
|
|
|
// wheels
|
2016-05-24 16:58:27 +00:00
|
|
|
[QGVAR(setWheelHitPointDamage), {(_this select 0) setHitPointDamage [_this select 1, _this select 2]}] call CBA_fnc_addEventHandler;
|
2016-08-03 18:44:04 +00:00
|
|
|
|
|
|
|
if (isServer) then {
|
|
|
|
["ace_settingsInitialized", {
|
|
|
|
TRACE_1("ace_settingsInitialized eh", GVAR(addSpareParts));
|
|
|
|
if (!GVAR(addSpareParts)) exitWith {};
|
|
|
|
if (!(["ace_cargo"] call EFUNC(common,isModLoaded))) exitWith {};
|
|
|
|
|
|
|
|
["Car", "Init", {[_this select 0, 1, "ACE_Wheel"] call FUNC(addSpareParts)}, true, [], true] call CBA_fnc_addClassEventHandler;
|
|
|
|
["Tank", "Init", {[_this select 0, 1, "ACE_Track"] call FUNC(addSpareParts)}, true, [], true] call CBA_fnc_addClassEventHandler;
|
|
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
};
|