summaryrefslogtreecommitdiffstats
path: root/CONTEXT.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--CONTEXT.md15
1 files changed, 13 insertions, 2 deletions
diff --git a/CONTEXT.md b/CONTEXT.md
index 5e36328..bd3507a 100644
--- a/CONTEXT.md
+++ b/CONTEXT.md
@@ -205,8 +205,10 @@ vocabulary / decisions.
205- Aimbot/silent aim/triggerbot/melee skip `IMMUNE` targets always and 205- Aimbot/silent aim/triggerbot/melee skip `IMMUNE` targets always and
206 `ARMORED` targets unless the active weapon is the RPG 206 `ARMORED` targets unless the active weapon is the RPG
207 (`active_weapon_contains` for `rocket_launcher`/`rpg`). 207 (`active_weapon_contains` for `rocket_launcher`/`rpg`).
208- Server `m_takedamage` (`FIELD_INTEGER`) is resolved alongside 208- Server `m_takedamage` is a `char` in the 2013 SDK
209 `m_NPCState`; `0/1` means no damage. 209 (`CNetworkVarForDerived(char, m_takedamage)`, `FIELD_CHARACTER`), so it is
210 resolved with that type (int fallback) and read as a byte. `0/1` means no
211 damage.
210 212
211## Bones / ESP 213## Bones / ESP
212 214
@@ -287,6 +289,15 @@ vocabulary / decisions.
287 `FIRE_BULLETS_FIRST_SHOT_ACCURATE`, so the table excludes it; the secondary 289 `FIRE_BULLETS_FIRST_SHOT_ACCURATE`, so the table excludes it; the secondary
288 uses all 12. Separate best starting seeds are precomputed for 1, 8 and 12 290 uses all 12. Separate best starting seeds are precomputed for 1, 8 and 12
289 pellets. 291 pellets.
292- The server `RandomSeed` PLT slot is found at runtime by reading the loaded
293 `server.so` ELF relocation table (`module_jump_slot`): the anniversary
294 branch's `hl2_complete/bin/server.so` moved the `R_386_JMP_SLOT` from
295 `0xce1348` (older `bin/server.so`) to `0xce5348`, and the hardcoded patch
296 silently hit unrelated data. The hook overrides the seed whenever the
297 `RandomSeed` caller's `this` is the local server player, i.e.
298 `CBaseEntity::FireBullets`; the `CUniformRandomStream` wrappers and
299 constructor-time `RandomSeed(0)` resets pass other objects and are left
300 alone.
290- This attacks the random cone offset only. The cone size, the pistol's 301- This attacks the random cone offset only. The cone size, the pistol's
291 `m_flAccuracyPenalty` growth, the server view punch added to 302 `m_flAccuracyPenalty` growth, the server view punch added to
292 `GetAutoaimVector`, and any damage falloff are server-side state. In 303 `GetAutoaimVector`, and any damage falloff are server-side state. In