Home   Help Search Login Register  

Author Topic: Weapons & Ammo Cargo Capacity  (Read 1695 times)

0 Members and 1 Guest are viewing this topic.

Petrarch

  • Guest
Weapons & Ammo Cargo Capacity
« on: 29 May 2005, 18:42:11 »
What would I add/change in the config file of a vehicle to change its capacity for carrying weapons and ammo?

I ask because I want to make a few weapons vehicles for a CTI mod I'm working on, but there's very little space, and so I end up with them carrying no magazines for a certain weapon, and when I pick up a new weapon from the vehicle, the old one falls on the floor rather than being put into the vehicle.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Weapons & Ammo Cargo Capacity
« Reply #1 on: 29 May 2005, 19:07:50 »
vehiclename addWeaponCargo ["M16", 10]

and

vehiclename addMagazineCargo ["M16", 10]

Of course this depends on what the carrying capacity of the vehicle is for weapons and magazines.

This is usually set in the config entry of the vehicle.


Planck
I know a little about a lot, and a lot about a little.

Petrarch

  • Guest
Re:Weapons & Ammo Cargo Capacity
« Reply #2 on: 29 May 2005, 19:46:10 »
Read my post again and you'll see that you've not answered my question in any way.

I KNOW how to add weapons and mags to a vehicle.
I DON'T know how to increase the cargo capacity so I can add more weapons and mags.
As you say, this is set in the config file, which leads on to my original question, "What would I add/change in the config file of a vehicle to change its capacity for carrying weapons and ammo?"

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Weapons & Ammo Cargo Capacity
« Reply #3 on: 29 May 2005, 20:02:23 »
Apologies......

Yep......you need these 2 lines in you config.cpp for the vehicle:

transportMaxMagazines=X;
transportMaxWeapons=X;

X being the number you require.

There is also the TransportMagazines and the TransportWeapons classes for the vehicle which is used to predefine the weapon and magazine types carried by that vehicle.

If you require that info as well just say.  ;D


Planck ::) ::)
« Last Edit: 29 May 2005, 20:09:57 by Planck »
I know a little about a lot, and a lot about a little.