Results 1 to 2 of 2
  1. #1
    HeroicSlayr's Avatar
    Join Date
    Jul 2010
    My Mood

    How to make custom classes?

    Hey, I already have a new problem.
    I want to make custom classes for everyone in my quickscope mod, so if you pick class 1 you will get this and this and if you pick class 2 you will get this and this.
    How can I do that?

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Melbourne, Australia
    My Mood
    Here is a nifty piece of code I found a while back when I first started coding GSCs.

    You can use this to make the classes:
    Replace the phrase "itemName" in all these with the name you want to use from the Gsc modding codes thread near top of post Gun, Perk, Attachment, and Camo Names.

    for (i = 0; i < 10; i++)
     self setPlayerData( "customClasses", i, "name", "Text" ); //Class name
     self setPlayerData( "customClasses", i, "weaponSetups", 0, "weapon", "itemName" ); //Primary Gun
     self setPlayerData( "customClasses", i, "weaponSetups", 0, "attachment", 0, "itemName" ); //Primary Gun Attachment 1
     self setPlayerData( "customClasses", i, "weaponSetups", 0, "attachment", 1, "itemName" ); //Primary Gun Attachment 2
     self setPlayerData( "customClasses", i, "weaponSetups", 0, "camo", "itemName" ); //Primary Camo
     self setPlayerData( "customClasses", i, "weaponSetups", 1, "weapon", "itemName" ); //Secondary Gun
     self setPlayerData( "customClasses", i, "weaponSetups", 1, "attachment", 0, "itemName" ); //Secondary Gun Attachment 1
     self setPlayerData( "customClasses", i, "weaponSetups", 1, "attachment", 1, "itemName" ); //Secondary Gun Attachment 2
     self setPlayerData( "customClasses", i, "weaponSetups", 1, "camo", "itemName" ); //Secondary Camo
     self setPlayerData( "customClasses", i, "perks", 0, "itemName" ); //Equipment
     self setPlayerData( "customClasses", i, "perks", 1, "itemName" ); //Perk 1
     self setPlayerData( "customClasses", i, "perks", 2, "itemName" ); //Perk 2
     self setPlayerData( "customClasses", i, "perks", 3, "itemName" ); //Perk 3
     self setPlayerData( "customClasses", i, "perks", 4, "itemName" ); //Deathstreak
     self setPlayerData( "customClasses", i, "specialGrenade", "itemName" ); //Special Grenade
    You can do this for each class you want setup so one team gets one set of primary and secondary guns and equipment and the other gets another set.

    Also as it shows above try 0 for primary and 1 for secondary
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9

    Handy Tools/Hacks:
    Extreme Injector v3.7 *NEW* 2017 Update!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]

    All drawings are coloured using Photoshop.


Similar Threads

  1. [Tutorial] How to make Custom Scopes
    By black iceee in forum Call of Duty Modern Warfare 2 Texture Requests
    Replies: 407
    Last Post: 05-26-2011, 10:39 AM
  2. [Tutorial] How To Make Custom Killstreaks
    By Jorndel in forum Call of Duty Modern Warfare 2 Tutorials
    Replies: 2
    Last Post: 04-29-2011, 01:21 AM
  3. How to make Custom Menu
    By FUKO in forum Call of Duty Modern Warfare 2 Texture Requests
    Replies: 20
    Last Post: 02-23-2011, 09:50 PM
  4. [Tutorial] How to make custom kill marks
    By skazany in forum CrossFire Tutorials
    Replies: 8
    Last Post: 01-15-2011, 01:55 PM
  5. How to make custom crosshair colors?
    By KarmaStrikes in forum CrossFire Mods & Rez Modding
    Replies: 19
    Last Post: 08-19-2010, 10:07 PM