Release Black ops 2 Gsc Rainbow Menu Code by xPonyxAssassinx

Messages
19
Points
8
Click on This Video To See What Rainbow Menu looks Like


Code:
StoreShaders()
{
    self.menu.background = self drawShader("white", 0, 60, 200, 300,(0,0,0), 0, 0);
    self.menu.scroller = self drawShader("line_horizontal", 0, -100, 200, 17, (1, 0.4, 1), 255, 1);
    self.menu.line = self drawShader("white", 100, -1000, 3, 370, (0,1,1), 255, 2);
    self.menu.line2 = self drawShader("white", -100, -1000, 3, 370, (0,1,1), 255, 3);
    self.menu.header = self drawShader("white", 0, 40, 200, 20, (0,1,1), 0, 4);
    self.menu.header2 = self drawShader("white", 0, 360, 200, 50, (0,1,1), 0, 5);
}

How To Add it To Your Own menu

self add_option("Customize Menu Color", "^1R^2a^3i^4n^6b^5o^2w ^6Menu", ::rainshaders);


rainshaders()
{
    if(self.rshade == false)
    {
        self.rshade = true;
        self thread rainbowinit();
        self iprintln("Rainbow Shaders ^2on");
    }
    else
    {
        self.rshade = false;
        self notify("stoprain");
        self.menu.scroller FadeOverTime(0.3);
        self.menu.scroller.color = (1, 0.4, 1);
        self.menu.background FadeOverTime(0.3);
        self.menu.background.color = (0, 0, 0);
        self.menu.SideLine1 FadeOverTime(0.3);
        self.menu.SideLine1.color = (1, 0.4, 1);
        self.menu.SideLine2 FadeOverTime(0.3);
        self.menu.SideLine2.color = (1, 0.4, 1);
        self iprintln("Rainbow Shaders ^1OFF");
     }
}

rainbowinit()
{
   self endon("stoprain");
   self endon("disconnect");
   for(;;)
   {
     self.menu.scroller FadeOverTime(0.5);
     self.menu.scroller.color = (0, 1, 0);
     self.menu.background FadeOverTime(0.5);
     self.menu.background.color = (1, 1, 0);
     self.menu.SideLine1 FadeOverTime(0.5);
     self.menu.SideLine1.color = (1, 0, 1);
     self.menu.SideLine2 FadeOverTime(0.5);
     self.menu.SideLine2.color = (1, 1, 0);
     wait 1;
     self.menu.scroller FadeOverTime(0.5);
     self.menu.scroller.color = (1, 0.5, 1);
     self.menu.background FadeOverTime(0.3);
     self.menu.background.color = (0, 1, 0);
     self.menu.SideLine1 FadeOverTime(0.5);
     self.menu.SideLine1.color = (0, 1, 0);
     self.menu.SideLine2 FadeOverTime(0.5);
     self.menu.SideLine2.color = (1, 1, 0);
     wait 1;
     self.menu.scroller FadeOverTime(0.5);
     self.menu.scroller.color = (1, 0.4, 1);
     self.menu.background FadeOverTime(0.3);
     self.menu.background.color = (1, 0, 1);
     self.menu.SideLine1 FadeOverTime(0.3);
     self.menu.SideLine1.color = (1, 0.4, 1);
     self.menu.SideLine2 FadeOverTime(0.3);
     self.menu.SideLine2.color = (0, 0, 1);
     wait 1;
     self.menu.scroller FadeOverTime(0.5);
     self.menu.scroller.color = (1, 1, 1);
     self.menu.background FadeOverTime(0.3);
     self.menu.background.color = (0, 0, 1);
     self.menu.SideLine1 FadeOverTime(0.5);
     self.menu.SideLine1.color = (0, 1, 0);
     self.menu.SideLine2 FadeOverTime(0.5);
     self.menu.SideLine2.color = (1, 1, 0);
     wait 1;
     self.menu.scroller FadeOverTime(0.5);
     self.menu.scroller.color = (1, 1, 0);
     self.menu.background FadeOverTime(0.3);
     self.menu.background.color = (1, 1, 1);
     self.menu.SideLine1 FadeOverTime(0.5);
     self.menu.SideLine1.color = (1, 0, 0);
     self.menu.SideLine2 FadeOverTime(0.5);
     self.menu.SideLine2.color = (1, 1, 1);
     wait 1;
     self.menu.scroller FadeOverTime(0.5);
     self.menu.scroller.color = (1, 0, 1);
     self.menu.background FadeOverTime(0.3);
     self.menu.background.color = (0, 0, 0);
     self.menu.SideLine1 FadeOverTime(0.5);
     self.menu.SideLine1.color = (.3,.3,.3);
     self.menu.SideLine2 FadeOverTime(0.5);
     self.menu.SideLine2.color = (1, 1, 0);
     wait 1;
     self.menu.scroller FadeOverTime(0.5);
     self.menu.scroller.color = (0, 1, 0);
     self.menu.background FadeOverTime(0.3);
     self.menu.background.color = (0, 1, 1);
     self.menu.SideLine1 FadeOverTime(0.5);
     self.menu.SideLine1.color = (1, 1, 1);
     self.menu.SideLine2 FadeOverTime(0.5);
     self.menu.SideLine2.color = (0, 0, 1);
     wait 1;
     self.menu.scroller FadeOverTime(0.5);
     self.menu.scroller.color = (1, 1, 1);
     self.menu.background FadeOverTime(0.3);
     self.menu.background.color = (1, 0, 1);
     self.menu.SideLine1 FadeOverTime(0.5);
     self.menu.SideLine1.color = (0, 1, 0);
     self.menu.SideLine2 FadeOverTime(0.5);
     self.menu.SideLine2.color = (1, 1, 0);
     wait 1;
     self.menu.scroller FadeOverTime(0.5);
     self.menu.scroller.color = (0, 0, 1);
     self.menu.background FadeOverTime(0.5);
     self.menu.background.color = (0, 0, 0);
     self.menu.SideLine1 FadeOverTime(0.5);
     self.menu.SideLine1.color = (1, 0, 1);
     self.menu.SideLine2 FadeOverTime(0.5);
     self.menu.SideLine2.color = (1, 1, 0);
     }
     wait 1;
  }
 
  drawshader( shader, x, y, width, height, color, alpha, sort, allclients )
{
    if( !(IsDefined( allclients )) )
    {
        allclients = 0;
    }
    if( !(allclients) )
    {
        hud = newclienthudelem( self );
    }
    else
    {
        hud = newhudelem();
    }
    hud.elemtype = "icon";
    hud.color = color;
    hud.alpha = alpha;
    hud.sort = sort;
    hud.children = [];
    hud setparent( level.uiparent );
    hud setshader( shader, width, height );
    hud.x = x;
    hud.y = y;
    return hud;

}
 

Top