exclude specific autoheal name
This commit is contained in:
parent
bfc2586d9b
commit
6e73c25afd
@ -44,6 +44,7 @@ static CatEnum vacc_sniper_enum({ "NEVER", "ZOOM & VISIBLE", "ANY ZOOMED" });
|
||||
static CatVar vacc_sniper(vacc_sniper_enum, "auto_vacc_sniper_pop", "1",
|
||||
"Pop if Sniper",
|
||||
"Defines Auto-Vacc behaviour with snipers");
|
||||
static CatVar ignore(CV_STRING, "autoheal_ignore", "", "Ignore", "Ignore people with this name");
|
||||
|
||||
int ChargeCount()
|
||||
{
|
||||
@ -561,6 +562,11 @@ int HealingPriority(int idx)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
player_info_s info;
|
||||
g_IEngine->GetPlayerInfo(idx, &info);
|
||||
info.name[31] = 0;
|
||||
if (strcasestr(info.name, ignore.GetString()))
|
||||
priority = 0.0f;
|
||||
return priority;
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ char re::CTFPartyClient::RequestQueueForMatch(int type)
|
||||
{
|
||||
typedef char (*RequestQueueForMatch_t)(re::CTFPartyClient *, int);
|
||||
uintptr_t addr = gSignatures.GetClientSignature(
|
||||
"55 89 E5 57 56 53 81 EC ? ? ? ? 8B 45 ? E8 ? ? ? ?");
|
||||
"55 89 E5 57 56 53 81 EC ? ? ? ? 8B 75 ? 89 F0");
|
||||
RequestQueueForMatch_t RequestQueueForMatch_fn =
|
||||
RequestQueueForMatch_t(addr);
|
||||
|
||||
|
Reference in New Issue
Block a user