add a Option to ONLY heal target steamid.

This commit is contained in:
BenCat07 2018-02-23 15:01:30 +01:00 committed by GitHub
parent f9ff1ae978
commit de6f1dba4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)