This IS a reply to JosephLittles .GSC for Dummies. But the way I'm explaining it may help also.
What you need to know.
1) - What GSC Coding is.
2) - What A Variable Is.
3) - Basic Keywords.
4) - How To Make A Thread.
5) - Statements.
6) - Basic Commands
7) - Advanced Commands.
GSC Coding -
GSC Coding is commonly know to as a coding language used to make modification to a script in MW2 files. you can import them your self load them from in-game change a significant number of things, I e, "Experience Value", "Text Shown", etc. GSC coding is a coding language based off of the computerized language C++, C++ is based off of C#, And C# is based off of the language C. GSC language was made by the company "Infinity Ward" specially for MW2, it has its advantages and disadvantages. Once you get to know this WONDERFUL language the possibilities are close to endless. You can do many things with it , but it's up to you to decide on what to do, and how to do it.
What Is A Variable -
A variable has many definitions, but in coding it is this, "Basically it is a sort of "Holding device", say you made the variable "a" this variable a can hold on thing it could hold a sentence it could hold numbers it could hold certain codes that you are not willing to show to others, but this variable must also be defined, in GSC coding to define a variable you simply do this, "a = 2" so now what you just do is give the variable a the value of 2. you just need to practice and discover what the variables can conceal and what it can not."
Basic Keywords -
Code:
{ Opening Bracket
} Closing Bracket
|| Or
&& And
; Semi-Colon
= Assigning to something
== Is Something
( Opening Parenthesis
) Closing Parenthesis
< Less-Than
> Greater-than
++ Add to Something By 1
-- Subtract Something By 1
// To take a note.
There are many others but these are just a FEW of the BUNCH in a Basic coding of this tutorial.
How To Make A Thread -
How you make a thread is pretty basic but is often miscounted a counted for, here is an example:Now let's go back and see what we did their:
Code:
firstThread() // The Threads Name,
The Opening and Closing parenthesis is a must or it will give you an error, and we don't want that!
{ // This is the Opening Bracket
// Here Is Where You Will Place Your Code.
} // Closing Bracket
Statements -
Here are some Statements:
Code:
if ("Argument")
{
}
for ("Argument";"What Will Be Done";"Until This Is Reached")
{
}
while ("True / False")
{
}
Here is what they do:
Code:
If Statement: The IF statement is pretty basic so say you do
firstIf()
{
if ("1" + "1" == "2")
{
self giveMaxAmmo ( "rpg_mp" );
}
}
It would run the IF statement because 1 + 1 = 2 and since it runs it it will give you Maximum ammunition for the RPG. Remember the ; (Semi-Colon) If that isn't included in their you will get an Error, but fr certain codes you wont need it experiment and find out for your self!
But if the argument put into the IF Statement were false it would skip over the line of code and not give RPGs max ammunition.
Code:
Basic For Statement say you do the following:
firstWhile()
{
i = 6;
while (i==6;i++;i==17)
{
i++;
}
}
This will make i's value of six increase by one every time it is ran so in this example it would be ran 11 times. Because if it is ran 11 times and the value is 6 it will be added by 11 which makes 17. Then the Statement will turn False and go to the next command.
Code:
Basic While Statement say you did the following.
firstWhile()
{
i = 7;
while (i=7)
{
self giveMaxAmmo ( "rpg_mp" );
}
}
This will be a continuous loop until the value of i is changed. Maybe you always wanted it to be run and never stop you could put this
Code:
secondWhile()
{
while (1)
{
self giveMaxAmmo ( "rpg_mp" );
}
}
Now if in the Parenthesis anything but 0 is their it will ALWAYS be True and will continually loop over and never stop, But if it 0 is in the Parenthesis it will be false and never run.
Commands - (Basic - Advanced)
I'm not going to take the time to write anything in here just post the place where it was already posted:
Abstract - https://www.mpgh.net/forum/308-call-d...ing-codes.html
PP_CrazyApple - https://www.mpgh.net/forum/323-call-d...les-codes.html
THERE ARE ENDLESS POSSIBILITIES OF WHAT YOU CAN DO WITH THAT!!
That is all for now I will be adding more parts to this tutorial.