Answered Anyone have the shaders by hand, for levels in specific. (BO2)(GSC) (not prestiges)

Rto

Known Member
Messages
13
Points
108
I am making a level slider based off of CabCons Prestige slider, and if anyone happens to have the level/rank shaders, and if they could help me out, it would greatly appreciated. <3
 

Pyrex BLJ

im done :)
Staff member
Messages
607
Points
728
I am making a level slider based off of CabCons Prestige slider, and if anyone happens to have the level/rank shaders, and if they could help me out, it would greatly appreciated. <3
these should be all of them, if not you can find them in the shader dump
rank_lcpl
rank_gen
rank_2ndlt
rank_msgt
rank_cpl
rank_ltcol
rank_maj
rank_cpt
rank_gysgt
rank_mgysgt
rank_majgen
rank_ssgt
rank_sgt
rank_prvt
rank_bgen
rank_col
rank_com
rank_lt
rank_pfc
rank_ltgen
 
  • Like
Reactions: Rto

candy

G59 Terrorist
Staff member
Premium Member
Donator
Messages
1,308
Points
748
Code:
level.rankPrestige = [];
level.rankBadges = [];

for(e=0;e<10;e++) level.rankPrestige[level.rankPrestige.size] = "rank_prestige0"+e;
for(e=0;e<55;e++) level.rankBadges[level.rankBadges.size] = tableLookup("mp/rankIconTable.csv",0,e,1);
 
  • Like
Reactions: Rto

Rto

Known Member
Messages
13
Points
108
Code:
level.rankPrestige = [];
level.rankBadges = [];

for(e=0;e<10;e++) level.rankPrestige[level.rankPrestige.size] = "rank_prestige0"+e;
for(e=0;e<55;e++) level.rankBadges[level.rankBadges.size] = tableLookup("mp/rankIconTable.csv",0,e,1);
Could you help me include this into a slider, i'm not to positive where to include

for(e=0;e<55;e++) level.rankBadges[level.rankBadges.size] = tableLookup("mp/rankIconTable.csv",0,e,1);

How would I make that code and put it into a working slider based off this code:

