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