From 3c725aa70056cd9ce972ea258debed4ba0f702bc Mon Sep 17 00:00:00 2001 From: Sergey Shorokhov Date: Sat, 3 Aug 2024 00:30:29 +0300 Subject: [PATCH] `CBasePlayerItem`: remove `SF_NORESPAWN` flag on `Respawn()` --- regamedll/dlls/weapons.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/regamedll/dlls/weapons.cpp b/regamedll/dlls/weapons.cpp index e99348e1c..9f1765418 100644 --- a/regamedll/dlls/weapons.cpp +++ b/regamedll/dlls/weapons.cpp @@ -583,6 +583,10 @@ CBaseEntity *CBasePlayerItem::Respawn() // invisible for now pNewWeapon->pev->effects |= EF_NODRAW; +#ifdef REGAMEDLL_ADD + pNewWeapon->pev->spawnflags &= ~SF_NORESPAWN; +#endif + // no touch pNewWeapon->SetTouch(nullptr); pNewWeapon->SetThink(&CBasePlayerItem::AttemptToMaterialize);