weather: sync misc. parameters: lightnings, rainbow, fog

This commit is contained in:
Nicolás Badano 2015-01-21 00:00:06 -03:00
parent a92ebf4e41
commit b3d14987bc
2 changed files with 9 additions and 0 deletions

View File

@ -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 = {

View File

@ -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