Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player hurt events trigger in wrong order #456

Open
Falderebet opened this issue Oct 24, 2023 · 1 comment
Open

Player hurt events trigger in wrong order #456

Falderebet opened this issue Oct 24, 2023 · 1 comment

Comments

@Falderebet
Copy link
Contributor

Falderebet commented Oct 24, 2023

Describe the bug
Player hurt events happens in incorrect order (same tick).

Sometimes when an attacker hurts a player, the damage playerhurt events get placed in the wrong chronological order. So it appears that the player that has been hurt heals after before being damages again (see example).

This might be due to CS2 sub-ticks, but I am not sure.

# REAL LOG
"NertZ<6>" [-452 -480 39] attacked "huNter-<4>" [-1194 -843 39] with "m4a1" (damage "24")  (health "76")
"huNter-<4>" [-1193 -845 39] attacked "NertZ<6>" [-451 -481 39] with "mp7" (damage "13") (health "49")
"NertZ<6>" [-451 -482 38] attacked "huNter-<4>" [-1193 -845 39] with "m4a1" (damage "24")  (health "52") 
"huNter-<4>" [-1193 -845 39] attacked "NertZ<6>" [-452 -480 39] with "mp7" (damage "13") (health "35")
"NertZ<6>" [-449 -486 38] attacked "huNter-<4>" [-1193 -845 39] with "m4a1" (damage "26")  (health "25")
"NertZ<6>" [-449 -486 38] attacked "huNter-<4>" [-1193 -845 39] with "m4a1" (damage "17")  (health "7")


# DEMO LOG
"NertZ<7>" [-451 -479 38] attacked "huNter-<5>" [-1193 -844 39] with "m4a1" (damage "24") (health "76")
"huNter-<5>" [-1192 -845 39] attacked "NertZ<7>" [-451 -479 38] with "mp7" (damage "13") (health "49")
"NertZ<7>" [-451 -481 38] attacked "huNter-<5>" [-1192 -845 39] with "m4a1" (damage "24") (health "52")
"huNter-<5>" [-1192 -845 39] attacked "NertZ<7>" [-450 -483 38] with "mp7" (damage "13") (health "35")
"NertZ<7>" [-449 -485 38] attacked "huNter-<5>" [-1192 -845 39] with "m4a1" (damage "17") (health "7")
"NertZ<7>" [-449 -485 38] attacked "huNter-<5>" [-1192 -845 39] with "m4a1" (damage "26") (health "25")

To Reproduce
Download link to demo file:
https://drive.google.com/file/d/1pKUCcMTpIZIC14sP6vznEPP41ZNfOWVG/view?usp=sharing

The damage exchanges happens in the round:
CT 0 | T 1

Run demo parser.

Expected behavior
That events trigger in the correct order, see difference between real log and demo log.

Library version
v4.0.0-beta.5

@markus-wa
Copy link
Owner

similar to #457

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants