Explained GSC Codes. (1st Post LD)
Hello, MPGH.
This is (seems to be) my first post here!
So i decided to post it as a Tutorial.
Let's start:
--------------------------------------------------
First Code:
1 Title, 3 Text lines and an Icon.
Code:
notifyData = spawnstruct();
notifyData.iconName = "cardicon_burgertown";
notifyData.titleText = "^1Title ^3The Scripter didnt wrote something here, he is lazy :)";
notifyData.notifyText = "^0Welcome to";
notifyData.notifyText2 = "^3The Server!";
notifyData.glowColor = (0.3, 0.6, 0.3);
notifyData.sound = "mp_level_up";
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
I know you're asking why im posting it, it is stickied. (I'm not so idiot
)
It's just im going to Explain it:
Many people may complain, that the cardicon shows as a regular team icon or Blank one. It happened to me too. Go to init
And Write: (for example)
Code:
precacheShader("cardicon_burgertown");
It will wok now (maybe i meant)
You have to precache most of the images, So the script will link your images to the script.
Second Code:
Title & Text On Screen
Code:
showExistence = player createFontString( "arial", 1.3 );
showExistence setPoint( "CENTER", "TOP", 0, 27 );
showExistence setText( "^4Stealthy ^6Ways" );
showExistence.hideWhenInMenu = true;
streakIcon = createIcon( "cardtitle_camo_fall", 180, 38 );
streakIcon setPoint( "CENTER", "TOP", 0, 25 );
streakIcon.hideWhenInMenu = true;
This, will show the "Commander" Title (without text) and "Stealthy Ways" text On the top of your Screen, When the player will go the the Menu, It will dissappear.
Dont forget to precacheShader your Title!
It might work with Emblem too!
Third Code:
Set Player's Killstreaks
Code:
self maps\mp\gametypes\_class::setKillstreaks( "uav", "ac130", "nuke" );
This will set the Player Killstreaks.
Means that it will change the killstreaks the players choosed to get, To your Likes.
Here, You might see i choosed, UAV (3 Kills) AC130 (11 Kills) Tactical Nuke (12 Kills, Joke! 25 Kills)
It's my first Tutorial for n00bs!