2015-01-20 23:18:40 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-04-22 19:16:01 +00:00
|
|
|
// Rain
|
|
|
|
GVAR(rain_next_period) = -1;
|
|
|
|
GVAR(rain_period_count) = 0;
|
|
|
|
GVAR(current_rain) = 0;
|
|
|
|
GVAR(rain_current_range) = -1+(random 2);
|
|
|
|
|
|
|
|
// Wind
|
|
|
|
call FUNC(initWind);
|
|
|
|
|
2016-05-24 13:13:11 +00:00
|
|
|
["ace_settingsInitialized", {
|
2016-06-03 00:59:18 +00:00
|
|
|
TRACE_2("ace_settingsInitialized eh",GVAR(enableServerController),GVAR(serverUpdateInterval));
|
2016-01-05 07:39:29 +00:00
|
|
|
|
|
|
|
if (GVAR(enableServerController)) then {
|
|
|
|
[FUNC(serverController), GVAR(serverUpdateInterval)] call CBA_fnc_addPerFrameHandler;
|
|
|
|
};
|
2016-05-22 15:29:05 +00:00
|
|
|
}] call CBA_fnc_addEventHandler;
|