c4 radius warning
Could you do a warning if you are in the c4 radius that would be so cool
I don't think it's necessary at all. It's clear if you're within the radius of C4.
Here you can print the damage you get from c4 explosion.
void ESP::DrawPlantedBomb(C_PlantedC4* bomb)
{
if (!(*csGameRules) || !(*csGameRules)->IsBombPlanted())
return;
ImColor color = bomb->GetBombDefuser() != -1 || bomb->IsBombDefused() ? Settings::ESP::bombDefusingColor.Color() : Settings::ESP::bombColor.Color();
float bombTimer = bomb->GetBombTime() - globalVars->curtime;
std::stringstream displayText;
if (bomb->IsBombDefused() || !bomb->IsBombTicking() || bombTimer <= 0.f)
{
displayText << "Bomb";
}
else
{
C_BasePlayer* localplayer = (C_BasePlayer*) entityList->GetClientEntity(engine->GetLocalPlayer());
Vector vecOrigin = bomb->GetVecOrigin();
float flDistance = localplayer->GetEyePosition().DistTo(vecOrigin);
float a = 450.7f;
float b = 75.68f;
float c = 789.2f;
float d = ((flDistance - b) / c);
float flDamage = a * expf(-d * d);
float damage = std::max((int) ceilf(GetArmourHealth(flDamage, localplayer->GetArmor())), 0);
displayText << "Bomb: " << std::fixed << std::showpoint << std::setprecision(1) << bombTimer << ", damage: " << (int) damage;
}
DrawEntity(bomb, displayText.str().c_str(), Color::FromImColor(color));
}
@danielkrupinski can you implement this in the cheat? I already did it myself but would be nice if it was on the github too :)
++++++
^ its inaccurate when above / below bomb pos
https://www.unknowncheats.me/forum/1511597-post29.html
this one is far better
Open your radar CS:GO already have.