From 809c62399f5514d953deeeb0136f83e24ad027d5 Mon Sep 17 00:00:00 2001 From: Resxt <55228336+Resxt@users.noreply.github.com> Date: Wed, 21 Dec 2022 17:05:42 +0100 Subject: [PATCH] gun_game 1.0.2 Fixed silencer floating on top of the player when holding a pistol that shouldn't have a silencer equipped --- gamemodes/gun_game.gsc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gamemodes/gun_game.gsc b/gamemodes/gun_game.gsc index e913866..c3272fa 100644 --- a/gamemodes/gun_game.gsc +++ b/gamemodes/gun_game.gsc @@ -331,6 +331,13 @@ AttachmentIsBanned(weaponName, attachmentName) 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; }