Skip to content

Commit

Permalink
Merge pull request #111 from GNCLORD-MDB/bugfix_waffencheck
Browse files Browse the repository at this point in the history
Bugfix Meldung Waffencheck
  • Loading branch information
Frozen-byte authored Feb 11, 2021
2 parents cf9e508 + c631819 commit 2a04be5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions addons/OPT/RULES/fn_setup_classnames.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,12 @@ GVAR(pioniers) =
"I_Soldier_exp_F"
];

GVAR(Sprengmittel) =
[
"SLAMDirectionalMine_Wire_Mag",
"ATMine_Range_Mag"
];

/* RECON */
GVAR(recon) =
[
Expand Down
10 changes: 7 additions & 3 deletions addons/OPT/RULES/fn_weaponcheck.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a04be5

Please sign in to comment.