mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
641d40c157
Still a few things left to do but... the system works! ;)
40 lines
623 B
Plaintext
40 lines
623 B
Plaintext
/*
|
|
DMS_FindSuppressor
|
|
Taken from WAI
|
|
Modified by eraser1
|
|
|
|
Usage:
|
|
_weaponClassName call DMS_FindSuppressor;
|
|
|
|
*/
|
|
|
|
private["_weapon","_result","_ammoName"];
|
|
|
|
_result = "";
|
|
_weapon = _this;
|
|
|
|
// Zafir accepts no suppressors :(
|
|
if (_weapon=="LMG_Zafir_F") exitWith {""};
|
|
|
|
|
|
_ammoName = getText (configFile >> "cfgWeapons" >> _weapon >> "displayName");
|
|
|
|
|
|
if ((_ammoName find "5.56") > -1) then
|
|
{
|
|
_result = "muzzle_snds_M";
|
|
};
|
|
|
|
if ((_ammoName find "6.5") > -1) then
|
|
{
|
|
_result = "muzzle_snds_H";
|
|
};
|
|
|
|
if ((_ammoName find "7.62") > -1) then
|
|
{
|
|
_result = "muzzle_snds_H";
|
|
};
|
|
|
|
//TODO Add functionality for 9.3 and .338
|
|
|
|
_result |