mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
Fix FindSuppressor + Update stable PBO
This commit is contained in:
parent
f9ba1c8461
commit
39ab0d1124
@ -8,7 +8,7 @@
|
||||
|
||||
*/
|
||||
|
||||
private["_weapon","_result","_ammoName","_rnd338","_rnd93"];
|
||||
private["_weapon","_result","_weaponName","_rnd338","_rnd93"];
|
||||
|
||||
_result = "";
|
||||
_weapon = _this;
|
||||
@ -16,33 +16,35 @@ _weapon = _this;
|
||||
// Zafir accepts no suppressors :(
|
||||
if ((_weapon find "Zafir")>-1) exitWith {""};
|
||||
|
||||
_rnd338 = ["muzzle_snds_338_black","muzzle_snds_338_green","muzzle_snds_338_sand"];
|
||||
_rnd93 = ["muzzle_snds_93mmg","muzzle_snds_93mmg_tan"];
|
||||
|
||||
_ammoName = getText (configFile >> "cfgWeapons" >> _weapon >> "displayName");
|
||||
_weaponName = getText (configFile >> "cfgWeapons" >> _weapon >> "displayName");
|
||||
|
||||
call
|
||||
{
|
||||
if ((_weaponName find "6.5") > -1) exitWith
|
||||
{
|
||||
if (_weapon find "LMG_Mk200" > -1) then
|
||||
{
|
||||
_result = "muzzle_snds_H_MG";
|
||||
}
|
||||
else
|
||||
{
|
||||
_result = "muzzle_snds_H";
|
||||
};
|
||||
};
|
||||
|
||||
switch (_ammoName) do {
|
||||
if ((_weaponName find "5.56") > -1) exitWith {_result = "muzzle_snds_M";};
|
||||
|
||||
case ((_ammoName find "6.5") > -1): {
|
||||
if (_ammoName find "LMG_Mk200" > -1) then {
|
||||
_result = "muzzle_snds_H_MG";
|
||||
} else {
|
||||
_result = "muzzle_snds_H";
|
||||
};
|
||||
};
|
||||
if ((_weaponName find "7.62") > -1) exitWith {_result = "muzzle_snds_H";};
|
||||
|
||||
case ((_ammoName find "5.56") > -1): {_result = "muzzle_snds_M";};
|
||||
if ((_weaponName find ".45") > -1) exitWith {_result = "muzzle_snds_acp";};
|
||||
|
||||
case ((_ammoName find "7.62") > -1): {_result = "muzzle_snds_H";};
|
||||
if ((_weaponName find "9 mm") > -1) exitWith {_result = "muzzle_snds_L";};
|
||||
|
||||
case ((_ammoName find ".45") > -1): {_result = "muzzle_snds_acp";};
|
||||
|
||||
case ((_ammoName find "9 mm") > -1): {_result = "muzzle_snds_L";};
|
||||
|
||||
case ((_ammoName find ".338") > -1): {_result = _rnd338 call BIS_fnc_selectRandom;};
|
||||
|
||||
case ((_ammoName find "9.3 mm") > -1): {_result = _rnd93 call BIS_fnc_selectRandom;};
|
||||
if ((_weaponName find ".338") > -1) exitWith {_result = ["muzzle_snds_338_black","muzzle_snds_338_green","muzzle_snds_338_sand"] call BIS_fnc_selectRandom;};
|
||||
|
||||
if ((_weaponName find "9.3 mm") > -1) exitWith {_result = ["muzzle_snds_93mmg","muzzle_snds_93mmg_tan"] call BIS_fnc_selectRandom;};
|
||||
};
|
||||
_result
|
||||
|
||||
|
||||
_result
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user