mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
0e26755b88
* add medical category to arsenal * function header Co-authored-by: PabstMirror <pabstmirror@gmail.com> * move to preinit, protect list * improve macro * documentation * add config property * add CfgMagazines * Revert "add CfgMagazines" Arsenal doesn't support magazines in custom categories --------- Co-authored-by: GhostIsSpooky <69561145+Salluci@users.noreply.github.com> Co-authored-by: PabstMirror <pabstmirror@gmail.com>
35 lines
830 B
Plaintext
35 lines
830 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Salluci
|
|
* 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
|
|
};
|
|
|
|
// get items in ACE_Medical_Treament_Actions, fallback for items without API config property
|
|
{
|
|
_list append (getArray (_x >> "items"));
|
|
} forEach ("true" configClasses _cfgActions);
|
|
|
|
{
|
|
_list pushBack (configName _x);
|
|
} forEach (_fnc_isMedicalItem configClasses (configFile >> "CfgWeapons"));
|
|
|
|
uiNamespace setVariable [QGVAR(treatmentItems), compileFinal str (_list arrayIntersect _list)]
|