TDBGaming

CUP Vehicle versions

4 posts in this topic

I am considering adding CUP vehicles to my server. Would i need to add each version of the vehicle to the trader or would i be able to add one and the rest to the vehicle custom trader?

For example, there are 14 versions of the Golf. Could i add CUP_C_Golf4_random_Civ to vehicle trader and rest to vehicle custom so people could change how it looks when they wish.

Spoiler

CUP_C_Golf4_red_Civ
CUP_C_Golf4_black_Civ
CUP_C_Golf4_yellow_Civ
CUP_C_Golf4_blue_Civ
CUP_C_Golf4_white_Civ
CUP_C_Golf4_green_Civ
CUP_C_Golf4_random_Civ
CUP_C_Golf4_whiteblood_Civ
CUP_C_Golf4_camo_Civ
CUP_C_Golf4_camodigital_Civ
CUP_C_Golf4_camodark_Civ
CUP_C_Golf4_reptile_Civ
CUP_C_Golf4_kitty_Civ
CUP_C_Golf4_crowe_Civ

 

 

Share this post


Link to post
Share on other sites

Been trying to find something on this for ages!
Ive got all the CUP Vechs & Weapons, But cant seem to find how to enable the "duplicates" to be sold through the reskin "custom" trader.
Would really like some advice on this 

Share this post


Link to post
Share on other sites
Advertisement

If you wanted to do it for the golfs only.. thats easy enough...

Only add the black civ golf and the camo dark sport golf to your trader buy lists.
then add this into CfgVehicleCustoms inside config.cpp

	// CUP Vehicles 
	class CUP_C_Golf4_Civ_Base 
	{
		skins[] = {
          // { "classname", price, "description", {paste textures array}; },
			{"CUP_C_Golf4_black_Civ",	350, "Blue", {"\CUP\WheeledVehicles\CUP_WheeledVehicles_VWGolf\Data\vwgolf_body_blue_CO.paa"};},
			{"CUP_C_Golf4_black_Civ",	350, "Green", {"\CUP\WheeledVehicles\CUP_WheeledVehicles_VWGolf\Data\vwgolf_body_green_CO.paa"};},
			{"CUP_C_Golf4_black_Civ",	350, "Red", {"\CUP\WheeledVehicles\CUP_WheeledVehicles_VWGolf\Data\vwgolf_body_co.paa"};},
			{"CUP_C_Golf4_black_Civ",	350, "White", {"\CUP\WheeledVehicles\CUP_WheeledVehicles_VWGolf\Data\vwgolf_body_white_CO.paa"};},
			{"CUP_C_Golf4_black_Civ",	350, "Yellow", {"\CUP\WheeledVehicles\CUP_WheeledVehicles_VWGolf\Data\vwgolf_body_yellow_CO.paa"};},
			{"CUP_C_Golf4_black_Civ",	350, "Black (Default)", {"\CUP\WheeledVehicles\CUP_WheeledVehicles_VWGolf\Data\vwgolf_body_black_CO.paa"};}
		};
	};
	class CUP_C_Golf4_Civ_sport_Base 
	{
		skins[] = {
			{"CUP_C_Golf4_camodark_Civ",	500, "Camo", {"\CUP\WheeledVehicles\CUP_WheeledVehicles_VWGolf\Data\vwgolf_body_camo_CO.paa"};},
			{"CUP_C_Golf4_camodark_Civ",	500, "Camo (Digital)", {"\CUP\WheeledVehicles\CUP_WheeledVehicles_VWGolf\Data\vwgolf_body_camodigital_CO.paa"};},
			{"CUP_C_Golf4_camodark_Civ",	500, "Jay Crowe", {"\CUP\WheeledVehicles\CUP_WheeledVehicles_VWGolf\Data\vwgolf_body_crowe_CO.paa"};},
			{"CUP_C_Golf4_camodark_Civ",	500, "Herro Kitty", {"\CUP\WheeledVehicles\CUP_WheeledVehicles_VWGolf\Data\vwgolf_body_kitty_CO.paa"};},
			{"CUP_C_Golf4_camodark_Civ",	500, "Reptile", {"\CUP\WheeledVehicles\CUP_WheeledVehicles_VWGolf\Data\vwgolf_body_reptile_CO.paa"};},
			{"CUP_C_Golf4_camodark_Civ",	500, "White (Blood)", {"\CUP\WheeledVehicles\CUP_WheeledVehicles_VWGolf\Data\vwgolf_body_whiteblood_CO.paa"};},
			{"CUP_C_Golf4_camodark_Civ",	500, "Dark Camo (Default)", {"\CUP\WheeledVehicles\CUP_WheeledVehicles_VWGolf\Data\vwgolf_body_camodark_CO.paa"};}
		};
	};

To understand how this works. Then to add your own.

  1. Open up arma 3 with the desired mods. start the editor. virtual reality map.
  2. Place a vehicle.
  3. right click the vehicle > find in config viewer.
  4. Identify the base class... eg. CUP_C_Golf4_Civ_Base
  5. Find the Base class in the left hand pane.
  6. Double Click the class (then wait for it to load)
  7. Scroll down and find the option called + textureSources - Double click it.
  8. Now you'll have a list Black, Blood, Blue etc.
  9. Select the texture. in the main window look at textures[] = { "\cup blahblahblah"};
  10. select that line. ctrl+c to copy. then paste it in to your file.

    XnIJUUy.png
     
  • Like 3

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.