C++ To Cleo

Joined
Mar 23, 2020
Messages
43
Likes
2
Points
13
Location
Turkey
#1
Hello, I Have C++ Code, I Want Make Cleo. Please Help Me.

Code;

Code:
if (ini.ReadInteger("Quality", "FixBrightnessSettingForDynamic", 0) == true)
{
            // Brightness setting for dynamic object lighting (peds, objects, vehicles)
if (!g_AlreadyInit)
            {
                lg << "FixBrightnessSettingForDynamic enabled" << "\n";
                injector::MakeInline<0x561462, 0x561462 + 6>([](injector::reg_pack& regs)
{
                    float brightness = FrontEndMenuManager.m_nBrightness / 255.0f;
                    brightness += 0.5f;
                    *(float*)(regs.esi + 0xC) *= brightness;
                    *(float*)(regs.esi + 0x10) *= brightness;
                    *(float*)(regs.esi + 0x14) *= brightness;
                });
            }
}
 
Last edited:
Top