StatsHelix / demoinfo

A library to analyze CS:GO demos in C#
MIT License
321 stars 78 forks source link

Player position reported switches to different player after death #156

Closed lasse16 closed 5 years ago

lasse16 commented 5 years ago

This is more of a heads-up instead of a bug. A Bethesda feature, sortof ...

I wrote a snippet of code to get a player's path in each round, by subscribing to the tickDone event and adding each player's current position to a list. Now I noticed some rather unusual paths; in short, once the player is dead, the position reported for this player is the position of a different second player ( might be the killer's pos - didnt check).

This can be simply bypassed by checking if the player is alive each tick and if not adding the last position alive to the list every tick.
Still think of it as a noteworthy feature.

moritzuehling commented 5 years ago

It switches to the player they are spectating, to be exact.