mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Arsenal - Add config to force show (mortars) (#6694)
* Arsenal - Add config to force show (mortars) * Update CfgMagazines.hpp * Update arsenal-framework.md
This commit is contained in:
parent
e8c3be8016
commit
e3421cbf8f
@ -193,7 +193,8 @@ if (_items isEqualType true) then {
|
||||
switch true do {
|
||||
// Rifle, handgun, secondary weapons mags
|
||||
case (
|
||||
(getNumber (configFile >> "CfgMagazines" >> _x >> "type") in [TYPE_MAGAZINE_PRIMARY_AND_THROW,TYPE_MAGAZINE_SECONDARY_AND_PUT,1536,TYPE_MAGAZINE_HANDGUN_AND_GL]) &&
|
||||
((getNumber (_x >> "type") in [TYPE_MAGAZINE_PRIMARY_AND_THROW,TYPE_MAGAZINE_SECONDARY_AND_PUT,1536,TYPE_MAGAZINE_HANDGUN_AND_GL]) ||
|
||||
{(getNumber (_x >> QGVAR(hide))) == -1}) &&
|
||||
{!(_x in _grenadeList)} &&
|
||||
{!(_x in _putList)}
|
||||
): {
|
||||
|
@ -142,7 +142,8 @@ private _putList = [];
|
||||
switch true do {
|
||||
// Rifle, handgun, secondary weapons mags
|
||||
case (
|
||||
(getNumber (_x >> "type") in [TYPE_MAGAZINE_PRIMARY_AND_THROW,TYPE_MAGAZINE_SECONDARY_AND_PUT,1536,TYPE_MAGAZINE_HANDGUN_AND_GL]) &&
|
||||
((getNumber (_x >> "type") in [TYPE_MAGAZINE_PRIMARY_AND_THROW,TYPE_MAGAZINE_SECONDARY_AND_PUT,1536,TYPE_MAGAZINE_HANDGUN_AND_GL]) ||
|
||||
{(getNumber (_x >> QGVAR(hide))) == -1}) &&
|
||||
{!(_className in _grenadeList)} &&
|
||||
{!(_className in _putList)}
|
||||
): {
|
||||
|
@ -4,6 +4,7 @@ class cfgMagazines {
|
||||
count = 1;
|
||||
scope = 2;
|
||||
scopeCurator = 2;
|
||||
EGVAR(arsenal,hide) = -1;
|
||||
author = ECSTRING(common,ACETeam);
|
||||
displayName = CSTRING(magazine_HE_displayName);
|
||||
displayNameShort = "";
|
||||
@ -17,6 +18,7 @@ class cfgMagazines {
|
||||
count = 1;
|
||||
scope = 2;
|
||||
scopeCurator = 2;
|
||||
EGVAR(arsenal,hide) = -1;
|
||||
author = ECSTRING(common,ACETeam);
|
||||
displayName = CSTRING(magazine_Smoke_displayName);
|
||||
displayNameShort = "";
|
||||
@ -30,6 +32,7 @@ class cfgMagazines {
|
||||
count = 1;
|
||||
scope = 2;
|
||||
scopeCurator = 2;
|
||||
EGVAR(arsenal,hide) = -1;
|
||||
author = ECSTRING(common,ACETeam);
|
||||
displayName = CSTRING(magazine_Illum_displayName);
|
||||
displayNameShort = "";
|
||||
@ -43,6 +46,7 @@ class cfgMagazines {
|
||||
count = 1;
|
||||
scope = 2;
|
||||
scopeCurator = 2;
|
||||
EGVAR(arsenal,hide) = -1;
|
||||
author = ECSTRING(common,ACETeam);
|
||||
displayName = CSTRING(magazine_HE_Guided_displayName);
|
||||
displayNameShort = "";
|
||||
@ -56,6 +60,7 @@ class cfgMagazines {
|
||||
count = 1;
|
||||
scope = 2;
|
||||
scopeCurator = 2;
|
||||
EGVAR(arsenal,hide) = -1;
|
||||
author = ECSTRING(common,ACETeam);
|
||||
displayName = CSTRING(magazine_HE_LaserGuided_displayName);
|
||||
displayNameShort = "";
|
||||
|
@ -109,7 +109,7 @@ Example:
|
||||
|
||||
ACE Arsenal has 2 new config entries for items:
|
||||
|
||||
- `ace_arsenal_hide`: `0`(shown) or `1` (hidden), used to hide items from ACE Arsenal.
|
||||
- `ace_arsenal_hide`: `0`(shown) or `1` (hidden), used to hide items from ACE Arsenal or `-1` (forced show), for vehicle magazines.
|
||||
- `ace_arsenal_uniqueBase`: Class name of the item that ACE Arsenal will replace it with when saving a loadout.
|
||||
|
||||
Both of them are optional.
|
||||
|
Loading…
Reference in New Issue
Block a user