Code:
newprestige()
{
        self endon("death");
        self endon("stopthis");
        self thread prestigeshow();
        self.topbar.alpha=0;
        self thread closeMenu();
        self SetBlur(10.3,1.0);
        self freezeControls(true);
        self.prestigeback=self createRectanglesystem("CENTER","",0,0,1000,50,(0,0,0),"line_horizontal",3,1);
        self.textz = createFontString("objective",1.8);
        t=0;
        self setClientUiVisibilityFlag("hud_visible", 0);
        setDvar("cg_drawCrosshair",0);
        self.scrollz = 0;
        self.textz setValue(t);
        self.textz setPoint("CENTER","CENTER",0,50);
        self.textz.sort=100;
        wait 1.5;
        for(;:wink:
        {
                if(self MeleeButtonPressed())
                {
                        self setClientUiVisibilityFlag("hud_visible", 1);
                        setDvar("cg_drawCrosshair",1);
                        self.pres0 destroy();self.pres1 destroy();self.pres2 destroy();self.pres3 destroy();self.pres4 destroy();self.pres5 destroy();self.pres6 destroy();self.pres7 destroy();self.pres8 destroy();self.pres9 destroy();self.pres10 destroy();self.pres11 destroy();self.pres12 destroy();self.pres13 destroy();self.pres14 destroy();self.pres15 destroy();
                        wait .1;
                        self freezeControls(false);
                        self.textz destroy();
                        self.prestigeback destroy();
                        self setBlur(0,1.0);
                        self.topbar.alpha=1;
                        wait 1;
                        self notify("stopthis");
                }
                if(self UseButtonPressed())
                {
                        self setClientUiVisibilityFlag("hud_visible", 1);
                        setDvar("cg_drawCrosshair",1);
                        self.pres0 destroy();self.pres1 destroy();self.pres2 destroy();self.pres3 destroy();self.pres4 destroy();self.pres5 destroy();self.pres6 destroy();self.pres7 destroy();self.pres8 destroy();self.pres9 destroy();self.pres10 destroy();self.pres11 destroy();self.pres12 destroy();self.pres13 destroy();self.pres14 destroy();self.pres15 destroy();
                        wait .1;
                        self freezeControls(false);
                        self thread setprestiges(self.scrollz);
                        self.textz destroy();
                        self.prestigeback destroy();
                        self setBlur(0,1.0);
                        self.topbar.alpha=1;
                        wait 1;
                        self notify("stopthis");
                }
                if(self AdsButtonPressed())
                {
                        if(self.scrollz<=15 && self.scrollz>=1)
                        {
                                self.scrollz -= 1;
                                self.textz setValue(self.scrollz);
                                self.pres0 moveOverTime(.1);
                                self.pres0 setPoint("CENTER","CENTER",(self.pres0.xOffset + 50),0);self.pres1 moveOverTime(.1);
                                self.pres1 setPoint("CENTER","CENTER",(self.pres1.xOffset + 50),0);self.pres2 moveOverTime(.1);
                                self.pres2 setPoint("CENTER","CENTER",(self.pres2.xOffset + 50),0);self.pres3 moveOverTime(.1);
                                self.pres3 setPoint("CENTER","CENTER",(self.pres3.xOffset + 50),0);self.pres4 moveOverTime(.1);
                                self.pres4 setPoint("CENTER","CENTER",(self.pres4.xOffset + 50),0);self.pres5 moveOverTime(.1);
                                self.pres5 setPoint("CENTER","CENTER",(self.pres5.xOffset + 50),0);self.pres6 moveOverTime(.1);
                                self.pres6 setPoint("CENTER","CENTER",(self.pres6.xOffset + 50),0);self.pres7 moveOverTime(.1);
                                self.pres7 setPoint("CENTER","CENTER",(self.pres7.xOffset + 50),0);self.pres8 moveOverTime(.1);
                                self.pres8 setPoint("CENTER","CENTER",(self.pres8.xOffset + 50),0);self.pres9 moveOverTime(.1);
                                self.pres9 setPoint("CENTER","CENTER",(self.pres9.xOffset + 50),0);self.pres10 moveOverTime(.1);
                                self.pres10 setPoint("CENTER","CENTER",(self.pres10.xOffset + 50),0);self.pres11 moveOverTime(.1);
                                self.pres11 setPoint("CENTER","CENTER",(self.pres11.xOffset + 50),0);self.pres12 moveOverTime(.1);
                                self.pres12 setPoint("CENTER","CENTER",(self.pres12.xOffset + 50),0);self.pres13 moveOverTime(.1);
                                self.pres13 setPoint("CENTER","CENTER",(self.pres13.xOffset + 50),0);self.pres14 moveOverTime(.1);
                                self.pres14 setPoint("CENTER","CENTER",(self.pres14.xOffset + 50),0);self.pres15 moveOverTime(.1);
                                self.pres15 setPoint("CENTER","CENTER",(self.pres15.xOffset + 50),0);
                                wait .1;
                        }
                        else
                        {

                        }
                }
                if(self AttackButtonPressed())
                {
                        if(self.scrollz<=14 && self.scrollz>=0)
                        {
                                self.scrollz += 1;
                                self.textz setValue(self.scrollz);self.pres0 moveOverTime(.1);
                                self.pres0 setPoint("CENTER","CENTER",(self.pres0.xOffset - 50),0);self.pres1 moveOverTime(.1);
                                self.pres1 setPoint("CENTER","CENTER",(self.pres1.xOffset - 50),0);self.pres2 moveOverTime(.1);
                                self.pres2 setPoint("CENTER","CENTER",(self.pres2.xOffset - 50),0);self.pres3 moveOverTime(.1);
                                self.pres3 setPoint("CENTER","CENTER",(self.pres3.xOffset - 50),0);self.pres4 moveOverTime(.1);
                                self.pres4 setPoint("CENTER","CENTER",(self.pres4.xOffset - 50),0);self.pres5 moveOverTime(.1);
                                self.pres5 setPoint("CENTER","CENTER",(self.pres5.xOffset - 50),0);self.pres6 moveOverTime(.1);
                                self.pres6 setPoint("CENTER","CENTER",(self.pres6.xOffset - 50),0);self.pres7 moveOverTime(.1);
                                self.pres7 setPoint("CENTER","CENTER",(self.pres7.xOffset - 50),0);self.pres8 moveOverTime(.1);
                                self.pres8 setPoint("CENTER","CENTER",(self.pres8.xOffset - 50),0);self.pres9 moveOverTime(.1);
                                self.pres9 setPoint("CENTER","CENTER",(self.pres9.xOffset - 50),0);self.pres10 moveOverTime(.1);
                                self.pres10 setPoint("CENTER","CENTER",(self.pres10.xOffset - 50),0);self.pres11 moveOverTime(.1);
                                self.pres11 setPoint("CENTER","CENTER",(self.pres11.xOffset - 50),0);self.pres12 moveOverTime(.1);
                                self.pres12 setPoint("CENTER","CENTER",(self.pres12.xOffset - 50),0);self.pres13 moveOverTime(.1);
                                self.pres13 setPoint("CENTER","CENTER",(self.pres13.xOffset - 50),0);self.pres14 moveOverTime(.1);
                                self.pres14 setPoint("CENTER","CENTER",(self.pres14.xOffset - 50),0);self.pres15 moveOverTime(.1);
                                self.pres15 setPoint("CENTER","CENTER",(self.pres15.xOffset - 50),0);
                                wait .1;
                        }
                        else
                        {

                        }
                }
                wait .025;
        }
}
Please dont get mad at me for leeching this code im just trying to make it work :disappointed:
 
Last edited by a moderator:

candy

G59 Terrorist
Staff member
Premium Member
Donator
Messages
1,308
Points
748
Could you help me include this into a slider, i'm not to positive where to include

for(e=0;e<55;e++) level.rankBadges[level.rankBadges.size] = tableLookup("mp/rankIconTable.csv",0,e,1);

How would I make that code and put it into a working slider based off this code:

newprestige()
{
self endon("death");
self endon("stopthis");
self thread prestigeshow();
self.topbar.alpha=0;
self thread closeMenu();
self SetBlur(10.3,1.0);
self freezeControls(true);
self.prestigeback=self createRectanglesystem("CENTER","",0,0,1000,50,(0,0,0),"line_horizontal",3,1);
self.textz = createFontString("objective",1.8);
t=0;
self setClientUiVisibilityFlag("hud_visible", 0);
setDvar("cg_drawCrosshair",0);
self.scrollz = 0;
self.textz setValue(t);
self.textz setPoint("CENTER","CENTER",0,50);
self.textz.sort=100;
wait 1.5;
for(;:wink:
{
if(self MeleeButtonPressed())
{
self setClientUiVisibilityFlag("hud_visible", 1);
setDvar("cg_drawCrosshair",1);
self.pres0 destroy();self.pres1 destroy();self.pres2 destroy();self.pres3 destroy();self.pres4 destroy();self.pres5 destroy();self.pres6 destroy();self.pres7 destroy();self.pres8 destroy();self.pres9 destroy();self.pres10 destroy();self.pres11 destroy();self.pres12 destroy();self.pres13 destroy();self.pres14 destroy();self.pres15 destroy();
wait .1;
self freezeControls(false);
self.textz destroy();
self.prestigeback destroy();
self setBlur(0,1.0);
self.topbar.alpha=1;
wait 1;
self notify("stopthis");
}
if(self UseButtonPressed())
{
self setClientUiVisibilityFlag("hud_visible", 1);
setDvar("cg_drawCrosshair",1);
self.pres0 destroy();self.pres1 destroy();self.pres2 destroy();self.pres3 destroy();self.pres4 destroy();self.pres5 destroy();self.pres6 destroy();self.pres7 destroy();self.pres8 destroy();self.pres9 destroy();self.pres10 destroy();self.pres11 destroy();self.pres12 destroy();self.pres13 destroy();self.pres14 destroy();self.pres15 destroy();
wait .1;
self freezeControls(false);
self thread setprestiges(self.scrollz);
self.textz destroy();
self.prestigeback destroy();
self setBlur(0,1.0);
self.topbar.alpha=1;
wait 1;
self notify("stopthis");
}
if(self AdsButtonPressed())
{
if(self.scrollz<=15 && self.scrollz>=1)
{
self.scrollz -= 1;
self.textz setValue(self.scrollz);
self.pres0 moveOverTime(.1);
self.pres0 setPoint("CENTER","CENTER",(self.pres0.xOffset + 50),0);self.pres1 moveOverTime(.1);
self.pres1 setPoint("CENTER","CENTER",(self.pres1.xOffset + 50),0);self.pres2 moveOverTime(.1);
self.pres2 setPoint("CENTER","CENTER",(self.pres2.xOffset + 50),0);self.pres3 moveOverTime(.1);
self.pres3 setPoint("CENTER","CENTER",(self.pres3.xOffset + 50),0);self.pres4 moveOverTime(.1);
self.pres4 setPoint("CENTER","CENTER",(self.pres4.xOffset + 50),0);self.pres5 moveOverTime(.1);
self.pres5 setPoint("CENTER","CENTER",(self.pres5.xOffset + 50),0);self.pres6 moveOverTime(.1);
self.pres6 setPoint("CENTER","CENTER",(self.pres6.xOffset + 50),0);self.pres7 moveOverTime(.1);
self.pres7 setPoint("CENTER","CENTER",(self.pres7.xOffset + 50),0);self.pres8 moveOverTime(.1);
self.pres8 setPoint("CENTER","CENTER",(self.pres8.xOffset + 50),0);self.pres9 moveOverTime(.1);
self.pres9 setPoint("CENTER","CENTER",(self.pres9.xOffset + 50),0);self.pres10 moveOverTime(.1);
self.pres10 setPoint("CENTER","CENTER",(self.pres10.xOffset + 50),0);self.pres11 moveOverTime(.1);
self.pres11 setPoint("CENTER","CENTER",(self.pres11.xOffset + 50),0);self.pres12 moveOverTime(.1);
self.pres12 setPoint("CENTER","CENTER",(self.pres12.xOffset + 50),0);self.pres13 moveOverTime(.1);
self.pres13 setPoint("CENTER","CENTER",(self.pres13.xOffset + 50),0);self.pres14 moveOverTime(.1);
self.pres14 setPoint("CENTER","CENTER",(self.pres14.xOffset + 50),0);self.pres15 moveOverTime(.1);
self.pres15 setPoint("CENTER","CENTER",(self.pres15.xOffset + 50),0);
wait .1;
}
else
{

}
}
if(self AttackButtonPressed())
{
if(self.scrollz<=14 && self.scrollz>=0)
{
self.scrollz += 1;
self.textz setValue(self.scrollz);self.pres0 moveOverTime(.1);
self.pres0 setPoint("CENTER","CENTER",(self.pres0.xOffset - 50),0);self.pres1 moveOverTime(.1);
self.pres1 setPoint("CENTER","CENTER",(self.pres1.xOffset - 50),0);self.pres2 moveOverTime(.1);
self.pres2 setPoint("CENTER","CENTER",(self.pres2.xOffset - 50),0);self.pres3 moveOverTime(.1);
self.pres3 setPoint("CENTER","CENTER",(self.pres3.xOffset - 50),0);self.pres4 moveOverTime(.1);
self.pres4 setPoint("CENTER","CENTER",(self.pres4.xOffset - 50),0);self.pres5 moveOverTime(.1);
self.pres5 setPoint("CENTER","CENTER",(self.pres5.xOffset - 50),0);self.pres6 moveOverTime(.1);
self.pres6 setPoint("CENTER","CENTER",(self.pres6.xOffset - 50),0);self.pres7 moveOverTime(.1);
self.pres7 setPoint("CENTER","CENTER",(self.pres7.xOffset - 50),0);self.pres8 moveOverTime(.1);
self.pres8 setPoint("CENTER","CENTER",(self.pres8.xOffset - 50),0);self.pres9 moveOverTime(.1);
self.pres9 setPoint("CENTER","CENTER",(self.pres9.xOffset - 50),0);self.pres10 moveOverTime(.1);
self.pres10 setPoint("CENTER","CENTER",(self.pres10.xOffset - 50),0);self.pres11 moveOverTime(.1);
self.pres11 setPoint("CENTER","CENTER",(self.pres11.xOffset - 50),0);self.pres12 moveOverTime(.1);
self.pres12 setPoint("CENTER","CENTER",(self.pres12.xOffset - 50),0);self.pres13 moveOverTime(.1);
self.pres13 setPoint("CENTER","CENTER",(self.pres13.xOffset - 50),0);self.pres14 moveOverTime(.1);
self.pres14 setPoint("CENTER","CENTER",(self.pres14.xOffset - 50),0);self.pres15 moveOverTime(.1);
self.pres15 setPoint("CENTER","CENTER",(self.pres15.xOffset - 50),0);
wait .1;
}
else
{

}
}
wait .025;
}
}

Please dont get mad at me for leeching this code im just trying to make it work :disappointed:
If you use what I sent, I would create a new system. Or you could use what @Pyrex BLJ sent. Tho I don't recommend it.
 

candy

G59 Terrorist
Staff member
Premium Member
Donator
Messages
1,308
Points
748
Always remember when you're posting codes to use the [/CODE] tag! It gets super messy when you don't organize it!

Also, side note about what candy said. You could change the "for(e=0;e<10;e++)" to for(e=0;e<15;e++)" for the extra BO1 prestiges. :grinning:

Question answered; thread moved.​
Won't work like that.
Code:
for(e=0;e<10;e++) level.rankPrestige[level.rankPrestige.size] = "rank_prestige0"+e;
for(e=10;e<16;e++) level.rankPrestige[level.rankPrestige.size] = "rank_prestige"+e;
 

The Dark Side

Former Staff Member
Messages
1,010
Points
768
Won't work like that.
Code:
for(e=0;e<10;e++) level.rankPrestige[level.rankPrestige.size] = "rank_prestige0"+e;
for(e=10;e<16;e++) level.rankPrestige[level.rankPrestige.size] = "rank_prestige"+e;
really now? :o didnt know. My bad. D:
 

Top