From 775290e63eef334c300ea92d6f5d6e8ec1fefe24 Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Wed, 13 Dec 2023 16:15:48 +0300 Subject: [PATCH] NeedsDefuseKit() check on OnSpawnEquip() --- regamedll/dlls/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regamedll/dlls/player.cpp b/regamedll/dlls/player.cpp index d6b285123..95c7787e6 100644 --- a/regamedll/dlls/player.cpp +++ b/regamedll/dlls/player.cpp @@ -10324,7 +10324,7 @@ void EXT_FUNC CBasePlayer::__API_HOOK(OnSpawnEquip)(bool addDefault, bool equipG } } - if ((int)defuser_allocation.value == DEFUSERALLOCATION_ALL) + if (NeedsDefuseKit() && (int)defuser_allocation.value == DEFUSERALLOCATION_ALL) GiveNamedItemEx("item_thighpack"); #endif }