CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: World at War
WaW GSC Modding
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Sheperdebops" data-source="post: 46812" data-attributes="member: 21"><p><strong>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.</strong></p><p><strong>Here you will find scripts for both multiplayer and zombies im just creating the thread for the time being.</strong></p><p><strong>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.</strong></p><p></p><p><span style="color: rgb(97, 189, 109)"><strong><u>General Controls and Scripts</u></strong></span></p><p></p><p>[SPOILER="Text"]Displays text in the middle</p><p>[CODE=cpp]self iPrintlnBold("Hello");[/CODE]</p><p></p><p>Top Left</p><p>[CODE=cpp]self iPrintln("Hello");[/CODE]</p><p></p><p>Create Permanent Text</p><p>[CODE=cpp]Text = createfontstring("objective", 1.5);</p><p>Text setPoint("CENTER", "CENTER", 0, 0);</p><p>Text setText("Hello");[/CODE][/SPOILER]</p><p></p><p>[SPOILER="Draw Shaders"][CODE=cpp]createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha) </p><p>{ </p><p> barElemBG = newClientHudElem( self ); </p><p> barElemBG.elemType = "menu_bio_russian"; </p><p> if ( !level.splitScreen ) </p><p> { </p><p> barElemBG.x = -2; </p><p> barElemBG.y = -2; </p><p> } </p><p> barElemBG.width = width; </p><p> barElemBG.height = height; </p><p> barElemBG.align = align; </p><p> barElemBG.relative = relative; </p><p> barElemBG.xOffset = 0; </p><p> barElemBG.yOffset = 0; </p><p> barElemBG.children = []; </p><p> barElemBG.sort = sort; </p><p> barElemBG.color = color; </p><p> barElemBG.alpha = alpha; </p><p> barElemBG setParent( level.uiParent ); </p><p> barElemBG setShader( shader, width , height ); </p><p> barElemBG.hidden = false; </p><p> barElemBG setPoint(align,relative,x,y); </p><p> return barElemBG; </p><p>} [/CODE][/SPOILER]</p><p></p><p>[SPOILER="Colour Code for Text"]</p><p>Text Colours (Mainly used for iPrintlnBold & iPrintln can be used on createfrontstring())</p><p>[CODE=cpp]Green ^1</p><p>Red/Orange ^2</p><p>Lime Green ^3</p><p>Yellow ^4</p><p>Navy Blue ^5</p><p>Light Blue ^6</p><p>purple ^7</p><p>White/Default ^8</p><p>Black ^9</p><p> </p><p>Example</p><p>self iPrintlnBold("^1Green Text");</p><p> [/CODE]</p><p></p><p>A more unique and better method (Can only be used on createfrontstring())</p><p>[CODE=cpp]</p><p>.color(Red,Green,Blue);</p><p>[/CODE]</p><p>Example</p><p>[CODE=cpp]Text = createfontstring("objective", 1.5);</p><p>Text setPoint("CENTER", "CENTER", 0, 0);</p><p>Text setText("Green Text");</p><p>Text.color(0,1,0);</p><p>[/CODE][/SPOILER]</p><p></p><p>[SPOILER="Common GSC Controls"][CODE=cpp]if( self AdsButtonPressed() )</p><p>if ( self AttackButtonPressed() )</p><p>if ( self FragButtonPressed() )</p><p>if ( self UseButtonPressed() ) (Reload Button)</p><p>if ( self MeleeButtonPressed() </p><p></p><p>self waittill( "weapon_change" ); can be used for Y but i dont recommend it for Menu controls but maybe an AC130 Script</p><p></p><p>)[/CODE][/SPOILER]</p><p></p><p><span style="color: rgb(184, 49, 47)"><strong><u>Zombies</u></strong></span></p><p></p><p><span style="color: rgb(41, 105, 176)"><strong><u>Multiplayer</u></strong></span></p></blockquote><p></p>
[QUOTE="Sheperdebops, post: 46812, member: 21"] [B]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.[/B] [COLOR=rgb(97, 189, 109)][B][U]General Controls and Scripts[/U][/B][/COLOR] [SPOILER="Text"]Displays text in the middle [CODE=cpp]self iPrintlnBold("Hello");[/CODE] Top Left [CODE=cpp]self iPrintln("Hello");[/CODE] Create Permanent Text [CODE=cpp]Text = createfontstring("objective", 1.5); Text setPoint("CENTER", "CENTER", 0, 0); Text setText("Hello");[/CODE][/SPOILER] [SPOILER="Draw Shaders"][CODE=cpp]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; } [/CODE][/SPOILER] [SPOILER="Colour Code for Text"] Text Colours (Mainly used for iPrintlnBold & iPrintln can be used on createfrontstring()) [CODE=cpp]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"); [/CODE] A more unique and better method (Can only be used on createfrontstring()) [CODE=cpp] .color(Red,Green,Blue); [/CODE] Example [CODE=cpp]Text = createfontstring("objective", 1.5); Text setPoint("CENTER", "CENTER", 0, 0); Text setText("Green Text"); Text.color(0,1,0); [/CODE][/SPOILER] [SPOILER="Common GSC Controls"][CODE=cpp]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 )[/CODE][/SPOILER] [COLOR=rgb(184, 49, 47)][B][U]Zombies[/U][/B][/COLOR] [COLOR=rgb(41, 105, 176)][B][U]Multiplayer[/U][/B][/COLOR] [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: World at War
WaW GSC Modding
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top