mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
weather: sync misc. parameters: lightnings, rainbow, fog
This commit is contained in:
parent
a92ebf4e41
commit
b3d14987bc
@ -3,6 +3,11 @@
|
||||
#include "script_component.hpp"
|
||||
"ACE_WIND_PARAMS" addPublicVariableEventHandler { GVAR(wind_period_start_time) = time; };
|
||||
"ACE_RAIN_PARAMS" addPublicVariableEventHandler { GVAR(rain_period_start_time) = time; };
|
||||
"ACE_MISC_PARAMS" addPublicVariableEventHandler {
|
||||
30 setLightnings (ACE_MISC_PARAMS select 0);
|
||||
30 setRainbow (ACE_MISC_PARAMS select 1);
|
||||
30 setFog (ACE_MISC_PARAMS select 2);
|
||||
};
|
||||
|
||||
simulWeatherSync;
|
||||
_fnc_updateWind = {
|
||||
|
@ -79,6 +79,10 @@ if(GVAR(wind_period_count) > GVAR(wind_next_period)) then {
|
||||
publicVariable "ACE_WIND_PARAMS";
|
||||
};
|
||||
|
||||
// Sync misc. parameters
|
||||
ACE_MISC_PARAMS = [lightnings, rainbow, fogParams];
|
||||
publicVariable "ACE_MISC_PARAMS";
|
||||
|
||||
// @todo: Temperature simulation
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user