ACE3/addons/medical_vitals/functions/fnc_scanConfig.sqf

24 lines
561 B
Plaintext
Raw Normal View History

#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"];