mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
464ab0cefb
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: jonpas <jonpas33@gmail.com>
32 lines
817 B
Plaintext
32 lines
817 B
Plaintext
#include "script_component.hpp"
|
|
|
|
ADDON = false;
|
|
|
|
PREP_RECOMPILE_START;
|
|
#include "XEH_PREP.hpp"
|
|
PREP_RECOMPILE_END;
|
|
|
|
// collect frag and other grenades separately
|
|
GVAR(GrenadesAll) = [];
|
|
GVAR(GrenadesFrag) = [];
|
|
GVAR(GrenadesNonFrag) = [];
|
|
|
|
{
|
|
private _magazines = getArray (configFile >> "CfgWeapons" >> "Throw" >> _x >> "magazines");
|
|
|
|
GVAR(GrenadesAll) append _magazines;
|
|
|
|
{
|
|
private _ammo = getText (configFile >> "CfgMagazines" >> _x >> "ammo");
|
|
private _explosive = getNumber (configFile >> "CfgAmmo" >> _ammo >> "explosive");
|
|
|
|
([GVAR(GrenadesFrag), GVAR(GrenadesNonFrag)] select (_explosive == 0)) pushBack _x;
|
|
false
|
|
} count _magazines;
|
|
false
|
|
} count getArray (configFile >> "CfgWeapons" >> "Throw" >> "muzzles");
|
|
|
|
#include "initSettings.inc.sqf"
|
|
|
|
ADDON = true;
|