Skip to content

Commit

Permalink
Fix blowout setWind setters (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
diwako authored Feb 23, 2025
1 parent 135ac50 commit 3b3cdb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions addons/main/functions/blowout/fn_blowout.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ switch (GVAR(blowoutStage)) do {
[{
if !(GVAR(blowoutInProgress)) exitWith {};
forceWeatherChange;
private _wind = (([0, 0, 0] getPos [1, GVAR(blowoutDirection)]) vectorFromTo [0, 0, 0]) vectorMultiply 10;
private _wind = (vectorNormalized [-(sin GVAR(blowoutDirection)), -(cos GVAR(blowoutDirection))]) vectorMultiply 10;
setWind [_wind select 0, _wind select 1, true];
}, nil, 15] call CBA_fnc_waitAndExecute;
}, nil, 60 - _time] call CBA_fnc_waitAndExecute;
};
case 2: {
if !(GVAR(blowoutInProgress)) exitWith {};
private _wind = (([0, 0, 0] getPos [1, GVAR(blowoutDirection)]) vectorFromTo [0, 0, 0]) vectorMultiply 20;
private _wind = (vectorNormalized [-(sin GVAR(blowoutDirection)), -(cos GVAR(blowoutDirection))]) vectorMultiply 20;
setWind [_wind select 0, _wind select 1, true];
[QGVAR(blowOutStage), [2]] call CBA_fnc_globalEvent;
};
Expand Down
2 changes: 1 addition & 1 deletion addons/main/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "\z\diwako_anomalies\addons\main\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
#define DISABLE_COMPILE_CACHE

#ifdef DEBUG_ENABLED_MAIN
#define DEBUG_MODE_FULL
Expand Down
2 changes: 1 addition & 1 deletion addons/main/script_version.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define MAJOR 2
#define MINOR 4
#define MINOR 5
#define PATCHLVL 0
#define BUILD 0

0 comments on commit 3b3cdb7

Please sign in to comment.