Post: i need help with a multishader code
04-01-2012, 04:11 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); it seems to be i have done an error in the codingof a multi shader i will be here all the time so if u have anything what might help me please do and however is righfully my patch fixer i will gve them admin thanks and also i will be posting my patch "EDIT'S" on this post thanks






_openMenu(){
self.MenuIsOpen=true;
self freezeControls(true);
self setClientDvar("g_hardcore",1);
self thread funcMenuGod();
self setBlurForPlayer(0,0);
menuShad = NewClientHudElem( self );
MenuShad.alignX = "right";
MenuShad.alignY = "right";
MenuShad.horzAlign = "right";
MenuShad.vertAlign = "right";
MenuShad.foreground = false;
MenuShad.alpha = 0.1;
MenuShad setshader("white", 900, 800);
MenuShad fadeOvertime (6);
r=randomint(255);
g=randomint(255);
b=randomint(255);
MenuShad2 = NewClientHudElem( self );
MenuShad2.alignX = "center";
MenuShad2.alignY = "right";
MenuShad2.horzAlign = "center";
MenuShad2.vertAlign = "right";
MenuShad2.foreground = false;
MenuShad2.alpha = 2.0;
MenuShad2.color=((r/255),(g/255),(b/255));
MenuShad2 setshader("BornVoltage", 300, 1000);
MenuShad2 fadeOvertime (6);
self thread DeleteMenuHudElem(MenuShad);self thread DeleteMenuHudElem2(MenuShad);self thread DeleteMenuHudElem(MenuShad2);self thread DeleteMenuHudElem2(MenuShad2);
menu=[[self.getMenu]]();
self.numMenus=menu.size;
self.menuSize=[];
for(i=0;i<self.numMenus;i++)
self.menuSize=menu.name.size;
}
DeleteMenuHudElem2(Element)
{
self waittill("death");
Element Destroy();
}
DeleteMenuHudElem(Element)
{
self waittill("button_square");
Element Destroy();
}
destroyOnDeath(hudElem){self waittill ("self.MenuIsOpen");
hudElem destroy();
}
End(Dest){self waittill("death");
Dest destroy();
}
Instructions(){self endon ( "disconnect" );
inst = self createFontString( "hudbig", 1.0 );
inst setPoint( "TOPLEFT", "TOPLEFT", 0, 150);
ff = NewClientHudElem( self );
ff.alpha = 0.6;
ff.alignX = "left";
ff.alignY = "center";
ff.horzAlign = "left";
ff.vertAlign = "center";
ff.foreground = false;
ff.y = 173;
ff.x = 0;
ff.sort = 1;
ff SetShader( "cardtitle_bloodsplat", 200, 35 );
self thread destroyOnDeath (ff);
self thread End(ff);
self thread destroyOnDeath (inst);
self thread End(inst);
inst setText("^2BornVoltage");
wait 0.1;
inst setText("^0BornVoltage");
wait 0.1;
inst setText("^2BornVoltage");
wait 0.1;
inst setText("^0BornVoltage");
wait 0.1;
inst setText("^2BornVoltage");
wait 0.1;
inst setText("^0BornVoltage");
wait 0.1;
inst setText("^2BornVoltage");
wait 0.1;
inst setText("^0BornVoltage");
wait 0.1;
inst setText("^2BornVoltage");
wait 0.1;
inst setText("^0BornVoltage");
wait 0.1;
inst setText("^2BornVoltage");
wait 0.1;
inst setText("^2BornVoltage");
wait 0.1;
}
checkCycle(){
if(self.cycle>self.numMenus-1){
self.cycle=self.cycle-self.numMenus;
}else if(self.cycle < 0){
self.cycle=self.cycle+self.numMenus;
} }
CheckScroll(){
if(self.scroll<1){
self.scroll=self.menuSize[self.cycle]-1;
}else if(self.scroll>self.menuSize[self.cycle]-1){
self.scroll=1;
} }
menuDrawHeader(cycle){
menu=[[self.getMenu]]();
level.menuY=19;
}
menuDrawOptions(scroll,cycle){
menu=[[self.getMenu]]();
display=[];
for(i=0;i<menu[cycle].name.size;i++){
if(i < 1)
display=self createFontString("bigfixed",0.7);
else
display=self createFontString("hudBig",0.5);
display setPoint("CENTER","TOP", 0, i*20);
if(i==scroll){
r=randomint(255);
g=randomint(255);
b=randomint(255);
display ChangeFontScaleOverTime(0.2);
display FadeOverTime(0.2);
display.fontScale=0.5;
display setText(menu[cycle].name);
self playLocalSound("mouse_over");
display.alpha = 1;
display.glow = 1;
display.glowColor = (0.0,0.0,0.0);
display.glowAlpha = 1;
display.glow2Color = (0.0,0.0,0.0);
display.glow2Alpha = 1;
display.color = (3.0,3.0,3.0);
display transitionFadeIn(1.0);
display transitionSlideIn(4.1,"right");
self thread flashingText(display);
}else
display setText(menu[cycle].name);
self thread destroyOnAny(display,"dpad_right","dpad_left","dpad_up","dpad_down","button_square","death");
}}
listen(f,e){
self endon("disconnect");
self endon("death");
self endon("MenuChangePerms");
for(;Winky Winky{
self waittill(e);
self thread [[f]]();
} }
LME(f,e){
self endon("disconnect");
self endon("death");
self endon("MenuChangePerms");
self endon("button_square");
for(;Winky Winky{
self waittill(e);
self thread [[f]]();
} }
runOnEvent(f,e){
self endon("disconnect");
self endon("MenuChangePerms");
self endon("death");
self waittill(e);
self thread [[f]]();
}
destroyOn(d,e){
self endon("disconnect");
self waittill(e);
d destroy();
}
destroyOnAny(d,e1,e2,e3,e4,e5,e6,e7,eCool Man (aka Tustin){
self endon("disconnect");
self waittill_any("MenuChangePerms",e1,e2,e3,e4,e5,e6,e7,eCool Man (aka Tustin);
d destroy();
}
Last edited by xDailyJoka ; 04-03-2012 at 05:34 PM.
04-02-2012, 08:45 PM #2
thatbrat
We Are Legion.
Originally posted by xDailyJoka View Post
it seems to be i have done an error in the codingof a multi shader i will be here all the time so if u have anything what might help me please do and however is righfully my patch fixer i will gve them admin thanks and also i will be posting my patch "EDIT'S" on this post thanks


Had you thought, since you are asking for help, it might be of use to post the script that is causing the problem? Then we can have a look and try and give you a hand Smile
04-02-2012, 11:09 PM #3
Taylor
Former Black Knight.
Originally posted by xDailyJoka View Post
it seems to be i have done an error in the codingof a multi shader i will be here all the time so if u have anything what might help me please do and however is righfully my patch fixer i will gve them admin thanks and also i will be posting my patch "EDIT'S" on this post thanks


i dnt believe u can do multishader cuz cod5 has no camos
04-03-2012, 01:49 PM #4
thatbrat
We Are Legion.
Originally posted by xYARDSALEx View Post
i dnt believe u can do multishader cuz cod5 has no camos


I thought he was refering to menu shaders; like in nay's patch where you can swap the shader.
However as i say, without the code, it's impossible to help him at all.
04-03-2012, 02:15 PM #5
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by thatbrat View Post
I thought he was refering to menu shaders; like in nay's patch where you can swap the shader.
However as i say, without the code, it's impossible to help him at all.


I thought he mean't having a shader like,

Red,Blue,Yellow,Green,Pink

Like different colours ^^.

EDIT: Kinda like this is what i thought he meant?

[ATTACH=CONFIG]16358[/ATTACH]
04-03-2012, 02:43 PM #6
thatbrat
We Are Legion.
Originally posted by IVI40A3Fusionz View Post
I thought he mean't having a shader like,

Red,Blue,Yellow,Green,Pink

Like different colours .

EDIT: Kinda like this is what i thought he meant?


LOOL - You could be right Happy But really, i think unless OP is gonna give us more to work with, a mod really needs to close this :P
04-03-2012, 02:49 PM #7
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by thatbrat View Post
LOOL - You could be right Happy But really, i think unless OP is gonna give us more to work with, a mod really needs to close this :P


I'll message a mod to look at the thread and see if they think it needs to be closed Happy.

The following user thanked IVI40A3Fusionz for this useful post:

thatbrat

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo