gun_game 1.0.2

Fixed silencer floating on top of the player when holding a pistol that shouldn't have a silencer equipped
This commit is contained in:
Resxt 2022-12-21 17:05:42 +01:00
parent 2eaaeac6ff
commit 809c62399f

View File

@ -331,6 +331,13 @@ AttachmentIsBanned(weaponName, attachmentName)
return true; return true;
} }
} }
else if (GetBaseWeaponName(weaponName) == "iw5_mp412_mp" || GetBaseWeaponName(weaponName) == "iw5_44magnum_mp" || GetBaseWeaponName(weaponName) == "iw5_deserteagle_mp")
{
if (attachmentName == "silencer02") // works but makes a silencer float on top of the player's on his screen
{
return true;
}
}
return false; return false;
} }