From a9759af4086b035baae9356dd6dcc829a4fb3244 Mon Sep 17 00:00:00 2001 From: 1upD <1upderek@gmail.com> Date: Wed, 4 Mar 2026 22:44:26 -0500 Subject: [PATCH] CNPC_BaseZombie::ReleaseHeadcrab() applies from_zombie context to spawned headcrab with expiration time instead of duration --- sp/src/game/server/hl2/npc_BaseZombie.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sp/src/game/server/hl2/npc_BaseZombie.cpp b/sp/src/game/server/hl2/npc_BaseZombie.cpp index f8609f493ac..88be78917a3 100644 --- a/sp/src/game/server/hl2/npc_BaseZombie.cpp +++ b/sp/src/game/server/hl2/npc_BaseZombie.cpp @@ -2676,7 +2676,7 @@ void CNPC_BaseZombie::ReleaseHeadcrab( const Vector &vecOrigin, const Vector &ve pCrab->m_iViewHideFlags = m_iViewHideFlags; // Add response context for companion response (more reliable than checking for post-death zombie entity) - pCrab->AddContext( "from_zombie", "1", 2.0f ); + pCrab->AddContext( "from_zombie", "1", gpGlobals->curtime + 2.0f ); #endif // make me the crab's owner to avoid collision issues