2015-04-27 10:28:56 +00:00
|
|
|
/*
|
|
|
|
* Author: Glowbal, Ruthberg
|
|
|
|
* Module for adjusting the wind deflection settings
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The module logic <LOGIC>
|
|
|
|
* 1: units <ARRAY>
|
|
|
|
* 2: activated <BOOL>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None <NIL>
|
|
|
|
*
|
2016-01-05 07:39:29 +00:00
|
|
|
* Example:
|
|
|
|
* [module, [], true] call ace_weather_fnc_initModuleSettings
|
|
|
|
*
|
2015-04-27 10:28:56 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-08-04 00:11:24 +00:00
|
|
|
params ["_logic", "_units", "_activated"];
|
2015-04-27 10:28:56 +00:00
|
|
|
|
|
|
|
if !(_activated) exitWith {};
|
|
|
|
|
|
|
|
// Control server side weather propagation
|
|
|
|
[_logic, QGVAR(enableServerController), "enableServerController"] call EFUNC(common,readSettingFromModule);
|
|
|
|
|
|
|
|
// Overrides the default weather (editor, mission settings) with ACE weather (map based)
|
|
|
|
[_logic, QGVAR(useACEWeather), "useACEWeather"] call EFUNC(common,readSettingFromModule);
|
|
|
|
|
|
|
|
// Control client side weather effects
|
|
|
|
[_logic, QGVAR(syncRain), "syncRain"] call EFUNC(common,readSettingFromModule);
|
|
|
|
[_logic, QGVAR(syncWind), "syncWind"] call EFUNC(common,readSettingFromModule); // Wind, Gusts, Waves
|
|
|
|
[_logic, QGVAR(syncMisc), "syncMisc"] call EFUNC(common,readSettingFromModule); // Lightnings, Rainbow, Fog
|
2015-04-27 10:47:26 +00:00
|
|
|
|
|
|
|
// Server weather update interval
|
|
|
|
[_logic, QGVAR(serverUpdateInterval), "serverUpdateInterval"] call EFUNC(common,readSettingFromModule);
|
|
|
|
|
2015-08-04 00:11:24 +00:00
|
|
|
GVAR(serverUpdateInterval) = 1 max GVAR(serverUpdateInterval) min 600;
|