ACE3/addons/compat_sog/XEH_postInit.sqf
Filip Maciejewski a7d8c3eb3a
Compat SOG - Make compat auto load if DLC is present (#9204)
* Move SOG compat to addons/

* Set component to skip loading when SOG not present

* Use skipWhenMissingDependencies for GRAD Trenches compatiblity

* Tools - Add SOG dlc launch config

* move trenches to sub config, handle grad with 2nd subconfig

* fix `Land_vn_b_prop_fueldrum_01` UBC

* use ifndef

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-03 11:31:45 -05:00

20 lines
600 B
Plaintext

#include "script_component.hpp"
[QGVAR(handlePunjiTrapDamage), LINKFUNC(handlePunjiTrapDamage)] call CBA_fnc_addEventHandler;
if (isServer) then {
[QEGVAR(trenches,placed), {
params ["", "_trench"];
if (_trench isKindOf "vn_o_vc_spiderhole_01") then {
_trench enableSimulationGlobal false;
};
}] call CBA_fnc_addEventHandler;
[QEGVAR(trenches,finished), {
params ["", "_trench"];
if (_trench isKindOf "vn_o_vc_spiderhole_01") then {
_trench enableSimulationGlobal true;
};
}] call CBA_fnc_addEventHandler;
};