Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable auto weather #4003

Merged
merged 2 commits into from Jun 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions addons/weather/CfgEventhandlers.hpp
Expand Up @@ -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 changes: 15 additions & 0 deletions addons/weather/init3DEN.sqf
@@ -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]
];
}];