Updated wind indicator to use head direction instead of player direction. Fixes #1892.

This commit is contained in:
Michael Braun 2015-08-02 03:29:53 +02:00
parent 19a4f3fbb1
commit f3e8a8ae42

View File

@ -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;