ACE3/addons/medical_vitals/functions/fnc_scanConfig.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

24 lines
561 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: LinkIsGrim
* Cache a hashmap of all oxygen-providing items for SpO2 simulation
*
* Arguments:
* None
*
* Return Value:
* None
*
* Public: No
*/
private _filter = toString {getText (_x >> QGVAR(oxygenSupply)) != ""};
{
private _cfgRoot = configFile >> _x;
{
private _condition = compile getText (_x >> QGVAR(oxygenSupply));
GVAR(oxygenSupplyConditionCache) set [configName _x, _condition];
} forEach (_filter configClasses _cfgRoot);
} forEach ["CfgWeapons", "CfgGoggles"];