From de6f1dba4e7f5758b2bdd5a0417cda2b5ef18fd4 Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Fri, 23 Feb 2018 15:01:30 +0100 Subject: [PATCH] add a Option to ONLY heal target steamid. --- src/hacks/AutoHeal.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hacks/AutoHeal.cpp b/src/hacks/AutoHeal.cpp index 77c15caa..c6de308f 100644 --- a/src/hacks/AutoHeal.cpp +++ b/src/hacks/AutoHeal.cpp @@ -306,6 +306,7 @@ void DoResistSwitching() int force_healing_target{ 0 }; +static CatVar heal_steamid_perm(CV_SWITCH, "autoheal_steamid_only", 0, "Only heal target with steamid, set steamid to 0 to reset. (this does NOT set the target, it only sets it to never not heal the target.)"); static CatCommand heal_steamid( "autoheal_heal_steamid", "Heals a player with SteamID (ONCE. Use for easy airstuck med setup)", @@ -419,7 +420,8 @@ void CreateMove() GetHitbox(target, 7, out); AimAt(g_pLocalPlayer->v_Eye, out, g_pUserCmd); g_pUserCmd->buttons |= IN_ATTACK; - force_healing_target = 0; + if (!heal_steamid_perm) + force_healing_target = 0; } } if (!enabled)