diff --git a/addons/OPT/RULES/fn_setup_classnames.sqf b/addons/OPT/RULES/fn_setup_classnames.sqf index 3db224ed..81f67bfc 100644 --- a/addons/OPT/RULES/fn_setup_classnames.sqf +++ b/addons/OPT/RULES/fn_setup_classnames.sqf @@ -453,6 +453,12 @@ GVAR(pioniers) = "I_Soldier_exp_F" ]; +GVAR(Sprengmittel) = +[ + "SLAMDirectionalMine_Wire_Mag", + "ATMine_Range_Mag" +]; + /* RECON */ GVAR(recon) = [ diff --git a/addons/OPT/RULES/fn_weaponcheck.sqf b/addons/OPT/RULES/fn_weaponcheck.sqf index 5c3c9a9d..917636fd 100644 --- a/addons/OPT/RULES/fn_weaponcheck.sqf +++ b/addons/OPT/RULES/fn_weaponcheck.sqf @@ -173,9 +173,13 @@ if !(_typeOfPlayer in GVAR(medic)) then if !(_typeOfPlayer in GVAR(pioniers)) then { { - _unit removeMagazines _x; - _bad_item_used = true; - } forEach ["SLAMDirectionalMine_Wire_Mag","ATMine_Range_Mag"]; + if (_x in GVAR(Sprengmittel)) then + { + _unit removeMagazines _x; + _bad_item_used = true; + }; + } forEach (magazines _unit); + }; if (_bad_item_used) then