Sheperdebops
Code Junkie
- Messages
- 78
- Reaction score
- 71
- Points
- 793
Hello everyone my name is Sheperdebops its been awhile since modded or even been here but just for abit of fun i decided to get in to it again.
Here you will find scripts for both multiplayer and zombies im just creating the thread for the time being.
Scripts can be submitted as well which is always helpful to others. GSC is dead yeah but its useful for those who are new to modding to understand the roots and also get a feel.
General Controls and Scripts
Zombies
Multiplayer
Here you will find scripts for both multiplayer and zombies im just creating the thread for the time being.
Scripts can be submitted as well which is always helpful to others. GSC is dead yeah but its useful for those who are new to modding to understand the roots and also get a feel.
General Controls and Scripts
Displays text in the middle
Top Left
Create Permanent Text
C++:
self iPrintlnBold("Hello");
Top Left
C++:
self iPrintln("Hello");
Create Permanent Text
C++:
Text = createfontstring("objective", 1.5);
Text setPoint("CENTER", "CENTER", 0, 0);
Text setText("Hello");
C++:
createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
{
barElemBG = newClientHudElem( self );
barElemBG.elemType = "menu_bio_russian";
if ( !level.splitScreen )
{
barElemBG.x = -2;
barElemBG.y = -2;
}
barElemBG.width = width;
barElemBG.height = height;
barElemBG.align = align;
barElemBG.relative = relative;
barElemBG.xOffset = 0;
barElemBG.yOffset = 0;
barElemBG.children = [];
barElemBG.sort = sort;
barElemBG.color = color;
barElemBG.alpha = alpha;
barElemBG setParent( level.uiParent );
barElemBG setShader( shader, width , height );
barElemBG.hidden = false;
barElemBG setPoint(align,relative,x,y);
return barElemBG;
}
Text Colours (Mainly used for iPrintlnBold & iPrintln can be used on createfrontstring())
A more unique and better method (Can only be used on createfrontstring())
Example
C++:
Green ^1
Red/Orange ^2
Lime Green ^3
Yellow ^4
Navy Blue ^5
Light Blue ^6
purple ^7
White/Default ^8
Black ^9
Example
self iPrintlnBold("^1Green Text");
A more unique and better method (Can only be used on createfrontstring())
C++:
.color(Red,Green,Blue);
C++:
Text = createfontstring("objective", 1.5);
Text setPoint("CENTER", "CENTER", 0, 0);
Text setText("Green Text");
Text.color(0,1,0);
C++:
if( self AdsButtonPressed() )
if ( self AttackButtonPressed() )
if ( self FragButtonPressed() )
if ( self UseButtonPressed() ) (Reload Button)
if ( self MeleeButtonPressed()
self waittill( "weapon_change" ); can be used for Y but i dont recommend it for Menu controls but maybe an AC130 Script
)
Zombies
Multiplayer