2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-04-20 11:54:22 +00:00
|
|
|
/*
|
|
|
|
* Author: Ruthberg
|
|
|
|
* Calculates the barometric pressure based on altitude and weather
|
|
|
|
*
|
|
|
|
* Arguments:
|
2015-08-04 00:11:24 +00:00
|
|
|
* altitude - meters <NUMBER>
|
2015-04-20 11:54:22 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2015-08-04 00:11:24 +00:00
|
|
|
* barometric pressure - hPA <NUMBER>
|
2015-04-20 11:54:22 +00:00
|
|
|
*
|
2016-01-05 07:39:29 +00:00
|
|
|
* Example:
|
|
|
|
* 0 call ace_weather_fnc_calculateBarometricPressure
|
|
|
|
*
|
|
|
|
* Public: No
|
2015-04-20 11:54:22 +00:00
|
|
|
*/
|
|
|
|
|
2017-10-27 10:39:48 +00:00
|
|
|
((1013.25 - 10 * GVAR(currentOvercast)) * (1 - (0.0065 * (EGVAR(common,mapAltitude) + _this)) / (KELVIN(GVAR(currentTemperature)) + 0.0065 * EGVAR(common,mapAltitude))) ^ 5.255754495);
|