Source rainbow

Joined
Jun 11, 2018
Messages
9
Likes
0
Points
1
#1
Hello, there is any source for rainbow hud, rainbow car or another rainbow thins?
Please leave me a source or a link with a source for c++, thanks.
 

Husnain

Well-Known Member
Joined
May 20, 2016
Messages
175
Likes
0
Points
16
Location
Mars
#3
He's trolling

Here is the skin rainbow source. You will get idea further https://pastebin.com/YDtkvKjc
 

y0mike

Well-Known Member
Joined
May 10, 2014
Messages
65
Likes
0
Points
6
#7
[shcode=cpp]

void Visuals::DrawRainbowHUD ( void )
{
    // 'rainbow' is our hue
    static float rainbow = 0.f;
    rainbow += 0.003f;
    if ( rainbow >= 1.f )
        rainbow = 0.f;

    // get the rainbow color from HSB
    D3DCOLOR dwRainbowColor =  g_pCore->GetGraphics ()->GetColorFromHSB ( rainbow, 1.f, 1.f );
    
    // Loop through CHudColours and change each component
    for ( int i = 0; i < 16; ++i )
    {
        *reinterpret_cast< DWORD* >( 0xBAB22C + ( sizeof ( DWORD ) * i ) ) = dwRainbowColor;
    }
}

[/shcode]
 
Top