Open cr4yz opened 5 years ago
Thanks for reporting!
Ah to complicate things a bit, this map is also v10 but only works with Size=76
😕
https://steamcommunity.com/sharedfiles/filedetails/?id=1667954510
I checked out bspsrc and it looks like csgo is a special case, 76 for v10 and 80 for v11.
edit: I hacked in a fix that checks if the bsp Version is 21, since I only plan on loading CS:S and CS:GO maps this will work for me. For a complete solution looks like it'll need to determine if the map is specifically for CS:GO, since other games with version 21 don't use the same struct
I've used that as a workaround too, maybe we'll figure out a better way to detect CS:GO maps later.
Cool, thanks for the update :)
https://github.com/Metapyziks/SourceUtils/blob/da700ca048c9aed3058b4048c6521d7666dd7fbb/SourceUtils/ValveBsp/StaticProps.cs#L113
Had some issues reading props, size here should be 72
edit: this is the map I tested with, it's using v10 https://gamebanana.com/maps/188524