You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So how can I get DT_BasePlayer based on userinfo table data? Is there corresponding field I should look for? Since I cant find steam id in DT_BasePlayer.
The text was updated successfully, but these errors were encountered:
What are you trying to do? Userinfo table has steam ID.
If you have a userinfo entry and want to get the player entity (DT_BasePlayer), do demo.entities.entities[userinfoIndex + 1]. It is always the case that the entity for a particular userinfo is the same index + 1. Userinfo 0 is the first player, entity index 1 is the first player.
The corollary is also true - if you want to get the userinfo for a player, look at the entity.index - 1 entry in the userinfo string table.
Thats great, just wanted to combine these two datas so I could identify player entities based on steam id since I'm making demo parser to extract some useful data :)
So how can I get
DT_BasePlayer
based onuserinfo
table data? Is there corresponding field I should look for? Since I cant find steam id inDT_BasePlayer
.The text was updated successfully, but these errors were encountered: