Skip to content

Commit a9759af

Browse files
committed
CNPC_BaseZombie::ReleaseHeadcrab() applies from_zombie context to spawned headcrab with expiration time instead of duration
1 parent 6cc2937 commit a9759af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sp/src/game/server/hl2/npc_BaseZombie.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2676,7 +2676,7 @@ void CNPC_BaseZombie::ReleaseHeadcrab( const Vector &vecOrigin, const Vector &ve
26762676
pCrab->m_iViewHideFlags = m_iViewHideFlags;
26772677

26782678
// Add response context for companion response (more reliable than checking for post-death zombie entity)
2679-
pCrab->AddContext( "from_zombie", "1", 2.0f );
2679+
pCrab->AddContext( "from_zombie", "1", gpGlobals->curtime + 2.0f );
26802680
#endif
26812681

26822682
// make me the crab's owner to avoid collision issues

0 commit comments

Comments
 (0)