diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 23:32:00 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 23:32:00 +0100 |
| commit | 80a287910f3f77519c8243ba5f53d9c877fbddcb (patch) | |
| tree | 761c4b0ca3ab857cd57a886dd6e9c4048bca950d /CONTEXT.md | |
| parent | Add grenade trajectory, RPG armour priority, empty chargers, mega gravity gun (diff) | |
| download | hl2h-80a287910f3f77519c8243ba5f53d9c877fbddcb.tar.gz hl2h-80a287910f3f77519c8243ba5f53d9c877fbddcb.zip | |
Charger juice: resolve per-class offsets
CWallHealth derives CBaseToggle and CNewRecharge derives CBaseAnimating, so
m_iJuice is at different offsets (0x3c8 and 0x47c here). Collect every
m_iJuice datamap match, derive the suit offset from m_iMaxJuice-20, and pick
by the server class name. Also detect health brushes via wallhealth/recharge
rather than the ESP label. Verified the offsets resolve distinctly on :99.
Diffstat (limited to '')
| -rw-r--r-- | CONTEXT.md | 9 |
1 files changed, 6 insertions, 3 deletions
| @@ -703,9 +703,12 @@ vocabulary / decisions. | |||
| 703 | buckshot count 30 against a max of 3, permanently hiding rockets). | 703 | buckshot count 30 against a max of 3, permanently hiding rockets). |
| 704 | - Chargers and ammo/supply crates are dispensers and are exempt from the | 704 | - Chargers and ammo/supply crates are dispensers and are exempt from the |
| 705 | fullness filter. Empty health/suit chargers are still hidden: both | 705 | fullness filter. Empty health/suit chargers are still hidden: both |
| 706 | `CWallHealth` and `CNewRecharge` expose `m_iJuice` (server datamap | 706 | `CWallHealth` (health brush) and `CNewRecharge` (suit charger) expose |
| 707 | `FIELD_INTEGER`, resolved at offset 0x47c in this build), and a value of 0 | 707 | `m_iJuice`, but at different offsets because their bases differ |
| 708 | removes the charger tag until it recharges. `-1` (unreadable) fails open. | 708 | (`CBaseToggle` vs `CBaseAnimating`). `datamap_offsets` collects every match; |
| 709 | the suit offset is `m_iMaxJuice - 20` and the health offset is the other | ||
| 710 | `m_iJuice` match (0x47c / 0x3c8 in this build). `server_item_juice` picks | ||
| 711 | by the server class name. 0 removes the tag; -1 (unreadable) fails open. | ||
| 709 | - Scans the client entity list every 100 ms and tags health, ammo, armor/suit, | 712 | - Scans the client entity list every 100 ms and tags health, ammo, armor/suit, |
| 710 | world weapon pickups, the two supply-crate models and generic items. | 713 | world weapon pickups, the two supply-crate models and generic items. |
| 711 | - Each tag is a colored marker with a name and optional distance, filtered by | 714 | - Each tag is a colored marker with a name and optional distance, filtered by |
