Results 1 to 3 of 3
  1. #1
    Member Youjimbo's Avatar
    Join Date
    Mar 2011
    Location
    Norway
    Posts
    33

    [Tutorial] MW2 mod in GSC, weapon & ammo/Killstreak earn

    Giving purpose in gsc scripting for MW2 modding

    hopefully this will come in need for someone else
    i dont got all the weapon/Killstreak file names... so pardon me about that D:
    (if you got a file for all those, send me link!)

    Code:
    //This is a list of basic weapon files
    //Weapons
    "m16a4_mp";
    "barrett_mp";
    "cheytac_mp";  //yepp, the intervention
    "ak47_mp";
    "acr_mp";
    
    "acr_fmj_xmags_mp";   //This is acr with 2 attachments
    
    //Killstreaks
    "ac130_mp";
    "harrier_airstrike_mp";
    "uav_mp";
    Code:
    //Why do i need those? and how do i program them in?
    //1st: if you want you(the host) to be the achiever for these "boosts" find this 
    //section in a mod for MW2-liberation(what i use): 
    //for example:   mods\scoutzknifez\maps\mp\gametypes\_Rank.gsc
    
    
    if(self isHost()) {
           //code
    }
    //There might be two "//" before,   remove them before adding code
    Code:
    //then you can start add stuff(you can find this in previous tutorials on the forums):
    self giveWeapon( "Weapon_attachment_mp", 0, false);
    self GiveMaxAmmo( "weapon_attachment_mp");//enables infinite ammo
     //"Weapon_attachments_mp", camo as number, false/true if akimbo)
    
    //also,  you can do this for perks, killstreaks to,
    //i will go deaper into the perk coding before i do a tut. on it xD
    //else, the Killstreaks are just about the same as weapon, only with abit more coding:
    self maps\mp\killstreaks\_killstreaks::giveKillstreak( "harrier_airstrike", true );
    //                        the harrier is for an example...
    this can also be added for everyone else in this part of a code:
    Code:
    doDvars()
    {
           //Add codes here
    }
    import static javax.Swing.JOptionPane.*;
    public class JavaDevelop
    {
    public String programmer = "Youjimbo";

    public JavaDevelop()
    {
    showMessageDialog(null, programmer);
    }
    }

  2. #2

    Re: [Tutorial] MW2 mod in C++, weapon & ammo/Killstreak earn

    its not c++ is gsc script modding language

  3. #3
    Member Youjimbo's Avatar
    Join Date
    Mar 2011
    Location
    Norway
    Posts
    33

    Re: [Tutorial] MW2 mod in C++, weapon & ammo/Killstreak earn

    Quote Originally Posted by King-Orgy View Post
    its not c++ is gsc script modding language
    yepp, found out... and i feel stupid...
    tho i am a beginner in C++, it is pretty simular xD
    import static javax.Swing.JOptionPane.*;
    public class JavaDevelop
    {
    public String programmer = "Youjimbo";

    public JavaDevelop()
    {
    showMessageDialog(null, programmer);
    }
    }

Similar Threads

  1. Killstreak problem
    By Brutko in forum Call of Duty 6: Modern Warfare 2 Cheats
    Replies: 1
    Last Post: January 5th, 2012, 16:26
  2. beat this killstreak
    By razertje in forum Gallery
    Replies: 9
    Last Post: December 26th, 2008, 20:59
  3. Signature (Earn A Few /$)
    By TheMechanic in forum Signature Requests
    Replies: 22
    Last Post: October 22nd, 2008, 17:44
  4. my best killstreak
    By =1SK=Tony-Ray in forum Gallery
    Replies: 2
    Last Post: September 5th, 2008, 07:48

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •