Andrew_S90

DualArms - Two Primary Weapons

83 posts in this topic

Updated mod, fixed a duping method.

Overrides have changed as a result. Please see the following changes here:

https://github.com/Andrew-S90/DualArms

You need to change the instances of

(primaryWeapon player) call SecondaryWeapons_events_addSecondaryWeapon

to

(primaryWeapon player) spawn SecondaryWeapons_events_addSecondaryWeapon

 

In both ExileClient_gui_hud_event_onKeyUp and SecondaryWeapons_player_hook

Again files are updated on OP and github. Please let me know of further issues.

 

Added new override on github to not show the second weapon while in a trader menu.

 

  • Like 1

Share this post


Link to post
Share on other sites
Advertisement

11:05:56 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.secondary_weapons
11:05:56 Mission TESTSERVER_Exile.Altis: Missing 'description.ext::Header'
11:05:56 Starting mission:
11:05:56  Mission file: TESTSERVER_Exile (__cur_mp)
11:05:56  Mission world: Altis
11:05:56  Mission directory: mpmissions\__cur_mp.Altis\
11:05:56 Unsupported language English in stringtable
11:05:56 Unsupported language English in stringtable
11:05:57 Missing addons detected:
11:05:57   secondary_weapons

Share this post


Link to post
Share on other sites
40 minutes ago, Mythbustar said:

11:05:56 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.secondary_weapons
11:05:56 Mission TESTSERVER_Exile.Altis: Missing 'description.ext::Header'
11:05:56 Starting mission:
11:05:56  Mission file: TESTSERVER_Exile (__cur_mp)
11:05:56  Mission world: Altis
11:05:56  Mission directory: mpmissions\__cur_mp.Altis\
11:05:56 Unsupported language English in stringtable
11:05:56 Unsupported language English in stringtable
11:05:57 Missing addons detected:
11:05:57   secondary_weapons

uhm do you have the mod installed also? on server and client side?

Share this post


Link to post
Share on other sites
47 minutes ago, Mythbustar said:

11:05:56 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.secondary_weapons
11:05:56 Mission TESTSERVER_Exile.Altis: Missing 'description.ext::Header'
11:05:56 Starting mission:
11:05:56  Mission file: TESTSERVER_Exile (__cur_mp)
11:05:56  Mission world: Altis
11:05:56  Mission directory: mpmissions\__cur_mp.Altis\
11:05:56 Unsupported language English in stringtable
11:05:56 Unsupported language English in stringtable
11:05:57 Missing addons detected:
11:05:57   secondary_weapons

You put secondary_weapons in the mission.sqm file ?

addOns[]=
	{
		"exile_client",
		"secondary_weapons",
		"a3_map_altis"
	};

 

Edited by Irkutsk86

Share this post


Link to post
Share on other sites

yes I have this all

Copy from my Mission.sqm

addons[]=
{
 "exile_client",
 "secondary_weapons",
 "A3_Ui_F",
 "A3_Structures_F_Civ_InfoBoards",
 "a3_map_altis"
};

Copy from my config.cpp

class CfgExileCustomCode
{
 exileclient_system_lootmanager_thread_spawn = "EBM\exileclient_system_lootmanager_thread_spawn.sqf"; 
 ExileClient_gui_traderDialog_updateInventoryDropdown = "overrides\ExileClient_gui_traderDialog_updateInventoryDropdown.sqf";
 ExileClient_gui_wasteDumpDialog_show = "overrides\ExileClient_gui_wasteDumpDialog_show.sqf";
 ExileServer_system_trading_network_wasteDumpRequest = "overrides\ExileServer_system_trading_network_wasteDumpRequest.sqf";
 ExileClient_gui_selectSpawnLocation_show = "Spawn\territoryspawn.sqf";
 ExileClient_gui_toaster_addToast = "Custom\MWT\ExileClient_gui_toaster_addToast.sqf";


 //Dual Arms Client
 ExileClient_object_player_event_onInventoryClosed = "Custom\dual_arms\ExileClient_object_player_event_onInventoryClosed.sqf";
 ExileClient_object_player_event_onInventoryOpened = "Custom\dual_arms\ExileClient_object_player_event_onInventoryOpened.sqf";
 ExileClient_object_player_event_onKilled = "Custom\dual_arms\ExileClient_object_player_event_onKilled.sqf";
 ExileClient_object_player_event_onTake = "Custom\dual_arms\ExileClient_object_player_event_onTake.sqf";
 ExileClient_gui_hud_event_onKeyUp = "Custom\dual_arms\ExileClient_gui_hud_event_onKeyUp.sqf";
 ExileClient_gui_traderDialog_updateInventoryListBox = "custom\dual_arms\ExileClient_gui_traderDialog_updateInventoryListBox.sqf";
 
 //Dual Arms Server
 ExileServer_system_network_event_onHandleDisconnect = "Custom\dual_arms\ExileServer_system_network_event_onHandleDisconnect.sqf";
 /*
  You can overwrite every single file of our code without touching it.
  To do that, add the function name you want to overwrite plus the
  path to your custom file here. If you wonder how this works, have a
  look at our bootstrap/fn_preInit.sqf function.

  Simply add the following scheme here:

  <Function Name of Exile> = "<New File Name>";

  Example:

  ExileClient_util_fusRoDah = "myaddon\myfunction.sqf";
 */
};

where is that in the description.ext

#include "Custom\dual_arms\CfgSecondaryWeapons.hpp" ?????????

Mod is Server Side

 

MFG

 

Share this post


Link to post
Share on other sites
6 hours ago, Mythbustar said:

where is that in the description.ext

#include "Custom\dual_arms\CfgSecondaryWeapons.hpp" ?????????

Mod is Server Side

 

du sollst das

#include "Custom\dual_arms\CfgSecondaryWeapons.hpp"

in die description.ext einfügen ansonsten geht es nicht weil du die eventhandlers damit überschreibst...

falls du das nicht hast versuch das mal vielleicht geht es dann schon^^

___________________

nice work, i will test it soon, too :)

Don't worry i know this guy ... he is from germany... that was the reason for me to write in german, because he have some problems to understand english :)

Share this post


Link to post
Share on other sites

If you are running DMS mission system and have it set for AI to remove launchers upon death this will also delete secondary from players as well at least from my testing.

in a3_dms\config.sqf

find     

DMS_ai_remove_launchers                = true;

and change to false

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.