Jump to content

How do you specifiy in the config if a weapon goes into the primary or secondary slot?

Recommended Posts

Hello everyone! 


I am currently messing around in the config files of our of our custom mods, and I have been wondering if it would be posssible to make one of our smaller primaries (an SMG, say) equippable as a sidearm.
I am fairly inexperienced with configs and scripting (so far I can change values and display names), but my guess would be there must be something that can be changed in order to achieve that?

Thank you all who take the time to read this, and have a great day!

Share this post

Link to post
Share on other sites

CfgWeapons >> weapon >> type =

#define WeaponSlotPrimary        1        // primary weapons
#define WeaponSlotHandGun     2        // HandGun
#define WeaponSlotSecondary   4        // secondary weapons


Changing type to 2 should be enough to enable equipping the SMG into the pistol slot, but some of the arm anims, holster position etc will look wrong.

Example mod, just changing the type on inherited "SMG_01_F" to 2


player addWeapon "LARs_SMG_01_F"

...in a test mission.

  • Like 1

Share this post

Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now