mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Updated wind indicator to use head direction instead of player direction. Fixes #1892.
This commit is contained in:
parent
19a4f3fbb1
commit
f3e8a8ae42
@ -47,7 +47,7 @@ GVAR(WindInfo) = true;
|
||||
};
|
||||
|
||||
if (_windSpeed > 0.2) then {
|
||||
_playerDir = getDir ACE_player;
|
||||
_playerDir = (ACE_player call CBA_fnc_headDir) select 0;
|
||||
_windDir = (ACE_wind select 0) atan2 (ACE_wind select 1);
|
||||
_windIndex = round(((_playerDir - _windDir + 360) % 360) / 30);
|
||||
_windIndex = _windIndex % 12;
|
||||
|
Loading…
Reference in New Issue
Block a user