Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

Where does cslocaldata.* and localdata.* come from? #144

Open
nicklaswj opened this issue Jul 19, 2018 · 3 comments
Open

Where does cslocaldata.* and localdata.* come from? #144

nicklaswj opened this issue Jul 19, 2018 · 3 comments

Comments

@nicklaswj
Copy link

I've been looking through your code base and I noticed that you read from entities prefixed with cslocaldata. and localdata. when you read the player position and player velocity (DemoInfo/DemoParser.cs - HandleNewPlayer()).

However I haven't encountered a demo file that actually contains these entities, are they special somehow?

It's not really a problem, I'm just curious and now it just really annoys me that I can't figure it out :D

@moritzuehling
Copy link
Contributor

moritzuehling commented Jul 19, 2018 via email

@nicklaswj
Copy link
Author

Thank you for the answer.

Follow up question: If they are mostly used in older/POV demo files, how does the player positions get updated if they aren't there (newer/non-POV demo files)?

@moritzuehling
Copy link
Contributor

There should always be one of them there - again, iirc.

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

No branches or pull requests

2 participants