ValveSoftware / csgo-demoinfo

CS:GO demo parsing tool
BSD 2-Clause "Simplified" License
483 stars 101 forks source link

Relating sent entities to ones loaded from the bsp #10

Closed Metapyziks closed 8 years ago

Metapyziks commented 8 years ago

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!

Metapyziks commented 8 years ago

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.