Home   Help Search Login Register  

Author Topic: Pistol support for soldier addons  (Read 1103 times)

0 Members and 3 Guests are viewing this topic.

Offline zipp

  • Members
  • *
  • I'm a llama!
Pistol support for soldier addons
« on: 23 Oct 2002, 20:19:01 »
This has probably been answered.  I ran a search and came up with nothing.

I have some addons I have downloaded, and these soldiers dont have pistol support.  How hard is it to add this support?
Is the information contained in the config file of the addon?

What information needs to be added?
I plan on making the changes for personal use if the modification isnt to difficult.

Thank you for any help in advance

Offline DaCoroner

  • Members
  • *
Re:Pistol support for soldier addons
« Reply #1 on: 24 Oct 2002, 06:20:41 »
They need this line in the config.cpp under classCfgVehicles.

weaponSlots="1    +    16    + 10*      256    + 2*   4096    +    2    + 4*   32";

FYI, the weapon slots are as follows:

1 (primary weapons, rifles, mgs, etc)
16 (secondary weapons, LAW, RPG, etc)
256 (Magazine slots, in this case 10 of them which is default)
4096 Items (Binoculars, NVG)
2 (pistols)
32 (pistol magazines, in this case 4 of them which is default for resistance)

Those numbers match with the weapontype and magazinetype defined in classCfgWeapons (eg, pistols are weaponType=2; magazineType=32).  While we're on the subject, you can use this line to customize your soldiers a bit more, similar to how the medics work, you can make it so certain soldiers can't carry secondary weapons or only let them carry a few magazines rather than 10.  I wish more people used it, after all a combat soldier wearing web gear should be able to easily carry 10 magazines, but wouldn't you think the civilians would run out of pockets? :)

Anyway, hope that helps.

Eviscerator

  • Guest
Re:Pistol support for soldier addons
« Reply #2 on: 24 Oct 2002, 07:01:13 »
the soldiers also need the beretta proxy, look for unofficial addons that use pistols and open the p3d's in o2, youll see the beretta proxy, this needs to be on the models you want to have a pistol