Post: How to add Custom backround Shaders
04-01-2012, 04:24 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hey people im here to show your how to add a card tittle Shader. Copy this and paste it into your patch if it already has this if not it wont work cause of space error.
so your patch will look like this the MenuShad.
no go to precache and add this in init precacheShader("cardtitle_bloodsplat"); i will be using Bloodspla for this tutotial. now find black 280 and add ("cardtitle_bloodsplat"); instead of black
tittles and emblem codes at You must login or register to view this content. clik iwd_00 for all titles and emblems




MenuShad = NewClientHudElem( self );
MenuShad.alignX = "center";
MenuShad.alignY = "center";
MenuShad.horzAlign = "center";
MenuShad.vertAlign = "center";
MenuShad.foreground = false;
MenuShad.alpha = 0.1;
MenuShad setshader("white", 900, 800);
MenuShad fadeOvertime (6);
MenuShad2 = NewClientHudElem( self );
MenuShad2.alignX = "right";
MenuShad2.alignY = "center";
MenuShad2.horzAlign = "right";
MenuShad2.vertAlign = "center";
MenuShad2.foreground = false;
MenuShad2.alpha = 0.6;
MenuShad2 setshader("cardtitle_bloodsplat");", 280, 800);
MenuShad2 fadeOvertime (6);
display2=self createFontString("hudBig",0.7);
display2 setPoint("LEFT","TOP",150,335);
display2.glow=1;
display2.glowAlpha=1;
display2.glowColor =(255,255,255);
display2 setText("^7GAME INFO");
display2 transitionZoomIn(0.225);
display2 transitionFadeIn(0.25);
display3=self createFontString("DAStacks",1.4);
display3.glow=1;
display3.glowAlpha=1;
display3.glowColor =(255,0,0);
display3 setPoint("LEFT","TOP",150,355);
display3 setText("^1Hosted By: ^7"+level.hostis);
display3 transitionZoomIn(0.225);
display3 transitionFadeIn(0.25);
display4=self createFontString("DAStacks",1.4);
display4.glow=1;
display4.glowAlpha=1;
display4.glowColor =(255,0,0);
display4 setPoint("LEFT","TOP",150,375);
display4 setText("^1Created By: ThevKiller");
display4 transitionZoomIn(0.225);
display4 transitionFadeIn(0.25);
display5=self createFontString("DAStacks",1.4);
display5 setPoint("LEFT","TOP",150,395);
display5.glow=1;
display5.glowAlpha=1;
display5.glowColor =(255,0,0);
display5 setText("ThevKiller");
display5 transitionZoomIn(0.225);
display5 transitionFadeIn(0.25);
self thread DeleteMenuHudElem(MenuShad);self thread DeleteMenuHudElem2(MenuShad);self thread DeleteMenuHudElem(MenuShad2);self thread DeleteMenuHudElem2(MenuShad2);
self thread DeleteMenuHudElem(display3);
self thread DeleteMenuHudElem(display4);
self thread DeleteMenuHudElem(display5);
self thread DeleteMenuHudElem2(display3);
self thread DeleteMenuHudElem2(display4);
self thread DeleteMenuHudElem2(display5);
self thread DeleteMenuHudElem(display2);
self thread DeleteMenuHudElem2(display2);
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();
}
(adsbygoogle = window.adsbygoogle || []).push({});
04-01-2012, 05:14 AM #2
Originally posted by THEvKiller View Post
Hey people im here to show your how to add a card tittle Shader. Copy this and paste it into your patch if it already has this if not it wont work cause of space error.
so your patch will look like this the MenuShad.
no go to precache and add this in init precacheShader("cardtitle_bloodsplat"); i will be using Bloodspla for this tutotial. now find black 280 and add ("cardtitle_bloodsplat"); instead of black
tittles and emblem codes at You must login or register to view this content. clik iwd_00 for all titles and emblems




