saul / demofile

Node.js library for parsing Counter-Strike: Global Offensive demo files
https://demofile.dev
MIT License
483 stars 53 forks source link

isAlive not always working #386

Closed Novante closed 1 year ago

Novante commented 1 year ago

Research

Description

I'm saving player positions to an array each tick, and using .isAlive to avoid some random position "teleports" that occured on death previously. However, on the last round of my demo, once the first player dies, the player's position is still tracked, and is set to a location far from the player's body. Everything looks fine in the demo, and doing getPos shows the correct player position on death.

Note the diagonal line from second mid to A site default: image

Code to reproduce

if (demoFile.players[i] && !demoFile.players[i].isFakePlayer && demoFile.players[i].isAlive) {
                            tickPlayersInfo[i].position.push({
                                position: demoFile.players[i].position
                            });

Affected demos

steam://rungame/730/76561202255233023/+csgo_download_match%20CSGO-vEaAs-ofzax-iWYZm-hfYb8-eLhnL

Novante commented 1 year ago

Seems like library isn't maintained anymore.