Skip to content

Conversation

akiver
Copy link
Collaborator

@akiver akiver commented Jul 20, 2025

backport of 097b925 into v4 to fix #596.

I noticed a regression introduced in the v5 commit 097b925.
Weapon may be nil in PlayerHurt events instead of being a grenade, see the CI https://github.com/markus-wa/demoinfocs-golang/actions/runs/16401553730/job/46341730756?pr=599.

To fix both issues, I still group grenades by type (same as v5 commit), and store grenades in a slice like before.

@akiver akiver marked this pull request as draft July 20, 2025 15:45
Regression introduced with this v5 commit 097b925 and noticed while backporting it into the v4, see the CI https://github.com/markus-wa/demoinfocs-golang/actions/runs/16401553730/job/46341730756?pr=599.

We still group grenades by type to fix the UniqueID2() issue and store grenades in a slice like it was before.
@akiver akiver marked this pull request as ready for review July 21, 2025 01:16
@akiver akiver requested a review from markus-wa July 21, 2025 01:16
@markus-wa markus-wa merged commit f5f80e7 into master Jul 21, 2025
8 checks passed
@markus-wa markus-wa deleted the smoke-uniqueid branch July 21, 2025 09:28
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.

SmokeStart events report incorrect e.GrenadeEvent.Grenade.UniqueID2()
2 participants