Home   Help Search Login Register  

Author Topic: Adding weapons to vehicles?  (Read 1046 times)

0 Members and 1 Guest are viewing this topic.

swordfish

  • Guest
Adding weapons to vehicles?
« on: 24 Oct 2002, 21:41:40 »
Hi
I accidently posted this in general editing, so im posting it here in the right place too.

I want to add magazines and weapons to a jeep im making, is this what you add.

weapons[]={"M4"};
magazines[]={"M4","M4","M4","M4"};

If this is right, where would i put it in the config.

Skaven

  • Guest
Re:Adding weapons to vehicles?
« Reply #1 on: 24 Oct 2002, 22:05:15 »
nope, I presume your talking about an addon right? Your making a Jeep addon and you want to give him weapons and mags cargo? if so, you have to open two new classes called:

class TransportWeapons  :o   ::)        and
class TransportMagazines  :o   ::)

and it should look like this  ;)

class TransportWeapons
            {
                 class TAG_HMMWV_W
                 {
                 Weapon="M16GrenadeLauncher";
                 count=2;
                 };
                 class TAG_HMMWV_W
                 {
                 Weapon="XMS";
                 count=2;
                 };
                 class TAG_HMMWV_W
                 {
                 Weapon="M16";
                 count=2;
                 };
                 class TAG_HMMWV_W4
                 {
                 Weapon="LawLauncher";
                 count=1;
                 };

      };
      
      class TransportMagazines
            {          
                  class TAG_HMMWV_A
                  {
                  magazine="M16";
                  count=10;
                  };  
                  class TAG_HMMWV_A
                  {
                  magazine="M4";
                  count=10;
                  };
                  class TAG_HMMWV_A
                  {
                  magazine="LawLauncher";
                  count=6;
                  };
                  class TAG_HMMWV_A
                  {
                  magazine="HandGrenade";
                  count=20;
             
        
};      
};
};


NOTE:  :o
count  = "The amount of weapons or magazines"
weapon = "Name of the weapon"
magazine = "Yep you got it  ;D Mag names"

Make no mistakes in the names of the mags and weapons or the game will crach and you'll be boucing of the walls to find out what the problem is.
Another thing, there is a maximum load for every vehicles, which means you can't just had 100 weapons and 25000 mags to start a war ;D, the example above is the maximum an HMMWV can take, so a Jeep should take the same or a little bit less  ;)

swordfish

  • Guest
Re:Adding weapons to vehicles?
« Reply #2 on: 24 Oct 2002, 22:28:17 »
Thanks much appreciated :).