mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #4003 from acemod/disable-auto-weather
Disable auto weather
This commit is contained in:
commit
2a46099063
@ -17,3 +17,9 @@ class Extended_PostInit_EventHandlers {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_postInit));
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_DisplayLoad_EventHandlers {
|
||||
class Display3DEN {
|
||||
ADDON = QUOTE(call COMPILE_FILE(init3DEN));
|
||||
};
|
||||
};
|
||||
|
15
addons/weather/init3DEN.sqf
Normal file
15
addons/weather/init3DEN.sqf
Normal file
@ -0,0 +1,15 @@
|
||||
// point of this file is to disable "auto-weather" by default
|
||||
// we want this, because it breaks weather commands we use in this component
|
||||
#include "script_component.hpp"
|
||||
|
||||
// cannot create checkboxes which have the default value "true"
|
||||
// 3den uses inverted checkboxes instead, but those only change in appearence
|
||||
// we have to auto set these settings manually - on mission creation
|
||||
add3DENEventHandler ["onMissionNew", {
|
||||
set3DENMissionAttributes [
|
||||
["Intel", "IntelRainIsForced", true],
|
||||
["Intel", "IntelLightningIsForced", true],
|
||||
["Intel", "IntelWavesIsForced", true],
|
||||
["Intel", "IntelWindIsForced", true]
|
||||
];
|
||||
}];
|
Loading…
Reference in New Issue
Block a user