diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 11:39:18 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 11:39:18 +0100 |
| commit | b287fc803c73d3ae076c49d726e17e13faa15050 (patch) | |
| tree | 0e962adff452973119293345a643f6601a7c2c60 /src/hooks.cpp | |
| parent | Props: match the studio model name format (diff) | |
| download | hl2h-b287fc803c73d3ae076c49d726e17e13faa15050.tar.gz hl2h-b287fc803c73d3ae076c49d726e17e13faa15050.zip | |
Props: disable StudioRender hooks, fix m_clrRender offset
Hooking IStudioRender's draw/setter slots made matched props render the error
material and then crashed the material system ("debug/modelstats has bad
reference count 0 when being bound"). Keep the hook code for reference but do
not install it.
Fix the m_clrRender netvar resolution: the walk picked an embedded table entry
at offset 0, so the earlier entity writes stomped entity vtables. Only accept
offsets inside C_BaseEntity (0x20..0x2000), then write the prop colour there
for models/props entities. Restore white when disabled.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
