summaryrefslogtreecommitdiffstats
path: root/play.sh
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-04 12:52:03 +0100
committersalmonik <salmonik@tuta.io>2026-11-04 12:52:03 +0100
commita83d3c80d3c555490e7545a191a2c09dd74ca13d (patch)
treeaaaab95ba016362a948cd1148229d12047a8a5c0 /play.sh
parentESP: classify NPC damage immunity/armour/vulnerability (diff)
downloadhl2h-a83d3c80d3c555490e7545a191a2c09dd74ca13d.tar.gz
hl2h-a83d3c80d3c555490e7545a191a2c09dd74ca13d.zip
Props: forward DrawModel's modelOrigin argument
DrawModel takes (this, results, info, boneToWorld, flexWeights, flexDelayedWeights, const Vector &modelOrigin, flags). The hook dropped modelOrigin, so flags landed in its slot and the real flags were read from caller stack garbage. studiorender.so 0x83ad0 reads 0x20(%ebp) as the modelOrigin pointer and 0x24(%ebp) as the flags; passing both restores the engine's normal draw. This is the cause of the intermittent (~50%) checkerboard/error-material props: the draw was being issued with a garbage flag word.
Diffstat (limited to 'play.sh')
0 files changed, 0 insertions, 0 deletions