diff --git a/mp/src/game/server/client.cpp b/mp/src/game/server/client.cpp index 9dc55ac9a..4e6a0e5fe 100644 --- a/mp/src/game/server/client.cpp +++ b/mp/src/game/server/client.cpp @@ -803,8 +803,7 @@ struct ClassNamePrefix_t // Add class name prefixes to show in the "give" command autocomplete here static ClassNamePrefix_t s_pEntityPrefixes[] = { - ClassNamePrefix_t("ammo_", true), - ClassNamePrefix_t("item_", true), + ClassNamePrefix_t("item_", false), ClassNamePrefix_t("weapon_", false), }; @@ -915,6 +914,13 @@ CON_COMMAND_F_COMPLETION(give, "Give item to player. Syntax: ", FCVAR return; } + // Dirty hack to avoid suit playing its pickup sound + if(FStrEq(pszClassName, "item_suit")) + { + pPlayer->EquipSuit(false); + return; + } + pPlayer->GiveNamedItem(pszClassName); }