Dual Arms
This is mod that allows use of two primary weapons, one in your main slot one in your launcher slot.
You can download the mod from here: http://steamcommunity.com/sharedfiles/filedetails/?id=1334412770
This mod needs overrides to work together with Exile. (See below)
Here is a video preview:
Installation
Files here: https://github.com/Andrew-S90/DualArms
Client:
Step 1:
Paste the following into your description.ext - its very important because you need to override my hook file to disable the eventhandlers!! Otherwise it will break.
#include "custom\dual_arms\CfgSecondaryWeapons.hpp"
Inside CfgSecondaryWeapons you can turn addactions on or off, drop weapons on death on or off, turn inventory buttons on or off block weapons as well as override any of my script files.
In mission.sqm please add "secondary_weapons" to addons to require players to have the mod, plus the server needs it as well. Like this:
addOns[]=
{
"exile_client",
"secondary_weapons",
"a3_map_altis"
};
You will need to launch the @DualArms mod with your server.
Step 2:
The following overrides need to be made
ExileClient_gui_hud_event_onKeyUp.sqf On line 170 (original files)
The code needs to be modified to:
ExileClient_object_player_event_onInventoryClosed.sqf (after line 16)
//Dual Arms
call SecondaryWeapons_events_onInventoryClosed;
ExileClient_object_player_event_onInventoryOpened.sqf (MOST IMPORTANT OVERRIDE!)
Update Line 12:
private ["_cancelEvent", "_container", "_secondaryContainer", "_dialog", "_BG", "_slot", "_prim", "_posSlot", "_posBtn", "_buttonDown", "_buttonUp", "_cover", "_pic", "_icoB", "_ico", "_SecondaryWeaponItems"];
Paste this AFTER Line 48 if statement (about "Exile_Container_OldChest") and BEFORE ExileClientInventoryOpened = true;
ExileClient_object_player_event_onKilled.sqf (SECOND MOST IMPORTANT!!) After Line 41 not inside brackets add:
//Dual Arms
_this call SecondaryWeapons_events_onKilled;
ExileClient_object_player_event_onTake.sqf After Line 15 add:
//Dual Arms
_this call SecondaryWeapons_events_onTake;
ExileClient_gui_traderDialog_updateInventoryListBox.sqf
After Line 63 (_itemClassName = _x;) add:
if (!((_itemClassName splitString "_") select ((count (_itemClassName splitString "_"))-1) == "secondary")) then
{
Close the if statement after line 157 like so:
_inventoryListBox lbSetTextRight [_indexEntryIndex, "(not empty)"];
};
};
}
forEach _items;
true
Server:
ExileServer_system_network_event_onHandleDisconnect.sqf After Line 42:
See the github post here: https://github.com/Andrew-S90/DualArms for an example mission and all the code in full
Download: https://steamcommunity.com/sharedfiles/filedetails/?id=1334412770
The current list of supported mods is: