mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
415d2f685c
FUNC -> LINKFUNC
17 lines
660 B
Plaintext
17 lines
660 B
Plaintext
#include "script_component.hpp"
|
|
|
|
["CBA_settingsInitialized", {
|
|
if (!GVAR(enabled)) exitWith {};
|
|
|
|
GVAR(temperatureShift) = random [-SD_TO_MIN_MAX(4), 0, SD_TO_MIN_MAX(4)]; // Gauss(0, 4)
|
|
GVAR(badWeatherShift) = random [-SD_TO_MIN_MAX(2) + 4, 4, 4 + SD_TO_MIN_MAX(2)]; // Gauss(4, 2)
|
|
GVAR(humidityShift) = random [-SD_TO_MIN_MAX(0.065), 0, SD_TO_MIN_MAX(0.065)]; // Gauss(0, 0.065)
|
|
|
|
if (GVAR(windSimulation)) then {
|
|
call FUNC(initWind);
|
|
[LINKFUNC(updateWind), 1] call CBA_fnc_addPerFrameHandler;
|
|
};
|
|
[LINKFUNC(updateWeather), GVAR(updateInterval)] call CBA_fnc_addPerFrameHandler;
|
|
|
|
}] call CBA_fnc_addEventHandler;
|