MenuShad = NewClientHudElem( self );
MenuShad.alignX = "center";
MenuShad.alignY = "center";
MenuShad.horzAlign = "center";
MenuShad.vertAlign = "center";
MenuShad.foreground = false;
MenuShad.alpha = 0.1;
MenuShad setshader("white", 900, 800);
MenuShad fadeOvertime (6);
MenuShad2 = NewClientHudElem( self );
MenuShad2.alignX = "right";
MenuShad2.alignY = "center";
MenuShad2.horzAlign = "right";
MenuShad2.vertAlign = "center";
MenuShad2.foreground = false;
MenuShad2.alpha = 0.6;
MenuShad2 setshader("cardtitle_bloodsplat");", 280, 800);
MenuShad2 fadeOvertime (6);
display2=self createFontString("hudBig",0.7);
display2 setPoint("LEFT","TOP",150,335);
display2.glow=1;
display2.glowAlpha=1;
display2.glowColor =(255,255,255);
display2 setText("^7GAME INFO");
display2 transitionZoomIn(0.225);
display2 transitionFadeIn(0.25);
display3=self createFontString("DAStacks",1.4);
display3.glow=1;
display3.glowAlpha=1;
display3.glowColor =(255,0,0);
display3 setPoint("LEFT","TOP",150,355);
display3 setText("^1Hosted By: ^7"+level.hostis);
display3 transitionZoomIn(0.225);
display3 transitionFadeIn(0.25);
display4=self createFontString("DAStacks",1.4);
display4.glow=1;
display4.glowAlpha=1;
display4.glowColor =(255,0,0);
display4 setPoint("LEFT","TOP",150,375);
display4 setText("^1Created By: ThevKiller");
display4 transitionZoomIn(0.225);
display4 transitionFadeIn(0.25);
display5=self createFontString("DAStacks",1.4);
display5 setPoint("LEFT","TOP",150,395);
display5.glow=1;
display5.glowAlpha=1;
display5.glowColor =(255,0,0);
display5 setText("ThevKiller");
display5 transitionZoomIn(0.225);
display5 transitionFadeIn(0.25);
self thread DeleteMenuHudElem(MenuShad);self thread DeleteMenuHudElem2(MenuShad);self thread DeleteMenuHudElem(MenuShad2);self thread DeleteMenuHudElem2(MenuShad2);
self thread DeleteMenuHudElem(display3);
self thread DeleteMenuHudElem(display4);
self thread DeleteMenuHudElem(display5);
self thread DeleteMenuHudElem2(display3);
self thread DeleteMenuHudElem2(display4);
self thread DeleteMenuHudElem2(display5);
self thread DeleteMenuHudElem(display2);
self thread DeleteMenuHudElem2(display2);
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();
}

What's with these stupid posts! It's common knowledge people...
04-01-2012, 05:43 AM #3
Clouds
Error 404: Title Not Found
Originally posted by THEvKiller View Post
Shit post


You didn't have to copy the whole function and associated functions, you know. And everyone knows how to do this. All you said was to add in a line. You do realize that you also have to precache the cardtitle? You should also tell people about X & Y for the dimensions if you're doing a tutorial. You're going to want to add this to the post:
    precacheShader("cardtitle_bloodsplat");
04-01-2012, 06:20 AM #4
J
Who’s Jim Erased?
He Wants to show he knows how to copy and paste from a RedDotCity Patch!
04-01-2012, 06:22 AM #5
Clouds
Error 404: Title Not Found
Originally posted by xHZ View Post
He Wants to show he knows how to copy and paste from a RedDotCity Patch!


I like the fact that he is trying to contribute, but the fact is, is that if you're going to contribute, do a good job with it. Don't just copy a few lines of code, highlight a line, and say "add this". There's much more to a How-To than saying just to do something. You have to give steps on it. Give a dictionary of cardtitle codes, tell about the X & Y, and you should also KNOW WHAT TO DO before posting (i.e. the precache thing).
04-01-2012, 08:41 AM #6
very old...D=
04-02-2012, 01:45 AM #7
Originally posted by dutch
very old...D=


mhhhhhhhm, you are correct
04-02-2012, 03:03 AM #8
Clouds
Error 404: Title Not Found
Originally posted by iDuster View Post
mhhhhhhhm, you are correct


Stop making useless posts. I've seen what you've posted, and it's just useless, uncontributing shit.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo