Skip to content

from_zombie applied to spawned headcrab with expiration time instead of duration#501

Draft
1upD wants to merge 1 commit intomapbase-source:developfrom
1upD:fix/from-zombie-context
Draft

from_zombie applied to spawned headcrab with expiration time instead of duration#501
1upD wants to merge 1 commit intomapbase-source:developfrom
1upD:fix/from-zombie-context

Conversation

@1upD
Copy link

@1upD 1upD commented Mar 5, 2026

While I was debugging an issue with Wilson's responses in Entropy : Zero 2, I came upon the realization that the "duration" parameter in CBaseEntity::AddContext() is misnamed and actually represents an expiration time, not a duration.

I found this example of a context being applied with a duration instead of an expiration time in Mapbase. It looks like it is a context applied to headcrabs to say that they spawned from zombies which only lasts for two seconds.

I have not properly tested this change in game as it was the result of testing an unrelated issue. Hence I will open this in draft status for now.


PR Checklist

  • My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

…wned headcrab with expiration time instead of duration
@1upD 1upD changed the title CNPC_BaseZombie::ReleaseHeadcrab() applies from_zombie context to spa… from_zombie applied to spawned headcrab with expiration time instead of duration Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant