/* * Author: Glowbal, Ruthberg * Module for adjusting the wind deflection settings * * Arguments: * 0: The module logic * 1: units * 2: activated * * Return Value: * None * * Public: No */ #include "script_component.hpp" private ["_logic", "_units", "_activated"]; _logic = _this select 0; _units = _this select 1; _activated = _this select 2; 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 // Server weather update interval [_logic, QGVAR(serverUpdateInterval), "serverUpdateInterval"] call EFUNC(common,readSettingFromModule); GVAR(serverUpdateInterval) = 1 max GVAR(serverUpdateInterval) min 600;