Answered Add Electric Shader?

ponymodz

Veteran
Messages
40
Reaction score
33
Points
803
Can someone teach me how i can add the electric shader in my bo2 base?

Unbenannt.png
 
Last edited:

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
download the source and copy and paste :tearsofjoy:
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
im using createShader
Code:
LightningBackground()
{
    self endon("disconnect");
    
    lightningshaders = StrTok("fullscreen_proximity_vertical0,fullscreen_proximity_vertical1,fullscreen_proximity_vertical2,fullscreen_proximity_horizontal0,fullscreen_proximity_horizontal1", ",");
    
    self.menulightning1 = drawShader(lightningshaders[RandomInt(6)], -200, 0, 240, 338, undefined, 1, 5);
    self.menulightning2 = drawShader(lightningshaders[RandomInt(6)], -200, 0, 240, 338, undefined, 1, 5);

    while (IsDefined(self.menulightning1) && IsDefined(self.menulightning2))
    {
        self.menulightning1 SetShader(lightningshaders[RandomInt(6)], 240, 338);
        self.menulightning2 SetShader(lightningshaders[RandomInt(6)], 240, 338);
        self.menulightning1.color = (RandomFloatRange(0.2, 1), 0, 0);
          self.menulightning2.color = (RandomFloatRange(0.2, 1), 0, 0);
        wait 0.05;
    }
}
 

ponymodz

Veteran
Messages
40
Reaction score
33
Points
803
Code:
LightningBackground()
{
    self endon("disconnect");
   
    lightningshaders = StrTok("fullscreen_proximity_vertical0,fullscreen_proximity_vertical1,fullscreen_proximity_vertical2,fullscreen_proximity_horizontal0,fullscreen_proximity_horizontal1", ",");
   
    self.menulightning1 = drawShader(lightningshaders[RandomInt(6)], -200, 0, 240, 338, undefined, 1, 5);
    self.menulightning2 = drawShader(lightningshaders[RandomInt(6)], -200, 0, 240, 338, undefined, 1, 5);

    while (IsDefined(self.menulightning1) && IsDefined(self.menulightning2))
    {
        self.menulightning1 SetShader(lightningshaders[RandomInt(6)], 240, 338);
        self.menulightning2 SetShader(lightningshaders[RandomInt(6)], 240, 338);
        self.menulightning1.color = (RandomFloatRange(0.2, 1), 0, 0);
          self.menulightning2.color = (RandomFloatRange(0.2, 1), 0, 0);
        wait 0.05;
    }
}
Thx
 

cjrtis12

Veteran
Messages
1
Reaction score
0
Points
551
Code:
LightningBackground()
{
    self endon("disconnect");
   
    lightningshaders = StrTok("fullscreen_proximity_vertical0,fullscreen_proximity_vertical1,fullscreen_proximity_vertical2,fullscreen_proximity_horizontal0,fullscreen_proximity_horizontal1", ",");
   
    self.menulightning1 = drawShader(lightningshaders[RandomInt(6)], -200, 0, 240, 338, undefined, 1, 5);
    self.menulightning2 = drawShader(lightningshaders[RandomInt(6)], -200, 0, 240, 338, undefined, 1, 5);

    while (IsDefined(self.menulightning1) && IsDefined(self.menulightning2))
    {
        self.menulightning1 SetShader(lightningshaders[RandomInt(6)], 240, 338);
        self.menulightning2 SetShader(lightningshaders[RandomInt(6)], 240, 338);
        self.menulightning1.color = (RandomFloatRange(0.2, 1), 0, 0);
          self.menulightning2.color = (RandomFloatRange(0.2, 1), 0, 0);
        wait 0.05;
    }
}
im using create rectangle, can someone help me with that or send me createshader??? please. if so thatll be wonderful <3
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
im using create rectangle, can someone help me with that or send me createshader??? please. if so thatll be wonderful <3
If you cannot do something as simple as drawing a hud element, please turn away and learn gsc. I've posted the code, you just need to use common sense.
 

Lukzyys

Veteran
Messages
1
Reaction score
0
Points
851
so i got the shader to work with my menu but the only think is, is the scroll bar isnt there to select functions
 
Top