Added ACE setting to hide interaction

This commit is contained in:
BaerMitUmlaut 2015-11-24 19:07:17 +01:00
parent 1effe61aa9
commit 818466d296
3 changed files with 13 additions and 0 deletions

View File

@ -4,4 +4,11 @@ class ACE_Settings {
value = 1;
typeName = "BOOL";
};
class GVAR(enableMagazinePassing) {
value = 1;
typeName = "BOOL";
isClientSettable = 1;
displayName = CSTRING(PassMagazineSetting);
category = ECSTRING(interact_menu,Category_InteractionMenu);
};
};

View File

@ -20,6 +20,8 @@
params ["_player", "_target", "_weapon"];
private ["_compatibleMags"];
if (!GVAR(enableMagazinePassing)) exitWith {false};
_compatibleMags = getArray (configfile >> "CfgWeapons" >> _weapon >> "magazines");
{
_x params ["_className", "", "_loaded"];

View File

@ -839,5 +839,9 @@
<English>%1 passed you a %2 magazine.</English>
<German>%1 hat dir ein %2 Magazin gegeben.</German>
</Key>
<Key ID="STR_ACE_Interaction_PassMagazineSetting">
<English>Show "pass magazine" interaction</English>
<German>Zeige "Magazine geben" Interaktion</German>
</Key>
</Package>
</Project>