diff --git a/addons/unflipping/CfgEventHandlers.hpp b/addons/unflipping/CfgEventHandlers.hpp index c23108c..cbc08bf 100644 --- a/addons/unflipping/CfgEventHandlers.hpp +++ b/addons/unflipping/CfgEventHandlers.hpp @@ -7,3 +7,10 @@ class Extended_PostInit_EventHandlers clientInit = "call compile preprocessFileLineNumbers 'vet\unflipping\XEH_postInitClient.sqf'"; }; }; +class Extended_PreInit_EventHandlers +{ + class vet_unflipping + { + init = "call compile preprocessFileLineNumbers 'vet\unflipping\XEH_preInit.sqf'"; + }; +}; diff --git a/addons/unflipping/XEH_postInitClient.sqf b/addons/unflipping/XEH_postInitClient.sqf index 6cbaa4b..6c58708 100644 --- a/addons/unflipping/XEH_postInitClient.sqf +++ b/addons/unflipping/XEH_postInitClient.sqf @@ -1,5 +1,3 @@ -#include "initSettings.sqf" - #define PLAYER ([] call CBA_fnc_currentUnit) ["vet_unflipping_unflip_start_client", { diff --git a/addons/unflipping/XEH_postInitServer.sqf b/addons/unflipping/XEH_postInitServer.sqf index 688fd0e..8c90cdd 100644 --- a/addons/unflipping/XEH_postInitServer.sqf +++ b/addons/unflipping/XEH_postInitServer.sqf @@ -1,5 +1,3 @@ -#include "initSettings.sqf" - #define UNFLIP_CHECK_WAITTIME 4 #define UNFLIP_FORCEFACTOR_STEP 0.2 #define UNFLIP_FORCEFACTOR_MAX 5 diff --git a/addons/unflipping/XEH_preInit.sqf b/addons/unflipping/XEH_preInit.sqf new file mode 100644 index 0000000..d1ea321 --- /dev/null +++ b/addons/unflipping/XEH_preInit.sqf @@ -0,0 +1 @@ +#include "initSettings.sqf"