Kestrel4500 - Measure wind relative to player's head direction (#10215)

This commit is contained in:
Fabio Schick 2024-08-17 17:57:37 +02:00 committed by GitHub
parent bdf6a179ad
commit 22f97270f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,7 @@
* Public: No * Public: No
*/ */
private _playerDir = getDir ACE_player; private _playerDir = (ACE_player call CBA_fnc_headDir) select 0;
private _windSpeed = vectorMagnitude wind; private _windSpeed = vectorMagnitude wind;
private _windDir = (wind select 0) atan2 (wind select 1); private _windDir = (wind select 0) atan2 (wind select 1);
if (missionNamespace getVariable [QEGVAR(advanced_ballistics,enabled), false]) then { if (missionNamespace getVariable [QEGVAR(advanced_ballistics,enabled), false]) then {