2015-01-20 23:18:40 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2016-05-24 13:13:11 +00:00
|
|
|
["ace_settingsInitialized", {
|
2017-11-10 14:44:15 +00:00
|
|
|
if (!GVAR(enabled)) exitWith {};
|
2016-01-05 07:39:29 +00:00
|
|
|
|
2017-11-10 14:44:15 +00:00
|
|
|
GVAR(temperatureShift) = random [-5, 0, 5];
|
|
|
|
GVAR(badWeatherShift) = random [10, 0, 10];
|
|
|
|
GVAR(humidityShift) = random [-0.1, 0, 0.1];
|
2017-10-17 18:19:30 +00:00
|
|
|
|
2017-11-10 14:44:15 +00:00
|
|
|
if (GVAR(windSimulation)) then {
|
|
|
|
call FUNC(initWind);
|
|
|
|
[FUNC(updateWind), 1] call CBA_fnc_addPerFrameHandler;
|
2017-10-17 18:19:30 +00:00
|
|
|
};
|
2017-11-10 14:44:15 +00:00
|
|
|
[FUNC(updateWeather), GVAR(updateInterval)] call CBA_fnc_addPerFrameHandler;
|
|
|
|
|
2016-05-22 15:29:05 +00:00
|
|
|
}] call CBA_fnc_addEventHandler;
|