summaryrefslogtreecommitdiffstats
path: root/CONTEXT.md
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-28 12:12:33 +0100
committersalmonik <salmonik@tuta.io>2026-10-28 12:12:33 +0100
commita6f1e039ce988cf139c52d7853e96dc8496fb806 (patch)
tree731021e0a401e08ddb8b1b5f4bc9adb589efc859 /CONTEXT.md
parentItem ESP: fix AR2/RPG/stunstick world-model names (diff)
downloadhl2h-a6f1e039ce988cf139c52d7853e96dc8496fb806.tar.gz
hl2h-a6f1e039ce988cf139c52d7853e96dc8496fb806.zip
Item ESP: recover CPhysicsProp model names from the server
Client CPhysicsProp entities frequently report m_nModelIndex == 0, so item crates appeared as model=? and were never classified. Fall back to the server entity's m_nModelIndex (set in CItem_ItemCrate::Spawn) when the client model index is missing, then resolve the name through the shared modelinfo.
Diffstat (limited to 'CONTEXT.md')
-rw-r--r--CONTEXT.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/CONTEXT.md b/CONTEXT.md
index a3cbdf8..737a6b2 100644
--- a/CONTEXT.md
+++ b/CONTEXT.md
@@ -286,6 +286,9 @@ vocabulary / decisions.
286- Only `item_item_crate` and `item_beacon_crate` are tagged as supply crates. 286- Only `item_item_crate` and `item_beacon_crate` are tagged as supply crates.
287 Other breakable crates are intentionally ignored; crate chunk debris is 287 Other breakable crates are intentionally ignored; crate chunk debris is
288 skipped. 288 skipped.
289- Client `CPhysicsProp` entities often have `m_nModelIndex == 0`, including
290 item crates. The item scan falls back to the server entity's model index
291 (`server_model_index`) to recover the model name.
289 292
290## Roadmap / TODO 293## Roadmap / TODO
291 294