mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
dcc934202b
* Single global on/off switch (that really turns everything off properly) * Less coupling between code that runs on the client / server * Simpler update routines * More cohesive code * Less module options * Less network traffic
17 lines
498 B
Plaintext
17 lines
498 B
Plaintext
#include "script_component.hpp"
|
|
|
|
["ace_settingsInitialized", {
|
|
if (!GVAR(enabled)) exitWith {};
|
|
|
|
GVAR(temperatureShift) = random [-5, 0, 5];
|
|
GVAR(badWeatherShift) = random [10, 0, 10];
|
|
GVAR(humidityShift) = random [-0.1, 0, 0.1];
|
|
|
|
if (GVAR(windSimulation)) then {
|
|
call FUNC(initWind);
|
|
[FUNC(updateWind), 1] call CBA_fnc_addPerFrameHandler;
|
|
};
|
|
[FUNC(updateWeather), GVAR(updateInterval)] call CBA_fnc_addPerFrameHandler;
|
|
|
|
}] call CBA_fnc_addEventHandler;
|