bspsrc icon indicating copy to clipboard operation
bspsrc copied to clipboard

PAT file support

Open Pinsplash opened this issue 4 years ago • 1 comments

Today I stumbled upon something obscure in hl2_pak_dir.vpk. In this VPK's "maps" folder, there are ".pat" files with names matching Half-Life 2 BSPs. These files are plaintext and are capable of adding new entities into maps some time during the game loading it. You can see these entities ingame with commands like ent_text, but since they aren't in the BSP, they aren't there in decompiles. Looking through a single file, it seems like they used this mainly for achievement logic. BSPSource should try to read from a map's associated pat file if possible.

Pinsplash avatar Jul 07 '21 14:07 Pinsplash

Interesting... so those are like .lmp files but just for entities. Yeah, BSPSource should definitely support those.

ata4 avatar Jul 13 '21 19:07 ata4