mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added ACE setting to hide interaction
This commit is contained in:
parent
1effe61aa9
commit
818466d296
@ -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);
|
||||
};
|
||||
};
|
||||
|
@ -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"];
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user