Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

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

0 Members and 1 Guest 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.