mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
1649422cbd
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>
24 lines
561 B
Plaintext
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"];
|