Hello, I've tryed to create gradient glow esp. It works nice but csgo crashes so often. What's wrong? Normal esp works great.
Code:
struct Glow
{
float r;
float g;
float b;
float a;
bool rwo;
bool rwuo;
};
void Draw(int GloI, Glow Color)
{
Write<float>((GlowPointer + ((GloI * 0x38) + 0x4)), Color.r);
Write<float>((GlowPointer + ((GloI * 0x38) + 0x8)), Color.g);
Write<float>((GlowPointer + ((GloI * 0x38) + 0xC)), Color.b);
Write<float>((GlowPointer + ((GloI * 0x38) + 0x10)), Color.a);
Write<bool>((GlowPointer + ((GloI * 0x38) + 0x24)), Color.rwo);
Write<bool>((GlowPointer + ((GloI * 0x38) + 0x25)), Color.rwuo);
}
while (start){
if (on) {
if (t == 0) {
R = 0.5;
G = 0.5;
if (B > 0.1)
B -= 0.05;
else t = 1;
}
else if (t == 1) {
R = 0.5;
G = 0.5;
if (B < 0.95)
B += 0.05;
else t = 0;
}
}
Glow grad = { R, G, B,1, true, false};
/.... Checking/ Searching players//
....
Glow grad = { R, G, B,1, true, false};
Draw(player, grad); continue;
}
I tryed to set delay but it didn't help
Code:
if (on) {
if (t == 0) {
R = 0.5;
G = 0.5;
if (B > 0.1)
B -= 0.05;
Sleep(50);
else t = 1;
}
else if (t == 1) {
R = 0.5;
G = 0.5;
if (B < 0.95)
B += 0.05;
Sleep(50);
else t = 0;
}