mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix Kestrel4500 wind speed calculation
* Cosine was applied twice (on some screens)
This commit is contained in:
parent
2df4a28145
commit
7b2d736ba3
@ -107,7 +107,7 @@ if (GVAR(referenceHeadingMenu) == 0) then {
|
|||||||
};
|
};
|
||||||
case 2: { // Wind SPD
|
case 2: { // Wind SPD
|
||||||
if (!GVAR(MinAvgMax)) then {
|
if (!GVAR(MinAvgMax)) then {
|
||||||
_textCenterBig = Str(round(abs(_windSpeed) * 10) / 10);
|
_textCenterBig = Str(round(_windSpeed * 10) / 10);
|
||||||
} else {
|
} else {
|
||||||
_textCenterLine1Left = "Max";
|
_textCenterLine1Left = "Max";
|
||||||
_textCenterLine2Left = "Avg";
|
_textCenterLine2Left = "Avg";
|
||||||
@ -134,7 +134,7 @@ if (GVAR(referenceHeadingMenu) == 0) then {
|
|||||||
if (!GVAR(MinAvgMax)) then {
|
if (!GVAR(MinAvgMax)) then {
|
||||||
if (missionNamespace getVariable [QEGVAR(advanced_ballistics,enabled), false]) then {
|
if (missionNamespace getVariable [QEGVAR(advanced_ballistics,enabled), false]) then {
|
||||||
_textCenterBig = Str(round(abs(sin(GVAR(RefHeading) - _playerDir) * _windSpeed) * 10) / 10);
|
_textCenterBig = Str(round(abs(sin(GVAR(RefHeading) - _playerDir) * _windSpeed) * 10) / 10);
|
||||||
_textInfoLine1 = format["%1 m/s @ %2", round((abs(cos(_playerDir - _windDir)) * _windSpeed) * 10) / 10, round(_playerDir)];
|
_textInfoLine1 = format["%1 m/s @ %2", round(_windSpeed * 10) / 10, round(_playerDir)];
|
||||||
} else {
|
} else {
|
||||||
_textCenterBig = Str(round(abs(sin(GVAR(RefHeading)) * _windSpeed) * 10) / 10);
|
_textCenterBig = Str(round(abs(sin(GVAR(RefHeading)) * _windSpeed) * 10) / 10);
|
||||||
_textInfoLine1 = format["%1 m/s @ %2", round(_windSpeed * 10) / 10, round(_windDir)];
|
_textInfoLine1 = format["%1 m/s @ %2", round(_windSpeed * 10) / 10, round(_windDir)];
|
||||||
@ -166,7 +166,7 @@ if (GVAR(referenceHeadingMenu) == 0) then {
|
|||||||
if (!GVAR(MinAvgMax)) then {
|
if (!GVAR(MinAvgMax)) then {
|
||||||
if (missionNamespace getVariable [QEGVAR(advanced_ballistics,enabled), false]) then {
|
if (missionNamespace getVariable [QEGVAR(advanced_ballistics,enabled), false]) then {
|
||||||
_textCenterBig = Str(round(cos(GVAR(RefHeading) - _playerDir) * _windSpeed * 10) / 10);
|
_textCenterBig = Str(round(cos(GVAR(RefHeading) - _playerDir) * _windSpeed * 10) / 10);
|
||||||
_textInfoLine1 = format["%1 m/s @ %2", round((abs(cos(_playerDir - _windDir)) * _windSpeed) * 10) / 10, round(_playerDir)];
|
_textInfoLine1 = format["%1 m/s @ %2", round(_windSpeed * 10) / 10, round(_playerDir)];
|
||||||
} else {
|
} else {
|
||||||
_textCenterBig = Str(round(cos(GVAR(RefHeading)) * _windSpeed * 10) / 10);
|
_textCenterBig = Str(round(cos(GVAR(RefHeading)) * _windSpeed * 10) / 10);
|
||||||
_textInfoLine1 = format["%1 m/s @ %2", round(_windSpeed * 10) / 10, round(_windDir)];
|
_textInfoLine1 = format["%1 m/s @ %2", round(_windSpeed * 10) / 10, round(_windDir)];
|
||||||
|
Loading…
Reference in New Issue
Block a user