From c3f258b3c6ed20bc91d7781395d26f3f4304f01f Mon Sep 17 00:00:00 2001 From: Intop <78622918+Intoprelised@users.noreply.github.com> Date: Mon, 4 Oct 2021 09:19:06 -0400 Subject: [PATCH] MobESP can now be rainbow (#4517) --- Horion/Module/Modules/ESP.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Horion/Module/Modules/ESP.cpp b/Horion/Module/Modules/ESP.cpp index 256f42570..e5ad7ddb6 100644 --- a/Horion/Module/Modules/ESP.cpp +++ b/Horion/Module/Modules/ESP.cpp @@ -42,7 +42,10 @@ void doRenderStuff(C_Entity* ent, bool isRegularEntitie) { if (!localPlayer->canAttack(ent, false)) return; - DrawUtils::setColor(0.2f, 0.2f, 0.9f, (float)fmax(0.1f, (float)fmin(1.f, 15 / (ent->damageTime + 1)))); + if (espMod->doRainbow) + DrawUtils::setColor(rcolors[0], rcolors[1], rcolors[2], (float)fmax(0.1f, (float)fmin(1.f, 15 / (ent->damageTime + 1)))); + else + DrawUtils::setColor(0.9f, 0.9f, 0.9f, (float)fmax(0.1f, (float)fmin(1.f, 15 / (ent->damageTime + 1)))); } else return; if (espMod->is2d)