Skip to content
This repository was archived by the owner on Dec 26, 2021. It is now read-only.

Commit c3f258b

Browse files
authored
MobESP can now be rainbow (#4517)
1 parent a099928 commit c3f258b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Horion/Module/Modules/ESP.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ void doRenderStuff(C_Entity* ent, bool isRegularEntitie) {
4242

4343
if (!localPlayer->canAttack(ent, false))
4444
return;
45-
DrawUtils::setColor(0.2f, 0.2f, 0.9f, (float)fmax(0.1f, (float)fmin(1.f, 15 / (ent->damageTime + 1))));
45+
if (espMod->doRainbow)
46+
DrawUtils::setColor(rcolors[0], rcolors[1], rcolors[2], (float)fmax(0.1f, (float)fmin(1.f, 15 / (ent->damageTime + 1))));
47+
else
48+
DrawUtils::setColor(0.9f, 0.9f, 0.9f, (float)fmax(0.1f, (float)fmin(1.f, 15 / (ent->damageTime + 1))));
4649
} else
4750
return;
4851
if (espMod->is2d)

0 commit comments

Comments
 (0)