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

Weather - Add variable to temporarily pause wind simulation #9057

Merged
merged 5 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions addons/weather/functions/fnc_updateWind.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* Public: No
*/

if (!GVAR(windSimulation)) exitWith {};
LinkIsGrim marked this conversation as resolved.
Show resolved Hide resolved

private _speed = linearConversion [GVAR(last_wind_update), GVAR(next_wind_udpate), CBA_missionTime, GVAR(current_wind_speed), GVAR(next_wind_speed), true];
private _direction = linearConversion [GVAR(last_wind_update), GVAR(next_wind_udpate), CBA_missionTime, GVAR(current_wind_direction), GVAR(next_wind_direction), true];

Expand Down
7 changes: 7 additions & 0 deletions docs/wiki/framework/weather-framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ ACE3 Weather extends the existing weather by temperature, humidity and air press
The additional wind simulation, which is also influenced by the season and the geographical location, can be deactivated if necessary.

Cloud cover, rain and fog can still be set via the mission settings.


## 2. Wind Simulation

## 2.1 Temporarily Pause Wind Simulation

When Wind Simulation is enabled at mission start, it can be temporarily disabled by setting `ACE_Weather_windSimulation = false`.
LinkIsGrim marked this conversation as resolved.
Show resolved Hide resolved