mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
19 lines
500 B
Plaintext
19 lines
500 B
Plaintext
#include "script_component.hpp"
|
|
|
|
// 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);
|
|
|
|
["SettingsInitialized", {
|
|
TRACE_2("SettingsInitialized",GVAR(enableServerController),GVAR(serverUpdateInterval));
|
|
|
|
if (GVAR(enableServerController)) then {
|
|
[FUNC(serverController), GVAR(serverUpdateInterval)] call CBA_fnc_addPerFrameHandler;
|
|
};
|
|
}] call EFUNC(common,addEventHandler);
|