Poptart4050

Add vehicles to Community Custom Trader

18 posts in this topic

I am trying to take one of the new Community Customs Traders and have that guy sell some higher end vehicles for me.. Like him only have them not the other traders... I have it to where they show up but seems they want to buy them into a backpack they are grayed out. If this is already been answered I am sorry  for i have searched and only  found post on how to add them to other traders not the new ones exile has given us.... 

Share this post


Link to post
Share on other sites

Try adding the class code for the vehicle to that trader and remove it from the standard vehicle trader.

It's possible that vehicles can only be bought from the vehicle trader though.

Edited by second_coming

Share this post


Link to post
Share on other sites
Advertisement

Will this work for the Community Customs trader because that is what i did first time? .. I can see the pics and prices but the pic is grayed out..

 

Thanks for the quick reply..

Share this post


Link to post
Share on other sites

I can't seem to get the custom community trader to go in to "Arsenal" mode, sort of speak.

So therefore i can't use a custom trader for Vehicles.. 

Share this post


Link to post
Share on other sites

Same for me

*edit: I think the solution is in the config.bin of the exile_client.pbo, after unrap there is the file CfgVehicles.hpp, custom community traders are not specified to sell vehicles... 

Edited by Pr3datorSAM

Share this post


Link to post
Share on other sites
5 hours ago, Pr3datorSAM said:

Same for me

*edit: I think the solution is in the config.bin of the exile_client.pbo, after unrap there is the file CfgVehicles.hpp, custom community traders are not specified to sell vehicles... 

Will try this after work. Thanks 

Share this post


Link to post
Share on other sites
58 minutes ago, Poptart4050 said:

Will try this after work. Thanks 

If you find something tell me, I'm stuck with this too... :)

Share this post


Link to post
Share on other sites

Sure will. I wish a developer would chime in on this.  For everything I have tried to date is not working.   I don't know why it is like this the trader is pretty much useless and we got all these new ones to use for what. 

1 person likes this

Share this post


Link to post
Share on other sites
On 12/16/2015 at 6:30 AM, Pr3datorSAM said:

Same for me

*edit: I think the solution is in the config.bin of the exile_client.pbo, after unrap there is the file CfgVehicles.hpp, custom community traders are not specified to sell vehicles... 

thanks for the hint! You are correct that there is no definition for the custom traders to act as vehicle traders. So what needs doing is taking the code from the Exile_Trader_Vehicle:

Spoiler

class Exile_Trader_Vehicle: Exile_Trader_Abstract
	{
		displayName = "Exile Vehicle Trader";
		uniformClass = "Exile_Uniform_ExileCustoms";
		linkedItems[] = {"H_RacingHelmet_4_F"};
		// HERE 
		class UserActions
		{
			class trade
			{
				displayName = "<img image='\a3\ui_f\data\IGUI\Cfg\Actions\reammo_ca.paa' size='1' shadow='false' />Purchase Vehicle";
				position = "ohniste";
				radius = 3;
				priority = 6;
				onlyForPlayer = 1;
				condition = "true";
				statement = "this call ExileClient_gui_vehicleTraderDialog_show";
			};
		};
		// TO HERE ^^^^^
	};

 

and putting it in your desired community trader:

Spoiler

// THIS
class Exile_Trader_CommunityCustoms: Exile_Trader_Abstract
	{
		displayName = "Exile Community Customs Trader";
		uniformClass = "Exile_Uniform_ExileCustoms";
		linkedItems[] = {};
	};


// BECOMES THIS
class Exile_Trader_CommunityCustoms: Exile_Trader_Abstract
	{
		displayName = "Black Market Vehicles";
		uniformClass = "U_BG_Guerrilla_6_1";
		linkedItems[] = {"V_PlateCarrierGL_blk","H_MilCap_ocamo","optic_KHS_blk","bipod_03_F_blk"};
		weapons[] = {"MMG_01_hex_F"};
		class UserActions
		{
			class trade
			{
				displayName = "<img image='\a3\ui_f\data\IGUI\Cfg\Actions\reammo_ca.paa' size='1' shadow='false' />Purchase Vehicle";
				position = "ohniste";
				radius = 3;
				priority = 6;
				onlyForPlayer = 1;
				condition = "true";
				statement = "this call ExileClient_gui_vehicleTraderDialog_show";
			};
		};
	};

Notice you can change their loadout! No more gross exile jumpsuits! Changing the display name changes their name in the editor.

 

This of course comes with a bit of a problem- you can only overwrite Exile functions, not just any file. I could be wrong on that, which I would love. The only solution I see would be to have everyone that plays your server download a custom version of exile with your edits to that config.

If anyone has a way to change this without a custom download, please share!

Edited by SKGM

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.