Home   Help Search Login Register  

Author Topic: Can someone explain the weapon slots  (Read 1066 times)

0 Members and 2 Guests are viewing this topic.

Offline madmedic

  • Members
  • *
  • You can run.....But you'll just die tired.
Can someone explain the weapon slots
« on: 19 Jun 2003, 01:41:18 »
Could someone please explain the "weaponslots" line in the config of a unit.
I want to make a unit able to carry a few more primary magazines...but I really dont know how to decipher the weapon slots line.

Hudson

  • Guest
Re:Can someone explain the weapon slots
« Reply #1 on: 19 Jun 2003, 10:17:55 »
From commented config v1.91
Code: [Select]
weaponSlots = WeaponSlotPrimary + 4 * WeaponSlotItem + WeaponSlotBinocular + WeaponSlotHandGun + 4*WeaponSlotHandGunItem;

I havnt got around to the soldier class yet but it looks like this is used to define what object types unit can carry. Not really the amount. You could however get creative and use an event handler to add extra ammo when running low.