THREAD: Rank Slider
  1. 01-11-2013, 11:17 AM
    758
    Posts
    10,390
    Reputation
    Jun 2010
    NextGenUpdate


    On init:

    precacheShader("gradient_center");


    Thread this in your menu:

    ::ChooseRank



    Place this code anywhere:

    Rank2(value)
    {
    wait .5;if(value==1)self.pers["rankxp"]=0;if(value==2)self.pers["rankxp"]=500;if(value==3)self.pers["rankxp"]=1700;if(value==4)self.pers["rankxp"]=3600;if(value==5)self.pers["rankxp"]=6200;if(value==6)self.pers["rankxp"]=9500;if(value==7)self.pers["rankxp"]=13500;if(value==Cool Man (aka Tustin)self.pers["rankxp"]=18200;if(value==9)self.pers["rankxp"]=23600;if(value==10)self.pers["rankxp"]=29700;if(value==11)self.pers["rankxp"]=36500;if(value==12)self.pers["rankxp"]=44300;if(value==13)self.pers["rankxp"]=53100;if(value==14)self.pers["rankxp"]=62900;if(value==15)self.pers["rankxp"]=73700;if(value==16)self.pers["rankxp"]=85500;if(value==17)self.pers["rankxp"]=98300;if(value==1Cool Man (aka Tustin)self.pers["rankxp"]=112100;if(value==19)self.pers["rankxp"]=126900;if(value==20)self.pers["rankxp"]=142700;if(value==21)self.pers["rankxp"]=159500;if(value==22)self.pers["rankxp"]=177300;if(value==23)self.pers["rankxp"]=196100;if(value==24)self.pers["rankxp"]=215900;if(value==25)self.pers["rankxp"]=236700;if(value==26)self.pers["rankxp"]=258500;if(value==27)self.pers["rankxp"]=281300;if(value==2Cool Man (aka Tustin)self.pers["rankxp"]=305100;if(value==29)self.pers["rankxp"]=329900;if(value==30)self.pers["rankxp"]=355700;if(value==31)self.pers["rankxp"]=382700;if(value==32)self.pers["rankxp"]=410900;if(value==33)self.pers["rankxp"]=440300;if(value==34)self.pers["rankxp"]=470900;if(value==35)self.pers["rankxp"]=502700;if(value==36)self.pers["rankxp"]=535700;if(value==37)self.pers["rankxp"]=569900;if(value==3Cool Man (aka Tustin)self.pers["rankxp"]=605300;if(value==39)self.pers["rankxp"]=641900;if(value==40)self.pers["rankxp"]=679700;if(value==41)self.pers["rankxp"]=718700;if(value==42)self.pers["rankxp"]=758900;if(value==43)self.pers["rankxp"]=800300;if(value==44)self.pers["rankxp"]=842900;if(value==45)self.pers["rankxp"]=886700;if(value==46)self.pers["rankxp"]=931700;if(value==47)self.pers["rankxp"]=977900;if(value==4Cool Man (aka Tustin)self.pers["rankxp"]=1025300;if(value==49)self.pers["rankxp"]=1073900;if(value==50)self.pers["rankxp"]=1123700;if(value==51)self.pers["rankxp"]=1175000;if(value==52)self.pers["rankxp"]=1227800;if(value==53)self.pers["rankxp"]=1282100;if(value==54)self.pers["rankxp"]=1337900;if(value==55)self.pers["rankxp"]=1395200;if(value==56)self.pers["rankxp"]=1454000;if(value==57)self.pers["rankxp"]=1514300;if(value==5Cool Man (aka Tustin)self.pers["rankxp"]=1576100;if(value==59)self.pers["rankxp"]=1639400;if(value==60)self.pers["rankxp"]=1704200;if(value==61)self.pers["rankxp"]=1770500;if(value==62)self.pers["rankxp"]=1838300;if(value==63)self.pers["rankxp"]=1907600;if(value==64)self.pers["rankxp"]=1978400;if(value==65)self.pers["rankxp"]=2050700;if(value==66)self.pers["rankxp"]=2124500;if(value==67)self.pers["rankxp"]=2199800;if(value==6Cool Man (aka Tustin)self.pers["rankxp"]=2276600;if(value==69)self.pers["rankxp"]=2354900;if(value==70)self.pers["rankxp"]=2516000;
    self.pers["rank"]=self maps\mp\gametypes\_rank::getRankForXp(self.pers["rankxp"]);
    self maps\mp\gametypes\_persistence::statSet(252,self.p ers["rank"]);
    self maps\mp\gametypes\_rank::incRankXP(self.pers["rankxp"]);
    self.setPromotion=true;

    self setRank(self.pers["rank"],self.pers["prestige"]);
    wait 1.5;
    self thread maps\mp\gametypes\_rank::updateRankAnnounceHUD();
    self maps\mp\gametypes\_persistence::statSet(self.pers["rank"]);
    self maps\mp\gametypes\_persistence::statSet(self.pers["rankxp"]);
    }
    ChooseRank()
    {
    rankShaders = strTok("pvt1;pvt1;pvt1;pfc1;pfc2;pfc3;spc1;spc2;spc3;cpl1; cpl2;cpl3;sgt1;ssgt2;sgt3;ssgt1;ssgt2;ssgt3;sgtfc1 ;sgtfc2;sgtfc3;msgt1;msgt2;msgt3;fsgt1;fsgt2;fsgt3 ;sgtmaj1;sgtmaj2;sgtmaj3;cmdsgtmaj1;cmdsgtmaj2;cmd sgtmaj3;2ndlt1;2ndlt2;2ndlt3;1stlt1;1stlt2;1stlt3; capt1;capt2;capt3;maj1;maj2;maj3;ltcol1;ltcol2;ltc ol3;ltcol4;col1;col2;col3;col4;bgen1;bgen2;bgen3;b gen4;majgen1;majgen2;majgen3;majgen4;ltgen1;ltgen2 ;ltgen3;ltgen4;gen1;gen2;gen3;gen4;comm", ";" );

    rankDisplay = self CreateRectangleEdit("CENTER","CENTER",0,0,50,50,(1,1,1),"rank_pvt1",5,1);
    rankDisplay2 = self CreateRectangleEdit("CENTER","CENTER",-60,0,35,35,(1,1,1),"rank_comm1",5,0.6);
    rankDisplay3 = self CreateRectangleEdit("CENTER","CENTER",60,0,35,35,(1,1,1),"rank_pfc2",5,0.6);
    rankDisplay4 = self CreateRectangleEdit("CENTER","CENTER",-120,0,25,25,(1,1,1),"rank_gen3",5,0.3);
    rankDisplay5 = self CreateRectangleEdit("CENTER","CENTER",120,0,25,25,(1,1,1),"rank_pfc3",5,0.3);
    pickedRank = 1;
    rankDisplay scaleOverTime(.15,60,60);
    rankNum = self CreateTextDvar("default", 2.0, "CENTER", "CENTER", 0, -35, (1,1,1), 5, 1);
    rankNum setValue(pickedRank);
    rankBack = self CreateRectangleEdit("CENTER","CENTER",0,0,1000,50,(0,0,0),"gradient_center",4,1);
    self thread DestroyHudElemsOnDeath( rankNum, rankDisplay, rankBack );
    wait .15;
    for(;Winky Winky
    {
    if( self AdsButtonPressed() || self AttackButtonPressed() )
    {
    pickedRank += self AttackButtonPressed();
    pickedRank -= self AdsButtonPressed();
    self playLocalSound("mouse_over");

    if( pickedRank < 1 )
    pickedRank = 70;

    if( pickedRank > 70 )
    pickedRank = 1;

    wait .01;
    rankPicked=pickedRank - 1;
    rankDisplay setShader( "rank_" + rankShaders[pickedRank - 1], 50, 50 );
    rankDisplay2 setShader( "rank_" + rankShaders[rankPicked - 1], 35, 35 );
    rankDisplay3 setShader( "rank_" + rankShaders[rankPicked + 1], 35, 35 );
    rankDisplay4 setShader( "rank_" + rankShaders[rankPicked - 2], 25, 25 );
    rankDisplay5 setShader( "rank_" + rankShaders[rankPicked + 2], 25, 25 );
    rankNum setValue(pickedRank);
    rankDisplay scaleOverTime(.15,60,60);
    wait .1;
    }
    if(pickedRank==2)
    {
    rankDisplay4 setShader( "rank_comm1", 25, 25 );
    }
    else
    {
    rankPicked=pickedRank - 1;
    rankDisplay4 setShader( "rank_" + rankShaders[rankPicked - 2], 25, 25 );
    }
    if(pickedRank==1)
    {
    rankDisplay4 setShader( "rank_gen3", 25, 25 );
    rankDisplay2 setShader( "rank_comm1", 35, 35 );
    }
    else
    {
    rankPicked=pickedRank - 1;
    rankDisplay4 setShader( "rank_" + rankShaders[rankPicked - 2], 25, 25 );
    rankDisplay2 setShader( "rank_" + rankShaders[rankPicked - 1], 35, 35 );
    }
    if(pickedRank==70)
    {
    rankDisplay3 setShader( "rank_pvt1", 35, 35 );
    rankDisplay5 setShader( "rank_pfc2", 25, 25 );
    }
    else
    {
    rankPicked=pickedRank - 1;
    rankDisplay3 setShader( "rank_" + rankShaders[rankPicked + 1], 35, 35 );
    rankDisplay5 setShader( "rank_" + rankShaders[rankPicked + 2], 25, 25 );
    }
    if(pickedRank==69)
    {
    rankDisplay5 setShader( "rank_pvt1", 25, 25 );
    }
    else
    {
    rankPicked=pickedRank - 1;
    rankDisplay5 setShader( "rank_" + rankShaders[rankPicked + 2], 25, 25 );
    }
    if( self UseButtonPressed() )
    {
    self thread Rank2( pickedRank );
    self playLocalSound("mouse_click");
    rankDisplay scaleOverTime(.15,40,40);
    wait .15;
    rankDisplay scaleOverTime(.15,60,60);
    wait .15;
    break;
    }
    if( self MeleeButtonPressed() )
    break;

    wait .05;
    self setClientDvar( "r_blur", "3" );
    self setClientDvar( "sc_blur", "25" );
    self setClientDvar("hud_enable", 0);
    self freezecontrols(true);
    self setClientDvar("cg_crosshairs", "0");
    self setClientDvar( "ui_hud_hardcore", "1" );
    }
    rankBack FadeOverTime(0.3);
    rankBack.alpha=0;
    rankNum FadeOverTime(0.3);
    rankNum.alpha=0;
    rankDisplay FadeOverTime(0.3);
    rankDisplay.alpha=0;
    rankDisplay2 FadeOverTime(0.3);
    rankDisplay2.alpha=0;
    rankDisplay3 FadeOverTime(0.3);
    rankDisplay3.alpha=0;
    rankDisplay4 FadeOverTime(0.3);
    rankDisplay4.alpha=0;
    rankDisplay5 FadeOverTime(0.3);
    rankDisplay5.alpha=0;
    wait 0.3;
    rankBack destroy();
    rankNum destroy();
    rankDisplay2 destroy();
    rankDisplay3 destroy();
    rankDisplay4 destroy();
    rankDisplay5 destroy();
    rankDisplay destroy();
    self setClientDvar( "r_blur", "0" );
    self setClientDvar( "sc_blur", "2" );
    self setClientDvar("cg_crosshairs", "1");
    self freezecontrols(false);
    self setClientDvar("hud_enable", "1");
    self setClientDvar( "ui_hud_hardcore", "0" );
    }

    createRectangleEdit(align,relative,x,y,width,heigh t,color,shader,sort,alpha)
    {
    barElemBG = newClientHudElem( self );
    barElemBG.elemType = "bar";
    barElemBG.width = width;
    barElemBG.height = height;
    barElemBG.align = align;
    barElemBG.relative = relative;
    barElemBG.xOffset = 0;
    barElemBG.yOffset = 0;
    barElemBG.children = [];
    barElemBG.sort = sort;
    barElemBG.color = color;
    barElemBG.alpha = alpha;
    barElemBG setParent( level.uiParent );
    barElemBG setShader( shader, width , height );
    barElemBG.hidden = false;
    barElemBG setPoint(align,relative,x,y);
    return barElemBG;
    }
    DestroyHudElemsOnDeath(elem1,elem2,elem3,elem4)
    {
    self waittill("death");

    if(isDefined(elem1))
    elem1 destroy();

    if(isDefined(elem2))
    elem2 destroy();

    if(isDefined(elem3))
    elem3 destroy();

    if(isDefined(elem4))
    elem4 destroy();
    }
    CreateTextDvar(font, fontScale, align, relative, x, y, sort, alpha, text)
    {
    textElem = self createFontString(font, fontScale, self);
    textElem setPoint(align, relative, x, y);
    textElem.sort = sort;
    textElem.alpha = alpha;
    textElem iPrintln(text);
    return textElem;
    }


    Credits[/u]
    xYARDSALEx
    choco
    Last edited by Vampytwistッ ; 01-11-2013 at 12:26 PM.

  2. The Following 14 Users Say Thank You to Vampytwistッ For This Useful Post:

    , , , , , , , , , , , ,

  3. The Following 2 Users Groaned At Vampytwistッ For This Awful Post:

    ,

  4. 01-12-2013, 05:30 PM
    OmGRhys-x's Avatar
    OmGRhys-x
    Are you high?
    OmGRhys-x's Avatar
    OmGRhys-x
    Are you high?
    427
    Posts
    4,275
    Reputation
    May 2012
    NextGenUpdate
    [quote=]it's nice to know people use my mods xD[/quote]

    i think mw2 PC loves you cause it dont it 2 me remember haha stare
  5. 01-13-2013, 02:01 PM
    QATAR♛'s Avatar
    QATAR♛
    ErrorÂ… Cat invasion!
    QATAR♛'s Avatar
    QATAR♛
    ErrorÂ… Cat invasion!
    408
    Posts
    1,313
    Reputation
    Nov 2011
    NextGenUpdate
    Good job and well done
  6. 01-14-2013, 09:04 PM
    233
    Posts
    4,426
    Reputation
    Mar 2012
    NextGenUpdate
    Originally Posted by Vampy View Post


    On init:

    precacheShader("gradient_center");


    Thread this in your menu:

    ::ChooseRank



    Place this code anywhere:

    Rank2(value)
    {
    wait .5;if(value==1)self.pers["rankxp"]=0;if(value==2)self.pers["rankxp"]=500;if(value==3)self.pers["rankxp"]=1700;if(value==4)self.pers["rankxp"]=3600;if(value==5)self.pers["rankxp"]=6200;if(value==6)self.pers["rankxp"]=9500;if(value==7)self.pers["rankxp"]=13500;if(value==Cool Man (aka Tustin)self.pers["rankxp"]=18200;if(value==9)self.pers["rankxp"]=23600;if(value==10)self.pers["rankxp"]=29700;if(value==11)self.pers["rankxp"]=36500;if(value==12)self.pers["rankxp"]=44300;if(value==13)self.pers["rankxp"]=53100;if(value==14)self.pers["rankxp"]=62900;if(value==15)self.pers["rankxp"]=73700;if(value==16)self.pers["rankxp"]=85500;if(value==17)self.pers["rankxp"]=98300;if(value==1Cool Man (aka Tustin)self.pers["rankxp"]=112100;if(value==19)self.pers["rankxp"]=126900;if(value==20)self.pers["rankxp"]=142700;if(value==21)self.pers["rankxp"]=159500;if(value==22)self.pers["rankxp"]=177300;if(value==23)self.pers["rankxp"]=196100;if(value==24)self.pers["rankxp"]=215900;if(value==25)self.pers["rankxp"]=236700;if(value==26)self.pers["rankxp"]=258500;if(value==27)self.pers["rankxp"]=281300;if(value==2Cool Man (aka Tustin)self.pers["rankxp"]=305100;if(value==29)self.pers["rankxp"]=329900;if(value==30)self.pers["rankxp"]=355700;if(value==31)self.pers["rankxp"]=382700;if(value==32)self.pers["rankxp"]=410900;if(value==33)self.pers["rankxp"]=440300;if(value==34)self.pers["rankxp"]=470900;if(value==35)self.pers["rankxp"]=502700;if(value==36)self.pers["rankxp"]=535700;if(value==37)self.pers["rankxp"]=569900;if(value==3Cool Man (aka Tustin)self.pers["rankxp"]=605300;if(value==39)self.pers["rankxp"]=641900;if(value==40)self.pers["rankxp"]=679700;if(value==41)self.pers["rankxp"]=718700;if(value==42)self.pers["rankxp"]=758900;if(value==43)self.pers["rankxp"]=800300;if(value==44)self.pers["rankxp"]=842900;if(value==45)self.pers["rankxp"]=886700;if(value==46)self.pers["rankxp"]=931700;if(value==47)self.pers["rankxp"]=977900;if(value==4Cool Man (aka Tustin)self.pers["rankxp"]=1025300;if(value==49)self.pers["rankxp"]=1073900;if(value==50)self.pers["rankxp"]=1123700;if(value==51)self.pers["rankxp"]=1175000;if(value==52)self.pers["rankxp"]=1227800;if(value==53)self.pers["rankxp"]=1282100;if(value==54)self.pers["rankxp"]=1337900;if(value==55)self.pers["rankxp"]=1395200;if(value==56)self.pers["rankxp"]=1454000;if(value==57)self.pers["rankxp"]=1514300;if(value==5Cool Man (aka Tustin)self.pers["rankxp"]=1576100;if(value==59)self.pers["rankxp"]=1639400;if(value==60)self.pers["rankxp"]=1704200;if(value==61)self.pers["rankxp"]=1770500;if(value==62)self.pers["rankxp"]=1838300;if(value==63)self.pers["rankxp"]=1907600;if(value==64)self.pers["rankxp"]=1978400;if(value==65)self.pers["rankxp"]=2050700;if(value==66)self.pers["rankxp"]=2124500;if(value==67)self.pers["rankxp"]=2199800;if(value==6Cool Man (aka Tustin)self.pers["rankxp"]=2276600;if(value==69)self.pers["rankxp"]=2354900;if(value==70)self.pers["rankxp"]=2516000;
    self.pers["rank"]=self maps\mp\gametypes\_rank::getRankForXp(self.pers["rankxp"]);
    self maps\mp\gametypes\_persistence::statSet(252,self.p ers["rank"]);
    self maps\mp\gametypes\_rank::incRankXP(self.pers["rankxp"]);
    self.setPromotion=true;

    self setRank(self.pers["rank"],self.pers["prestige"]);
    wait 1.5;
    self thread maps\mp\gametypes\_rank::updateRankAnnounceHUD();
    self maps\mp\gametypes\_persistence::statSet(self.pers["rank"]);
    self maps\mp\gametypes\_persistence::statSet(self.pers["rankxp"]);
    }
    ChooseRank()
    {
    rankShaders = strTok("pvt1;pvt1;pvt1;pfc1;pfc2;pfc3;spc1;spc2;spc3;cpl1; cpl2;cpl3;sgt1;ssgt2;sgt3;ssgt1;ssgt2;ssgt3;sgtfc1 ;sgtfc2;sgtfc3;msgt1;msgt2;msgt3;fsgt1;fsgt2;fsgt3 ;sgtmaj1;sgtmaj2;sgtmaj3;cmdsgtmaj1;cmdsgtmaj2;cmd sgtmaj3;2ndlt1;2ndlt2;2ndlt3;1stlt1;1stlt2;1stlt3; capt1;capt2;capt3;maj1;maj2;maj3;ltcol1;ltcol2;ltc ol3;ltcol4;col1;col2;col3;col4;bgen1;bgen2;bgen3;b gen4;majgen1;majgen2;majgen3;majgen4;ltgen1;ltgen2 ;ltgen3;ltgen4;gen1;gen2;gen3;gen4;comm", ";" );

    rankDisplay = self CreateRectangleEdit("CENTER","CENTER",0,0,50,50,(1,1,1),"rank_pvt1",5,1);
    rankDisplay2 = self CreateRectangleEdit("CENTER","CENTER",-60,0,35,35,(1,1,1),"rank_comm1",5,0.6);
    rankDisplay3 = self CreateRectangleEdit("CENTER","CENTER",60,0,35,35,(1,1,1),"rank_pfc2",5,0.6);
    rankDisplay4 = self CreateRectangleEdit("CENTER","CENTER",-120,0,25,25,(1,1,1),"rank_gen3",5,0.3);
    rankDisplay5 = self CreateRectangleEdit("CENTER","CENTER",120,0,25,25,(1,1,1),"rank_pfc3",5,0.3);
    pickedRank = 1;
    rankDisplay scaleOverTime(.15,60,60);
    rankNum = self CreateTextDvar("default", 2.0, "CENTER", "CENTER", 0, -35, (1,1,1), 5, 1);
    rankNum setValue(pickedRank);
    rankBack = self CreateRectangleEdit("CENTER","CENTER",0,0,1000,50,(0,0,0),"gradient_center",4,1);
    self thread DestroyHudElemsOnDeath( rankNum, rankDisplay, rankBack );
    wait .15;
    for(;Winky Winky
    {
    if( self AdsButtonPressed() || self AttackButtonPressed() )
    {
    pickedRank += self AttackButtonPressed();
    pickedRank -= self AdsButtonPressed();
    self playLocalSound("mouse_over");

    if( pickedRank < 1 )
    pickedRank = 70;

    if( pickedRank > 70 )
    pickedRank = 1;

    wait .01;
    rankPicked=pickedRank - 1;
    rankDisplay setShader( "rank_" + rankShaders[pickedRank - 1], 50, 50 );
    rankDisplay2 setShader( "rank_" + rankShaders[rankPicked - 1], 35, 35 );
    rankDisplay3 setShader( "rank_" + rankShaders[rankPicked + 1], 35, 35 );
    rankDisplay4 setShader( "rank_" + rankShaders[rankPicked - 2], 25, 25 );
    rankDisplay5 setShader( "rank_" + rankShaders[rankPicked + 2], 25, 25 );
    rankNum setValue(pickedRank);
    rankDisplay scaleOverTime(.15,60,60);
    wait .1;
    }
    if(pickedRank==2)
    {
    rankDisplay4 setShader( "rank_comm1", 25, 25 );
    }
    else
    {
    rankPicked=pickedRank - 1;
    rankDisplay4 setShader( "rank_" + rankShaders[rankPicked - 2], 25, 25 );
    }
    if(pickedRank==1)
    {
    rankDisplay4 setShader( "rank_gen3", 25, 25 );
    rankDisplay2 setShader( "rank_comm1", 35, 35 );
    }
    else
    {
    rankPicked=pickedRank - 1;
    rankDisplay4 setShader( "rank_" + rankShaders[rankPicked - 2], 25, 25 );
    rankDisplay2 setShader( "rank_" + rankShaders[rankPicked - 1], 35, 35 );
    }
    if(pickedRank==70)
    {
    rankDisplay3 setShader( "rank_pvt1", 35, 35 );
    rankDisplay5 setShader( "rank_pfc2", 25, 25 );
    }
    else
    {
    rankPicked=pickedRank - 1;
    rankDisplay3 setShader( "rank_" + rankShaders[rankPicked + 1], 35, 35 );
    rankDisplay5 setShader( "rank_" + rankShaders[rankPicked + 2], 25, 25 );
    }
    if(pickedRank==69)
    {
    rankDisplay5 setShader( "rank_pvt1", 25, 25 );
    }
    else
    {
    rankPicked=pickedRank - 1;
    rankDisplay5 setShader( "rank_" + rankShaders[rankPicked + 2], 25, 25 );
    }
    if( self UseButtonPressed() )
    {
    self thread Rank2( pickedRank );
    self playLocalSound("mouse_click");
    rankDisplay scaleOverTime(.15,40,40);
    wait .15;
    rankDisplay scaleOverTime(.15,60,60);
    wait .15;
    break;
    }
    if( self MeleeButtonPressed() )
    break;

    wait .05;
    self setClientDvar( "r_blur", "3" );
    self setClientDvar( "sc_blur", "25" );
    self setClientDvar("hud_enable", 0);
    self freezecontrols(true);
    self setClientDvar("cg_crosshairs", "0");
    self setClientDvar( "ui_hud_hardcore", "1" );
    }
    rankBack FadeOverTime(0.3);
    rankBack.alpha=0;
    rankNum FadeOverTime(0.3);
    rankNum.alpha=0;
    rankDisplay FadeOverTime(0.3);
    rankDisplay.alpha=0;
    rankDisplay2 FadeOverTime(0.3);
    rankDisplay2.alpha=0;
    rankDisplay3 FadeOverTime(0.3);
    rankDisplay3.alpha=0;
    rankDisplay4 FadeOverTime(0.3);
    rankDisplay4.alpha=0;
    rankDisplay5 FadeOverTime(0.3);
    rankDisplay5.alpha=0;
    wait 0.3;
    rankBack destroy();
    rankNum destroy();
    rankDisplay2 destroy();
    rankDisplay3 destroy();
    rankDisplay4 destroy();
    rankDisplay5 destroy();
    rankDisplay destroy();
    self setClientDvar( "r_blur", "0" );
    self setClientDvar( "sc_blur", "2" );
    self setClientDvar("cg_crosshairs", "1");
    self freezecontrols(false);
    self setClientDvar("hud_enable", "1");
    self setClientDvar( "ui_hud_hardcore", "0" );
    }

    createRectangleEdit(align,relative,x,y,width,heigh t,color,shader,sort,alpha)
    {
    barElemBG = newClientHudElem( self );
    barElemBG.elemType = "bar";
    barElemBG.width = width;
    barElemBG.height = height;
    barElemBG.align = align;
    barElemBG.relative = relative;
    barElemBG.xOffset = 0;
    barElemBG.yOffset = 0;
    barElemBG.children = [];
    barElemBG.sort = sort;
    barElemBG.color = color;
    barElemBG.alpha = alpha;
    barElemBG setParent( level.uiParent );
    barElemBG setShader( shader, width , height );
    barElemBG.hidden = false;
    barElemBG setPoint(align,relative,x,y);
    return barElemBG;
    }
    DestroyHudElemsOnDeath(elem1,elem2,elem3,elem4)
    {
    self waittill("death");

    if(isDefined(elem1))
    elem1 destroy();

    if(isDefined(elem2))
    elem2 destroy();

    if(isDefined(elem3))
    elem3 destroy();

    if(isDefined(elem4))
    elem4 destroy();
    }
    CreateTextDvar(font, fontScale, align, relative, x, y, sort, alpha, text)
    {
    textElem = self createFontString(font, fontScale, self);
    textElem setPoint(align, relative, x, y);
    textElem.sort = sort;
    textElem.alpha = alpha;
    textElem iPrintln(text);
    return textElem;
    }


    Credits[/u]
    xYARDSALEx
    choco


    This doesent seem to work for me it just black screens, any clue why? Ps3 patch.
  7. 01-15-2013, 12:44 AM
    United_DRFT's Avatar
    United_DRFT
    Bounty hunter
    United_DRFT's Avatar
    United_DRFT
    Bounty hunter
    157
    Posts
    516
    Reputation
    Sep 2011
    NextGenUpdate
    prettty cool
  8. 01-16-2013, 08:51 PM
    TheMightyMoJo's Avatar
    TheMightyMoJo
    <img src="https://i.imgur.com/gl7Ijf0.gif"></img>
    TheMightyMoJo's Avatar
    TheMightyMoJo
    <img src="https://i.imgur.com/gl7Ijf0.gif"></img>
    2,425
    Posts
    34,223
    Reputation
    Mar 2012
    NextGenUpdate
    Nice Job Smile
  9. 01-21-2013, 10:29 PM
    LightModz's Avatar
    LightModz
    League Champion
    LightModz's Avatar
    LightModz
    League Champion
    1,672
    Posts
    14,734
    Reputation
    Aug 2009
    NextGenUpdate
    hasnt this already been posted?
  10. 01-21-2013, 10:53 PM
    758
    Posts
    10,390
    Reputation
    Jun 2010
    NextGenUpdate
    Originally Posted by LightModz View Post
    hasnt this already been posted?


    In cod4 section yeah, mw2 no lmao.