Skip to content

xen_grenade_thrown context applied with expiration time#357

Merged
1upD merged 1 commit into
entropy-zero:ez2/mapbasefrom
1upD:ez2/bugfix/xen-grenade-thrown-context-duration
Mar 12, 2026
Merged

xen_grenade_thrown context applied with expiration time#357
1upD merged 1 commit into
entropy-zero:ez2/mapbasefrom
1upD:ez2/bugfix/xen-grenade-thrown-context-duration

Conversation

@1upD
Copy link
Copy Markdown

@1upD 1upD commented Mar 5, 2026

The third parameter in CBaseEntity::AddContext() is misnamed as "duration" when it actually represents an expiration time. When Bad Cop equips or throws a Xen grenade, the context xen_grenade_thrown would be applied with a fixed expiration time of 20 minutes into the game instead of a duration of 20 minutes. This is corrected to be the current time plus 20 minutes.

This caused a bug in which Wilson would remind Bad Cop about Xen grenades every five minutes regardless of whether or not the player was using them.


Does this PR close any issues?

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

@1upD 1upD requested review from Blixibon and Sarethen March 5, 2026 04:31
@1upD 1upD merged commit 49ec9c5 into entropy-zero:ez2/mapbase Mar 12, 2026
5 checks passed
@1upD 1upD deleted the ez2/bugfix/xen-grenade-thrown-context-duration branch March 12, 2026 02:39
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.

2 participants