these should be all of them, if not you can find them in the shader dumpI 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
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);
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);
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;
}
}
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.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(;
{
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
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.
Always remember when you're posting codes to use the [/CODE] tag! It gets super messy when you don't organize it!-snip-
Alright, Thanks.
Won't work like that.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.
Question answered; thread moved.
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: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;