Fix mine detection in death messages again

This commit is contained in:
ebaydayz
2016-09-30 20:06:18 -04:00
parent 1fb0b1004d
commit 88c1b83c31
5 changed files with 9 additions and 10 deletions

View File

@@ -331,6 +331,7 @@ if (!isDedicated) then {
case "killed": {
_weapon = _message select 3;
_root = switch true do {
case (_weapon in ["PipeBomb","Mine","MineE"]): {"CfgMagazines"}; // isClass in both
case (isClass (configFile >> "CfgWeapons" >> _weapon)): {"CfgWeapons"};
case (isClass (configFile >> "CfgVehicles" >> _weapon)): {"CfgVehicles"};
case (isClass (configFile >> "CfgMagazines" >> _weapon)): {"CfgMagazines"};