diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-03 22:03:01 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-03 22:03:01 +0100 |
| commit | 2e9373d530bca779b4070a79972f246ef41e4038 (patch) | |
| tree | cc263d92cdcf7c9befd29f36da3cf04ed0b3a7f4 /src/menu.cpp | |
| parent | Handles: use the 11-bit networked EHANDLE entity index (diff) | |
| download | hl2h-2e9373d530bca779b4070a79972f246ef41e4038.tar.gz hl2h-2e9373d530bca779b4070a79972f246ef41e4038.zip | |
GUI: recover invalid fonts; vischeck: props and bulletproof glass
- Validate the GUI font handles with GetTextSize and recreate them when the
local player entity or UI scale changes. Small scaled sizes fall back to the
proven 16 px size, and the failure log/toast is emitted once instead of every
frame. This fixes sessions where the menu rendered with no text after a
level transition.
- Rework visibility: trace with MASK_SHOT/TRACE_EVERYTHING while ignoring the
local player and target, so static props, crates and other NPCs block.
Non-solid glass and breakable-glass materials are skipped; solid non-break
glass (bulletproof) blocks. Fix CONTENTS_WINDOW 0x2 (was 0x4) in the masks.
- Pass self/target to is_visible from aimbot/silent/melee callers.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
