2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2023-07-07 04:14:44 +00:00
|
|
|
/*
|
2023-07-21 19:39:48 +00:00
|
|
|
* Author: LinkIsGrim
|
2023-07-07 04:14:44 +00:00
|
|
|
* Caches all item classnames used in ACE_Medical_Treatment_Actions
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* call ace_medical_treatment_fnc_scanMedicalItems
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
private _list = [];
|
|
|
|
private _cfgActions = configFile >> QGVAR(actions);
|
|
|
|
|
|
|
|
private _fnc_isMedicalItem = toString {
|
|
|
|
getNumber (_x >> "ACE_isMedicalItem") isEqualTo 1
|
|
|
|
};
|
|
|
|
|
2023-07-21 19:39:48 +00:00
|
|
|
// Get items in ACE_Medical_Treament_Actions, fallback for items without API config property
|
2023-07-07 04:14:44 +00:00
|
|
|
{
|
|
|
|
_list append (getArray (_x >> "items"));
|
|
|
|
} forEach ("true" configClasses _cfgActions);
|
|
|
|
|
|
|
|
{
|
|
|
|
_list pushBack (configName _x);
|
|
|
|
} forEach (_fnc_isMedicalItem configClasses (configFile >> "CfgWeapons"));
|
|
|
|
|
2023-07-21 19:39:48 +00:00
|
|
|
{
|
|
|
|
_list pushBack (configName _x);
|
|
|
|
} forEach (_fnc_isMedicalItem configClasses (configFile >> "CfgMagazines"));
|
|
|
|
|
2023-10-04 18:09:05 +00:00
|
|
|
uiNamespace setVariable [QGVAR(treatmentItems), compileFinal (_list createHashMapFromArray [])]
|