summaryrefslogtreecommitdiffstats
path: root/src/combat.cpp
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-04 11:39:18 +0100
committersalmonik <salmonik@tuta.io>2026-11-04 11:39:18 +0100
commitb287fc803c73d3ae076c49d726e17e13faa15050 (patch)
tree0e962adff452973119293345a643f6601a7c2c60 /src/combat.cpp
parentProps: match the studio model name format (diff)
downloadhl2h-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 'src/combat.cpp')
0 files changed, 0 insertions, 0 deletions