Results 1 to 11 of 11
  1. #1
    rathynia's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Modern Warfare 2 Section.
    Posts
    457
    Reputation
    126
    Thanks
    538
    My Mood
    Aggressive

    [Tutorial].GSC Tutorial Part-One

    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:
    Code:
    firstThread()
    {
    
    }
    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.
    Last edited by House; 09-14-2010 at 05:13 PM.
    Nothing Is "Impossible" For The Word Itself Says "I'm Possible".
    If you get a thank from me you better act like it's a reward, because I don't give them out easily.

    Computer Specs:
    Processor - AMD Athlon(tm) II X4 640 Processor 3.0 GHz (Not OverClocked)
    RAM - 8.0 GB
    OS - Microsoft Windows 7 Ultimate Edition 64-bit
    Video Card - GeForce GTX 550 Ti
    Video RAM 4.0 GB
    Pixel Shader version 5.0
    Vertex Shader version 5.0
    Sound Card - NVIDIA High Definition Audio
    Disk space - 1,640 GB

  2. The Following 3 Users Say Thank You to rathynia For This Useful Post:

    Deathray75 (11-29-2010),Mr.Mackey (09-14-2010),shryder (10-04-2015)

  3. #2
    Mr.Mackey's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    ::1
    Posts
    296
    Reputation
    12
    Thanks
    268
    My Mood
    Twisted
    Nice reply tut xD . Do you mind putting that huge code list in a link or in a [ code] ?
    I helped you out?
    Press the button

  4. #3
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,057
    Reputation
    1007
    Thanks
    2,013
    AHHHHHH TWO PEOPLE!!!
    I swear. I showed joseph my thread I was working on teaching GSC modding and then he fucking takes my idea (NOT JUST THE IDEA, THE LAYOUT THE EVERYTHING) and makes his own. Then you follow up his.

    Good job to YOU.

    Ex Middleman

  5. #4
    rathynia's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Modern Warfare 2 Section.
    Posts
    457
    Reputation
    126
    Thanks
    538
    My Mood
    Aggressive
    Quote Originally Posted by Insane View Post
    AHHHHHH TWO PEOPLE!!!
    I swear. I showed joseph my thread I was working on teaching GSC modding and then he fucking takes my idea (NOT JUST THE IDEA, THE LAYOUT THE EVERYTHING) and makes his own. Then you follow up his.

    Good job to YOU.
    I thogutht it was ok, on my part and I deleted what he said and just left it as his post in a link. also adding CrazyApples.
    Nothing Is "Impossible" For The Word Itself Says "I'm Possible".
    If you get a thank from me you better act like it's a reward, because I don't give them out easily.

    Computer Specs:
    Processor - AMD Athlon(tm) II X4 640 Processor 3.0 GHz (Not OverClocked)
    RAM - 8.0 GB
    OS - Microsoft Windows 7 Ultimate Edition 64-bit
    Video Card - GeForce GTX 550 Ti
    Video RAM 4.0 GB
    Pixel Shader version 5.0
    Vertex Shader version 5.0
    Sound Card - NVIDIA High Definition Audio
    Disk space - 1,640 GB

  6. The Following User Says Thank You to rathynia For This Useful Post:

    Insane (09-14-2010)

  7. #5
    Mr.Mackey's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    ::1
    Posts
    296
    Reputation
    12
    Thanks
    268
    My Mood
    Twisted
    Quote Originally Posted by Insane View Post
    AHHHHHH TWO PEOPLE!!!
    I swear. I showed joseph my thread I was working on teaching GSC modding and then he fucking takes my idea (NOT JUST THE IDEA, THE LAYOUT THE EVERYTHING) and makes his own. Then you follow up his.

    Good job to YOU.
    I would ban them both 4 eva!!
    No joke xD But maybe you can reply also.
    And explain like EVERYTHING
    Eventually you guys make 1 tut with all the parts explained
    So you guys have a Super-duper-mega-ultra-wtf-tutorial


    Edit: before you remove my wtf because of flaming. Its meant like: Watering the flowers. ^^
    I helped you out?
    Press the button

  8. #6
    rathynia's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Modern Warfare 2 Section.
    Posts
    457
    Reputation
    126
    Thanks
    538
    My Mood
    Aggressive
    Quote Originally Posted by Mr.Mackey View Post
    I would ban them both 4 eva!!
    No joke xD But maybe you can reply also.
    And explain like EVERYTHING
    Eventually you guys make 1 tut with all the parts explained
    So you guys have a Super-duper-mega-ultra-wtf-tutorial


    Edit: before you remove my wtf because of flaming. Its meant like: Watering the flowers. ^^
    Minions can't ban and I didn't know that he was planning on doing this JosephLittle did not me.
    Nothing Is "Impossible" For The Word Itself Says "I'm Possible".
    If you get a thank from me you better act like it's a reward, because I don't give them out easily.

    Computer Specs:
    Processor - AMD Athlon(tm) II X4 640 Processor 3.0 GHz (Not OverClocked)
    RAM - 8.0 GB
    OS - Microsoft Windows 7 Ultimate Edition 64-bit
    Video Card - GeForce GTX 550 Ti
    Video RAM 4.0 GB
    Pixel Shader version 5.0
    Vertex Shader version 5.0
    Sound Card - NVIDIA High Definition Audio
    Disk space - 1,640 GB

  9. #7
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,057
    Reputation
    1007
    Thanks
    2,013
    Quote Originally Posted by Mr.Mackey View Post
    I would ban them both 4 eva!!
    No joke xD But maybe you can reply also.
    And explain like EVERYTHING
    Eventually you guys make 1 tut with all the parts explained
    So you guys have a Super-duper-mega-ultra-wtf-tutorial


    Edit: before you remove my wtf because of flaming. Its meant like: Watering the flowers. ^^
    Quote Originally Posted by rathynia View Post
    Minions can't ban and I didn't know that he was planning on doing this JosephLittle did not me.
    I'm sorry. I usually don't get very angry.
    If you know me, I'm a pretty calm guy.

    No, I won't ban anyone (even if I could), and Rathynia you are fine. I really like this tutorial.
    (so is Josephlittle, I guess /)

    Now lets start fresh, ontopic.

    Ex Middleman

  10. #8
    Mr.Mackey's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    ::1
    Posts
    296
    Reputation
    12
    Thanks
    268
    My Mood
    Twisted
    Quote Originally Posted by Insane View Post
    AHHHHHH TWO PEOPLE!!!
    I swear.
    I showed joseph my thread I was working on teaching GSC modding and then he fucking takes my idea (NOT JUST THE IDEA, THE LAYOUT THE EVERYTHING) and makes his own. Then you follow up his.

    Good job to YOU.
    Well. THe red part... It looked like you wanted to smash your computer


    And i said "joke" after the "BAN THEM BOTH" part.
    Joke means "not for real" "part of a funny thing"
    I helped you out?
    Press the button

  11. #9
    House's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    2,990
    Reputation
    223
    Thanks
    9,296
    My Mood
    Cynical
    dude change that text color, my eyes are burning

  12. The Following User Says Thank You to House For This Useful Post:

    Insane (09-14-2010)

  13. #10
    Josephlittle™'s Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    GSC Modding Section
    Posts
    1,345
    Reputation
    26
    Thanks
    562
    My Mood
    Devilish
    I would call this Advanced .gsc Tutorial

    mine was for people who had no idea how to mod

  14. #11
    House's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Posts
    2,990
    Reputation
    223
    Thanks
    9,296
    My Mood
    Cynical
    /Color changed :P

Similar Threads

  1. [Tutorial] Gsc For Dummies
    By Josephlittle™ in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 41
    Last Post: 06-09-2012, 08:02 PM
  2. German GSC Tutorial?
    By MegaMorphois in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 0
    Last Post: 11-22-2010, 02:26 PM
  3. [tutorial]gsc modding for beginners[tutorial]
    By griezel32 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 16
    Last Post: 10-05-2010, 02:15 PM
  4. [request] fully detailed gsc tutorial
    By Erige in forum Call of Duty Modern Warfare 2 Server / GSC Modding
    Replies: 8
    Last Post: 09-30-2010, 09:01 AM
  5. [Tutorial]Basic GSC Scripting
    By xbeatsszzx in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 22
    Last Post: 08-17-2010, 01:35 AM