Skip to content

Commit

Permalink
CBasePlayerItem: remove SF_NORESPAWN flag on Respawn()
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Aug 2, 2024
1 parent d2071ab commit 3c725aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions regamedll/dlls/weapons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3c725aa

Please sign in to comment.