Osiris icon indicating copy to clipboard operation
Osiris copied to clipboard

c4 radius warning

Open Grazyyt opened this issue 7 years ago • 6 comments

Could you do a warning if you are in the c4 radius that would be so cool

Grazyyt avatar Aug 05 '19 00:08 Grazyyt

I don't think it's necessary at all. It's clear if you're within the radius of C4.

EJianZQ avatar Aug 05 '19 03:08 EJianZQ

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));
}

0xE232FE avatar Aug 05 '19 11:08 0xE232FE

@danielkrupinski can you implement this in the cheat? I already did it myself but would be nice if it was on the github too :)

wieisstimpee avatar Aug 06 '19 12:08 wieisstimpee

++++++

lejyfps avatar Aug 07 '19 03:08 lejyfps

^ its inaccurate when above / below bomb pos

https://www.unknowncheats.me/forum/1511597-post29.html

this one is far better

ghost avatar Aug 09 '19 15:08 ghost

Open your radar CS:GO already have.

rosesware avatar Aug 15 '19 00:08 rosesware