mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Replaced EGVAR(advanced_ballistics,Altitude) with EGVAR(weather,Altitude)
This commit is contained in:
parent
f107b700a7
commit
823d834457
@ -17,13 +17,11 @@
|
|||||||
|
|
||||||
private ["_playerDir", "_windSpeed", "_windDir", "_crosswind", "_headwind", "_humidity", "_temperature", "_humidity", "_barometricPressure", "_altitude"];
|
private ["_playerDir", "_windSpeed", "_windDir", "_crosswind", "_headwind", "_humidity", "_temperature", "_humidity", "_barometricPressure", "_altitude"];
|
||||||
|
|
||||||
if (isNil QUOTE(EGVAR(advanced_ballistics,Altitude))) then {EGVAR(advanced_ballistics,Altitude) = 0};
|
|
||||||
|
|
||||||
if (isNil QUOTE(GVAR(MIN)) || isNil QUOTE(GVAR(MAX))) then {
|
if (isNil QUOTE(GVAR(MIN)) || isNil QUOTE(GVAR(MAX))) then {
|
||||||
_temperature = GET_TEMPERATURE_AT_HEIGHT((getPosASL ACE_player) select 2);
|
_temperature = GET_TEMPERATURE_AT_HEIGHT((getPosASL ACE_player) select 2);
|
||||||
_humidity = EGVAR(weather,currentHumidity);
|
_humidity = EGVAR(weather,currentHumidity);
|
||||||
_barometricPressure = 1013.25 * exp(-(EGVAR(advanced_ballistics,Altitude) + ((getPosASL ACE_player) select 2)) / 7990) - 10 * overcast;
|
_barometricPressure = 1013.25 * exp(-(EGVAR(weather,Altitude) + ((getPosASL ACE_player) select 2)) / 7990) - 10 * overcast;
|
||||||
_altitude = EGVAR(advanced_ballistics,Altitude) + ((getPosASL ACE_player) select 2);
|
_altitude = EGVAR(weather,Altitude) + ((getPosASL ACE_player) select 2);
|
||||||
GVAR(MIN) = [0, 0, 0, 0, _temperature, _humidity, _barometricPressure, _altitude];
|
GVAR(MIN) = [0, 0, 0, 0, _temperature, _humidity, _barometricPressure, _altitude];
|
||||||
GVAR(MAX) = [0, 0, 0, 0, _temperature, _humidity, _barometricPressure, _altitude];
|
GVAR(MAX) = [0, 0, 0, 0, _temperature, _humidity, _barometricPressure, _altitude];
|
||||||
};
|
};
|
||||||
@ -82,13 +80,13 @@ GVAR(MAX) set [5, _humidity max (GVAR(MAX) select 5)];
|
|||||||
GVAR(TOTAL) set [5, (GVAR(TOTAL) select 5) + _humidity];
|
GVAR(TOTAL) set [5, (GVAR(TOTAL) select 5) + _humidity];
|
||||||
|
|
||||||
// BARO
|
// BARO
|
||||||
_barometricPressure = 1013.25 * exp(-(EGVAR(advanced_ballistics,Altitude) + ((getPosASL ACE_player) select 2)) / 7990) - 10 * overcast;
|
_barometricPressure = 1013.25 * exp(-(EGVAR(weather,Altitude) + ((getPosASL ACE_player) select 2)) / 7990) - 10 * overcast;
|
||||||
GVAR(MIN) set [6, (GVAR(MIN) select 6) min _barometricPressure];
|
GVAR(MIN) set [6, (GVAR(MIN) select 6) min _barometricPressure];
|
||||||
GVAR(MAX) set [6, _barometricPressure max (GVAR(MAX) select 6)];
|
GVAR(MAX) set [6, _barometricPressure max (GVAR(MAX) select 6)];
|
||||||
GVAR(TOTAL) set [6, (GVAR(TOTAL) select 6) + _barometricPressure];
|
GVAR(TOTAL) set [6, (GVAR(TOTAL) select 6) + _barometricPressure];
|
||||||
|
|
||||||
// ALTITUDE
|
// ALTITUDE
|
||||||
_altitude = EGVAR(advanced_ballistics,Altitude) + ((getPosASL ACE_player) select 2);
|
_altitude = EGVAR(weather,Altitude) + ((getPosASL ACE_player) select 2);
|
||||||
GVAR(MIN) set [7, (GVAR(MIN) select 7) min _altitude];
|
GVAR(MIN) set [7, (GVAR(MIN) select 7) min _altitude];
|
||||||
GVAR(MAX) set [7, _altitude max (GVAR(MAX) select 7)];
|
GVAR(MAX) set [7, _altitude max (GVAR(MAX) select 7)];
|
||||||
GVAR(TOTAL) set [7, (GVAR(TOTAL) select 7) + _altitude];
|
GVAR(TOTAL) set [7, (GVAR(TOTAL) select 7) + _altitude];
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
private ["_playerDir", "_textTop", "_textCenterBig", "_textCenterLine1Left", "_textCenterLine2Left", "_textCenterLine3Left", "_textCenterLine1Right", "_textCenterLine2Right", "_textCenterLine3Right", "_textInfoLine1", "_textInfoLine2", "_temperature", "_humidity", "_windSpeed", "_windDir", "_newWindSpeed", "_windSource", "_height"];
|
private ["_playerDir", "_textTop", "_textCenterBig", "_textCenterLine1Left", "_textCenterLine2Left", "_textCenterLine3Left", "_textCenterLine1Right", "_textCenterLine2Right", "_textCenterLine3Right", "_textInfoLine1", "_textInfoLine2", "_temperature", "_humidity", "_windSpeed", "_windDir", "_newWindSpeed", "_windSource", "_height"];
|
||||||
|
|
||||||
if (isNil QUOTE(EGVAR(advanced_ballistics,Altitude))) then {EGVAR(advanced_ballistics,Altitude) = 0};
|
if (isNil QUOTE(EGVAR(weather,Altitude))) then {EGVAR(weather,Altitude) = 0};
|
||||||
|
|
||||||
[] call FUNC(collectData);
|
[] call FUNC(collectData);
|
||||||
|
|
||||||
@ -172,7 +172,7 @@ switch (GVAR(Menu)) do {
|
|||||||
};
|
};
|
||||||
case 6: { // BARO
|
case 6: { // BARO
|
||||||
if (!GVAR(MinAvgMax)) then {
|
if (!GVAR(MinAvgMax)) then {
|
||||||
_textCenterBig = Str(round((1013.25 * exp(-(EGVAR(advanced_ballistics,Altitude) + ((getPosASL ACE_player) select 2)) / 7990) - 10 * overcast) * 10) / 10);
|
_textCenterBig = Str(round((1013.25 * exp(-(EGVAR(weather,Altitude) + ((getPosASL ACE_player) select 2)) / 7990) - 10 * overcast) * 10) / 10);
|
||||||
} else {
|
} else {
|
||||||
_textCenterLine1Left = "Min";
|
_textCenterLine1Left = "Min";
|
||||||
_textCenterLine2Left = "Avg";
|
_textCenterLine2Left = "Avg";
|
||||||
@ -184,7 +184,7 @@ switch (GVAR(Menu)) do {
|
|||||||
};
|
};
|
||||||
case 7: { // ALTITUDE
|
case 7: { // ALTITUDE
|
||||||
if (!GVAR(MinAvgMax)) then {
|
if (!GVAR(MinAvgMax)) then {
|
||||||
_textCenterBig = Str(round(EGVAR(advanced_ballistics,Altitude) + ((getPosASL ACE_player) select 2)));
|
_textCenterBig = Str(round(EGVAR(weather,Altitude) + ((getPosASL ACE_player) select 2)));
|
||||||
} else {
|
} else {
|
||||||
_textCenterLine1Left = "Min";
|
_textCenterLine1Left = "Min";
|
||||||
_textCenterLine2Left = "Avg";
|
_textCenterLine2Left = "Avg";
|
||||||
@ -196,7 +196,7 @@ switch (GVAR(Menu)) do {
|
|||||||
};
|
};
|
||||||
case 8: { // User Screen 1
|
case 8: { // User Screen 1
|
||||||
_textCenterLine1Left = Str(round(_playerDir));
|
_textCenterLine1Left = Str(round(_playerDir));
|
||||||
_textCenterLine2Left = Str(round(EGVAR(advanced_ballistics,Altitude) + ((getPosASL ACE_player) select 2)));
|
_textCenterLine2Left = Str(round(EGVAR(weather,Altitude) + ((getPosASL ACE_player) select 2)));
|
||||||
_textCenterLine3Left = Str(round(abs(_windSpeed) * 10) / 10);
|
_textCenterLine3Left = Str(round(abs(_windSpeed) * 10) / 10);
|
||||||
_textCenterLine1Right = GVAR(Direction)s select GVAR(Direction);
|
_textCenterLine1Right = GVAR(Direction)s select GVAR(Direction);
|
||||||
_textCenterLine2Right = "m";
|
_textCenterLine2Right = "m";
|
||||||
@ -205,7 +205,7 @@ switch (GVAR(Menu)) do {
|
|||||||
case 9: { // User Screen 2
|
case 9: { // User Screen 2
|
||||||
_textCenterLine1Left = Str(round(_temperature * 10) / 10);
|
_textCenterLine1Left = Str(round(_temperature * 10) / 10);
|
||||||
_textCenterLine2Left = Str(round(_humidity * 100 * 10) / 10);
|
_textCenterLine2Left = Str(round(_humidity * 100 * 10) / 10);
|
||||||
_textCenterLine3Left = Str(round((1013.25 * exp(-(EGVAR(advanced_ballistics,Altitude) + ((getPosASL ACE_player) select 2)) / 7990) - 10 * overcast) * 10) / 10);
|
_textCenterLine3Left = Str(round((1013.25 * exp(-(EGVAR(weather,Altitude) + ((getPosASL ACE_player) select 2)) / 7990) - 10 * overcast) * 10) / 10);
|
||||||
_textCenterLine1Right = "C";
|
_textCenterLine1Right = "C";
|
||||||
_textCenterLine2Right = "%";
|
_textCenterLine2Right = "%";
|
||||||
_textCenterLine3Right = "hPA";
|
_textCenterLine3Right = "hPA";
|
||||||
|
Loading…
Reference in New Issue
Block a user