ValveSoftware / csgo-demoinfo

CS:GO demo parsing tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Relating sent entities to ones loaded from the bsp

Metapyziks opened this issue · comments

I've been writing a BSP importer / demo viewer in Unity, although I've hit a bit of a wall. It seems like some information for some entities isn't sent in a PacketEntities message. For example, the model / model index for the doors on de_nuke, or the Z position for most of those doors.

Should I be finding that sort of information by matching the networked entity with one loaded from the BSP on my client? If so, how can I determine which entity from the map is associated with one that enters my PVS?

Thanks!

I might have figured this out - I think I need to use the values from the instancebaseline string table when first reading an entity that enters the PVS if that table contains a matching entry for the entity's class ID.