FIX: Crit after touch, incorrect pipe ESP
This commit is contained in:
parent
037e39a626
commit
2a6e41e4a2
@ -157,6 +157,9 @@ void ESP::ProcessEntity(CachedEntity* ent) {
|
|||||||
|
|
||||||
if (v_bEntityESP->GetBool()) {
|
if (v_bEntityESP->GetBool()) {
|
||||||
ent->AddESPString(color, bgclr, "%s [%i]", ent->m_pEntity->GetClientClass()->m_pNetworkName, ent->m_iClassID);
|
ent->AddESPString(color, bgclr, "%s [%i]", ent->m_pEntity->GetClientClass()->m_pNetworkName, ent->m_iClassID);
|
||||||
|
if (v_bShowEntityID->GetBool()) {
|
||||||
|
ent->AddESPString(color, bgclr, "%i", ent->m_IDX);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (ent->m_iClassID) {
|
switch (ent->m_iClassID) {
|
||||||
@ -182,6 +185,7 @@ void ESP::ProcessEntity(CachedEntity* ent) {
|
|||||||
if (!v_iShowPipes->GetBool()) break;
|
if (!v_iShowPipes->GetBool()) break;
|
||||||
if (v_iShowPipes->GetInt() == 2 && !ent->m_bCritProjectile) break;
|
if (v_iShowPipes->GetInt() == 2 && !ent->m_bCritProjectile) break;
|
||||||
ent->AddESPString(color, bgclr, "[ (PP) ]");
|
ent->AddESPString(color, bgclr, "[ (PP) ]");
|
||||||
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
if (!v_iShowStickies->GetBool()) break;
|
if (!v_iShowStickies->GetBool()) break;
|
||||||
if (v_iShowStickies->GetInt() == 2 && !ent->m_bCritProjectile) break;
|
if (v_iShowStickies->GetInt() == 2 && !ent->m_bCritProjectile) break;
|
||||||
|
@ -469,12 +469,12 @@ bool IsProjectileCrit(IClientEntity* ent) {
|
|||||||
case ClassID::CTFProjectile_Rocket:
|
case ClassID::CTFProjectile_Rocket:
|
||||||
case ClassID::CTFProjectile_SentryRocket:
|
case ClassID::CTFProjectile_SentryRocket:
|
||||||
case ClassID::CTFProjectile_EnergyBall:
|
case ClassID::CTFProjectile_EnergyBall:
|
||||||
return GetEntityValue<int>(ent, netvar.Rocket_bCritical);
|
return GetEntityValue<unsigned char>(ent, netvar.Rocket_bCritical);
|
||||||
case ClassID::CTFProjectile_Cleaver:
|
case ClassID::CTFProjectile_Cleaver:
|
||||||
case ClassID::CTFProjectile_Jar:
|
case ClassID::CTFProjectile_Jar:
|
||||||
case ClassID::CTFProjectile_JarMilk:
|
case ClassID::CTFProjectile_JarMilk:
|
||||||
case ClassID::CTFGrenadePipebombProjectile:
|
case ClassID::CTFGrenadePipebombProjectile:
|
||||||
return GetEntityValue<int>(ent, netvar.Grenade_bCritical);
|
return GetEntityValue<unsigned char>(ent, netvar.Grenade_bCritical);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user