From a6f1e039ce988cf139c52d7853e96dc8496fb806 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 28 Oct 2026 12:12:33 +0100 Subject: 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. --- CONTEXT.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CONTEXT.md') diff --git a/CONTEXT.md b/CONTEXT.md index a3cbdf8..737a6b2 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -286,6 +286,9 @@ vocabulary / decisions. - Only `item_item_crate` and `item_beacon_crate` are tagged as supply crates. Other breakable crates are intentionally ignored; crate chunk debris is skipped. +- Client `CPhysicsProp` entities often have `m_nModelIndex == 0`, including + item crates. The item scan falls back to the server entity's model index + (`server_model_index`) to recover the model name. ## Roadmap / TODO -- cgit v1.2.3