diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-28 12:12:33 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-28 12:12:33 +0100 |
| commit | a6f1e039ce988cf139c52d7853e96dc8496fb806 (patch) | |
| tree | 731021e0a401e08ddb8b1b5f4bc9adb589efc859 /CONTEXT.md | |
| parent | Item ESP: fix AR2/RPG/stunstick world-model names (diff) | |
| download | hl2h-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.md | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -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 | ||
