2015-01-20 23:18:40 +00:00
|
|
|
//#define DEBUG_MODE_FULL
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
ADDON = false;
|
|
|
|
|
2015-04-20 11:54:22 +00:00
|
|
|
PREP(calculateAirDensity);
|
|
|
|
PREP(calculateBarometricPressure);
|
2015-04-06 03:02:34 +00:00
|
|
|
PREP(displayWindInfo);
|
2015-01-21 05:12:57 +00:00
|
|
|
PREP(getMapData);
|
2015-01-20 23:18:40 +00:00
|
|
|
PREP(getWind);
|
2015-04-21 18:20:05 +00:00
|
|
|
PREP(initWind);
|
2015-04-06 03:02:34 +00:00
|
|
|
PREP(serverController);
|
2015-04-20 11:54:22 +00:00
|
|
|
PREP(updateHumidity);
|
|
|
|
PREP(updateRain);
|
|
|
|
PREP(updateTemperature);
|
|
|
|
PREP(updateWind);
|
2015-01-20 23:18:40 +00:00
|
|
|
|
2015-04-24 08:46:33 +00:00
|
|
|
// Control server side weather propagation
|
|
|
|
GVAR(enableServerController) = true;
|
|
|
|
|
|
|
|
// Control client side weather effects
|
|
|
|
GVAR(syncRain) = true;
|
|
|
|
GVAR(syncWind) = true; // Wind, Gusts, Waves
|
|
|
|
GVAR(syncMisc) = true; // Lightnings, Rainbow, Fog
|
|
|
|
|
2015-04-22 19:16:01 +00:00
|
|
|
// Make sure this data is read before client/server postInit
|
|
|
|
call FUNC(getMapData);
|
|
|
|
|
2015-01-20 23:18:40 +00:00
|
|
|
ADDON = true;
|