ACE3/addons/weather/functions/fnc_calculateOxygenDensity.sqf
BrettMayson 1649422cbd
Medical Vitals - Add SPO2 (#9360)
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: LinkIsGrim <salluci.lovi@gmail.com>
2024-02-07 17:50:18 -03:00

21 lines
440 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Brett Mayson
* Calculates the oxygen density
*
* Arguments:
* 0: Temperature - °C <NUMBER>
* 1: Pressure - hPa <NUMBER>
* 2: Relative humidity - value between 0.0 and 1.0 <NUMBER>
*
* Return Value:
* Density of oxygen - kg * m^(-3) <NUMBER>
*
* Example:
* [0, 1020] call ace_weather_fnc_calculateOxygenDensity
*
* Public: No
*/
(_this call FUNC(calculateAirDensity)) * 0.21