Having more then 6 selectable handweapons/vehicle slots....
Posted: Mon Jun 07, 2010 12:12 am
I manage to get 8 selectable handweapons working in a kit! How may you ask? By editing the Menu meme file for Ingame (the files you see at the root of menu.rfa that have no extension to them. They are edited using the Menu Editor from the MDT) and by adding a couple keys to the control map:
Only after placing that code in the mod would the weapons be selectable. Here is the result!
I got 8 handweapons on a kit in the DCGF mod. Pending further tests in muliplayer this appears to be the method for getting more then 6 weapons per kit. This may also allow for more then 6 positions in a vehicle too! You add those key assignments to the vehicle control maps too:
It's as easy as that. In theory you can have as many as 10 to 11 handweapons on a kit! I think issues might result if you go past 11. The detonator for expacks is on index 11 so I don't know what would happen if you put a gun or something on index 11 on a 11 or more weapon slot kit. 
Once testing confirms this is stable in multiplayer. I can put together a quick tutorial on how to do this in the mod of your choice.
Code: Select all
ControlMap.create defaultPlayerInputControlMap
ControlMap.addKeyToTriggerMapping c_PIMenuSelect7 IDFKeyboard IDKey_7 c_CMNonRepetive
ControlMap.addKeyToTriggerMapping c_PIMenuSelect8 IDFKeyboard IDKey_8 c_CMNonRepetive
I got 8 handweapons on a kit in the DCGF mod. Pending further tests in muliplayer this appears to be the method for getting more then 6 weapons per kit. This may also allow for more then 6 positions in a vehicle too! You add those key assignments to the vehicle control maps too:
Code: Select all
rem *** Land/Sea Vehicles ***
ControlMap.create LandSeaPlayerInputControlMap
ControlMap.addKeyToTriggerMapping c_PIMenuSelect7 IDFKeyboard IDKey_7 c_CMNonRepetive
ControlMap.addKeyToTriggerMapping c_PIMenuSelect8 IDFKeyboard IDKey_8 c_CMNonRepetive
rem *** Air Vehicles ***
ControlMap.create AirPlayerInputControlMap
ControlMap.addKeyToTriggerMapping c_PIMenuSelect7 IDFKeyboard IDKey_7 c_CMNonRepetive
ControlMap.addKeyToTriggerMapping c_PIMenuSelect8 IDFKeyboard IDKey_8 c_CMNonRepetive

Once testing confirms this is stable in multiplayer. I can put together a quick tutorial on how to do this in the mod of your choice.
