WELCOME TO INFOCHEATS.NET

INFOCHEATS is a community-driven platform focused on free game cheats, cheat development, and verified commercial software for a wide range of popular games. We provide a large collection of free cheats shared by the community. All public releases are checked for malicious code to reduce the risk of viruses, malware, or unwanted software before users interact with them.

Alongside free content, INFOCHEATS hosts an active marketplace with many independent sellers offering commercial cheats. Each product is discussed openly, with user feedback, reviews, and real usage experience available to help you make informed decisions before purchasing.

Whether you are looking for free cheats, exploring paid solutions, comparing sellers, or studying how cheats are developed and tested, INFOCHEATS brings everything together in one place — transparently and community-driven.

Box smooth fade

rushensky

Newbie
Newbie

rushensky

Newbie
Newbie
Status
Offline
Joined
Jul 11, 2019
Messages
5
Reaction score
6
When a player becomes invalid, the box fades out smoothly.

Not very useful function, but it looks nice :p

Code:
//  Expression
float Interp(float s1, float s2, float s3, float f1, float f3)
{
    if (s2 == s1)
            return f1;
    if (s2 == s3)
           return f3;
    if (s3 == s1)
           return f1;

    return f1 + ((s2 - s1) / (s3 - s1)) * (f3 - f1);
}

//  Where is the Player box

static DWORD smooth_time = 0;
 
// alpha
box_color[3] =  Interp((float)smooth_time, (float)GetTickCount(), (float)smooth_time + 300.f, box_color[3]  0);

// imgui
//box_color.Value.w = Interp((float)smooth_time, (float)GetTickCount(), (float)smooth_time + 300.f, box_color.Value.w, 0);
 
Top