summaryrefslogtreecommitdiffstats
path: root/src/hl2h.cpp
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-11-03 22:37:33 +0100
committersalmonik <salmonik@tuta.io>2026-11-03 22:37:33 +0100
commite9a32c69ca2b8d85276c71a7880de0782b8bced7 (patch)
treebce808b94c9165fbb8c1ff098d3b8c9a4e8e8dfc /src/hl2h.cpp
parentFix startup crash: use ClientCmd for fullbright; sanitize owner netvars (diff)
downloadhl2h-e9a32c69ca2b8d85276c71a7880de0782b8bced7.tar.gz
hl2h-e9a32c69ca2b8d85276c71a7880de0782b8bced7.zip
Startup crash: skip fullbright command when off; drop bad owner netvars; add stage markers
Diffstat (limited to '')
-rw-r--r--src/hl2h.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/hl2h.cpp b/src/hl2h.cpp
index 375cd5a..84f9d0d 100644
--- a/src/hl2h.cpp
+++ b/src/hl2h.cpp
@@ -584,6 +584,7 @@ static void do_move(int seq, float frametime) {
584 aimbot_reset_lock(); 584 aimbot_reset_lock();
585 silentaim_reset_lock(); 585 silentaim_reset_lock();
586 fullbright_invalidate(); 586 fullbright_invalidate();
587 logf("do_move: post-local");
587 } 588 }
588 589
589 if (feature_active(FEAT_SPREAD)) { 590 if (feature_active(FEAT_SPREAD)) {
@@ -696,7 +697,12 @@ static void do_move(int seq, float frametime) {
696 if (jumpbug_apply(cmd, localIdx, ent, flags, vel, frametime)) 697 if (jumpbug_apply(cmd, localIdx, ent, flags, vel, frametime))
697 note_modified(cmd, flags, vel); 698 note_modified(cmd, flags, vel);
698 699
700 static bool melee_logged = false;
699 bool melee = feature_active(FEAT_MELEE) && melee_weapon_active(ent); 701 bool melee = feature_active(FEAT_MELEE) && melee_weapon_active(ent);
702 if (!melee_logged) {
703 melee_logged = true;
704 logf("do_move: after melee check (crowbar=%d)", (int)melee);
705 }
700 706
701 if (!feature_active(FEAT_AIMBOT) || !feature_has_bind(FEAT_AIMBOT) || melee) 707 if (!feature_active(FEAT_AIMBOT) || !feature_has_bind(FEAT_AIMBOT) || melee)
702 aimbot_reset_lock(); 708 aimbot_reset_lock();