Jump to content
Sign in to follow this  
bloodxgusher

Allowing and Including Addons

Recommended Posts

Hey everyone.

Im looking for some help with a mission I plan on hosting soon. I want to host CLR or Chernarus Revolution but with a specific addon. I've been looking for other post on this but have not found any yet so I figured I make one asking just in case.

So yes basically I want to know how I go about adding a addon into the mission that people would have to download. I know for far I would have to get information from the master arrays and of course edit the server config i believe.

If anyone knows a post that can help me pls direct me or tell me here. Thanks for reading.

Share this post


Link to post
Share on other sites

To force an addon open the mission's file (mission.sqm) and add the addon's cfgPatches class name to the addOns[] array.

Such as:

addOns[]=
{
"cacharacters2",
"chernarus",
"CAWheeled2_LADA",
"CAWheeled"[color="Red"],
"YourAddon"[/color]
};

As for allowing you need to add the addon's server key (bikey) to the keys directory in ARMA 2's root.

Share this post


Link to post
Share on other sites
To force an addon open the mission's file (mission.sqm) and add the addon's cfgPatches class name to the addOns[] array.

Such as:

addOns[]=
{
"cacharacters2",
"chernarus",
"CAWheeled2_LADA",
"CAWheeled"[color="Red"],
"YourAddon"[/color]
};

As for allowing you need to add the addon's server key (bikey) to the keys directory in ARMA 2's root.

cool. Thanks for this. I was messing with this actually but thought I get some advice from someone who knows for sure. thanks for the help agian.

Now would I still of course have to mess with the master arrays or?

Edited by BloodxGusher

Share this post


Link to post
Share on other sites
Now would I still of course have to mess with the master arrays or?

Sorry, what arrays?

Share this post


Link to post
Share on other sites
Sorry, what arrays?

For example in the CLR revolution mission. There is a master array sqf that i guess tells the game what vehicles to call to be used. I believe it is most of the vehicles and items that come default with the game here is a snippet.

["HMMWV",["Fahrzeug", "car"],["HMMWV", "HMMWV"], [45000, 22500], [2, "car", "sobr_training", 800], [350, [1,0,0,1] ], "HMMWV" call ISSE_Cfg_Vehicle_GetName, "HMMWV" call ISSE_Cfg_Vehicle_GetDesc, [["stahl", 10],["ebauteile", 1],["glas", 2],["plastik", 2],["erdoel", 5]] ],

["V3S_Civ",["Fahrzeug", "truck"],["Praha V3S", "Praha V3S"],[25000, 12500], [2, "truck", "patrol_training", 1500], [500,[1,0,0,13]], "Truck5t" call ISSE_Cfg_Vehicle_GetName, "Truck5t" call ISSE_Cfg_Vehicle_GetDesc, [["stahl", 17],["ebauteile", 2],["glas", 2],["plastik", 3],["erdoel", 6]] ],

["Ural_CDF",["Fahrzeug", "truck"],["Ural_CDF", "Ural CDF"],[35000, 17500], [2, "truck", "patrol_training", 1500], [500,[1,0,0,13]], "Truck5t" call ISSE_Cfg_Vehicle_GetName, "Truck5t" call ISSE_Cfg_Vehicle_GetDesc, [["stahl", 17],["ebauteile", 2],["glas", 2],["plastik", 3],["erdoel", 6]] ],

["UralOpen_CDF", ["Fahrzeug", "truck"],["UralOpen", "Ural Open"], [35000, 17500],[2, "truck", "patrol_training", 1500], [500, [1,0,0,13] ], "Truck5tOpen" call ISSE_Cfg_Vehicle_GetName, "Truck5tOpen" call ISSE_Cfg_Vehicle_GetDesc, [["stahl", 17],["ebauteile", 2],["glas", 2],["plastik", 3],["erdoel", 6]] ],

["Ikarus", ["Fahrzeug", "truck"],["Ikarus", "Bus"],[40000, 20000],[2, "truck", "response_training", 1000], [500, [1,0,0,12] ], "Bus_city" call ISSE_Cfg_Vehicle_GetName,"Bus_city" call ISSE_Cfg_Vehicle_GetDesc,[["stahl", 14],["ebauteile", 2],["glas", 2],["plastik", 3],["erdoel", 5]] ],

["UralCivil", ["Fahrzeug", "truck"],["UralCivil", "Civil Ural #1"],[35000, 17500],[2, "truck", "response_training", 1500], [500, [1,0,0,14] ], "UralCivil" call ISSE_Cfg_Vehicle_GetName,"UralCivil" call ISSE_Cfg_Vehicle_GetDesc,[["stahl", 17],["ebauteile", 2],["glas", 2],["plastik", 3],["erdoel", 6]] ],

This is where you can name a vehicle another name other than the default given by Bohemia...also change the pricing they are sold at...Now that im writting this i'm realising this may be specially written for this mission. Just trying to give you something to further help me on.

Share this post


Link to post
Share on other sites

Yes, these are just mission-specific items. You don't need to add anything there unless you want to add another shop item.

Share this post


Link to post
Share on other sites
Yes, these are just mission-specific items. You don't need to add anything there unless you want to add another shop item.

Ok i know im somewhat in the right track. Here is my problem still. The addon that I am using is only bought through shops. For example, The addon im using is a police car. I want police to spawn at the police-base then able to buy the car from the cop car shop in the police base.

Im not sure if your familiar with the CLR mission files but I know if one wants to get a new car to spawn, they would have to edit the mission array and shops.sqf and say how many are available to buy or to make infinite and which shop the car spawns in. Basically just adding a new car. So I guess my question is do you know how to go about correctly doing this because I've tried about 10 different times and FAILED horribly each time lol.

To show you what I have tried look at the snippet of the master array I posted.

I know so far that on one of those lines...lets say the UralCivil for example. One of those dictate what the car shows up as in the shop and game and one is like a class name or the "Master Name" (I can't think of the correct term) The other parts are telling you that it is a truck of course and how mush it will cost. I think What I am messing up on is the class name or the "master name"

["UralCivil", ["Fahrzeug", "truck"],["UralCivil", "Civil Ural #1"],[35000, 17500],[2, "truck", "response_training", 1500], [500, [1,0,0,14] ], "UralCivil" call ISSE_Cfg_Vehicle_GetName,"UralCivil" call ISSE_Cfg_Vehicle_GetDesc,[["stahl", 17],["ebauteile", 2],["glas", 2],["plastik", 3],["erdoel", 6]] ], 

Lol any clue. Thanks for your help so far.

Share this post


Link to post
Share on other sites
Im not sure if your familiar with the CLR mission files

I know it way too well. That goods array gave me many sleepless dreams back in the days :D

INV_AlleFahrzeugeArray = [
["HMMWV",["Fahrzeug", "car"],["HMMWV", "HMMWV"], [45000, 22500], [2, "car", "sobr_training", 800], [350, [1,0,0,1] ], "HMMWV" call ISSE_Cfg_Vehicle_GetName, "HMMWV" call ISSE_Cfg_Vehicle_GetDesc, [["stahl", 10],["ebauteile", 1],["glas", 2],["plastik", 2],["erdoel", 5]] ],

["V3S_Civ",["Fahrzeug", "truck"],["Praha V3S", "Praha V3S"],[25000, 12500], [2, "truck", "patrol_training", 1500], [500,[1,0,0,13]], "Truck5t" call ISSE_Cfg_Vehicle_GetName, "Truck5t" call ISSE_Cfg_Vehicle_GetDesc, [["stahl", 17],["ebauteile", 2],["glas", 2],["plastik", 3],["erdoel", 6]] ],

["Ural_CDF",["Fahrzeug", "truck"],["Ural_CDF", "Ural CDF"],[35000, 17500], [2, "truck", "patrol_training", 1500], [500,[1,0,0,13]], "Truck5t" call ISSE_Cfg_Vehicle_GetName, "Truck5t" call ISSE_Cfg_Vehicle_GetDesc, [["stahl", 17],["ebauteile", 2],["glas", 2],["plastik", 3],["erdoel", 6]] ],

["UralOpen_CDF", ["Fahrzeug", "truck"],["UralOpen", "Ural Open"], [35000, 17500],[2, "truck", "patrol_training", 1500], [500, [1,0,0,13] ], "Truck5tOpen" call ISSE_Cfg_Vehicle_GetName, "Truck5tOpen" call ISSE_Cfg_Vehicle_GetDesc, [["stahl", 17],["ebauteile", 2],["glas", 2],["plastik", 3],["erdoel", 6]] ],

["Ikarus", ["Fahrzeug", "truck"],["Ikarus", "Bus"],[40000, 20000],[2, "truck", "response_training", 1000], [500, [1,0,0,12] ], "Bus_city" call ISSE_Cfg_Vehicle_GetName,"Bus_city" call ISSE_Cfg_Vehicle_GetDesc,[["stahl", 14],["ebauteile", 2],["glas", 2],["plastik", 3],["erdoel", 5]] ],

["UralCivil", ["Fahrzeug", "truck"],["UralCivil", "Civil Ural #1"],[35000, 17500],[2, "truck", "response_training", 1500], [500, [1,0,0,14] ], "UralCivil" call ISSE_Cfg_Vehicle_GetName,"UralCivil" call ISSE_Cfg_Vehicle_GetDesc,[["stahl", 17],["ebauteile", 2],["glas", 2],["plastik", 3],["erdoel", 6]] ],

["[color="Sienna"]NewCar[/color]",["Fahrzeug", "car"],["[color="Red"]NewCar[/color]", "[color="DarkOrchid"]The new Car[/color]"],[[color="Orange"]20000[/color], [color="SeaGreen"]11000[/color]], [1, "car", "[color="DeepSkyBlue"]sobr_training[/color]"], [150, [1,0,0,3]], "[color="Red"]NewCar[/color]" call ISSE_Cfg_Vehicle_GetName, "[color="Red"]NewCar[/color]" call ISSE_Cfg_Vehicle_GetDesc, [["stahl", 10],["ebauteile", 1],["glas", 2],["plastik", 2],["erdoel", 5]] ]
];

Next you have to add the item to the shop sell array. It's called shopDefine.sqf with the old SL:R version I have.

_vehicleshop1   = [
"Skoda", "SkodaBlue", "SkodaRed", "SkodaGreen", "Car_hatchback", "Car_Sedan", "Tractor", "[color="Sienna"]NewCar[/color]"
];

Legend:

Brown - item name, best to keep the same as the vehicle classname

Red - vehicle classname

Violet - display name in the shop

Orange - buy price

Green - sell price

Blue - license required for cops to buy

Edited by Deadfast

Share this post


Link to post
Share on other sites
I know it way too well. That goods array gave me many sleepless dreams back in the days :D

INV_AlleFahrzeugeArray = [
["HMMWV",["Fahrzeug", "car"],["HMMWV", "HMMWV"], [45000, 22500], [2, "car", "sobr_training", 800], [350, [1,0,0,1] ], "HMMWV" call ISSE_Cfg_Vehicle_GetName, "HMMWV" call ISSE_Cfg_Vehicle_GetDesc, [["stahl", 10],["ebauteile", 1],["glas", 2],["plastik", 2],["erdoel", 5]] ],

["V3S_Civ",["Fahrzeug", "truck"],["Praha V3S", "Praha V3S"],[25000, 12500], [2, "truck", "patrol_training", 1500], [500,[1,0,0,13]], "Truck5t" call ISSE_Cfg_Vehicle_GetName, "Truck5t" call ISSE_Cfg_Vehicle_GetDesc, [["stahl", 17],["ebauteile", 2],["glas", 2],["plastik", 3],["erdoel", 6]] ],

["Ural_CDF",["Fahrzeug", "truck"],["Ural_CDF", "Ural CDF"],[35000, 17500], [2, "truck", "patrol_training", 1500], [500,[1,0,0,13]], "Truck5t" call ISSE_Cfg_Vehicle_GetName, "Truck5t" call ISSE_Cfg_Vehicle_GetDesc, [["stahl", 17],["ebauteile", 2],["glas", 2],["plastik", 3],["erdoel", 6]] ],

["UralOpen_CDF", ["Fahrzeug", "truck"],["UralOpen", "Ural Open"], [35000, 17500],[2, "truck", "patrol_training", 1500], [500, [1,0,0,13] ], "Truck5tOpen" call ISSE_Cfg_Vehicle_GetName, "Truck5tOpen" call ISSE_Cfg_Vehicle_GetDesc, [["stahl", 17],["ebauteile", 2],["glas", 2],["plastik", 3],["erdoel", 6]] ],

["Ikarus", ["Fahrzeug", "truck"],["Ikarus", "Bus"],[40000, 20000],[2, "truck", "response_training", 1000], [500, [1,0,0,12] ], "Bus_city" call ISSE_Cfg_Vehicle_GetName,"Bus_city" call ISSE_Cfg_Vehicle_GetDesc,[["stahl", 14],["ebauteile", 2],["glas", 2],["plastik", 3],["erdoel", 5]] ],

["UralCivil", ["Fahrzeug", "truck"],["UralCivil", "Civil Ural #1"],[35000, 17500],[2, "truck", "response_training", 1500], [500, [1,0,0,14] ], "UralCivil" call ISSE_Cfg_Vehicle_GetName,"UralCivil" call ISSE_Cfg_Vehicle_GetDesc,[["stahl", 17],["ebauteile", 2],["glas", 2],["plastik", 3],["erdoel", 6]] ],

["[color="Sienna"]NewCar[/color]",["Fahrzeug", "car"],["[color="Red"]NewCar[/color]", "[color="DarkOrchid"]The new Car[/color]"],[[color="Orange"]20000[/color], [color="SeaGreen"]11000[/color]], [1, "car", "[color="DeepSkyBlue"]sobr_training[/color]"], [150, [1,0,0,3]], "[color="Red"]NewCar[/color]" call ISSE_Cfg_Vehicle_GetName, "[color="Red"]NewCar[/color]" call ISSE_Cfg_Vehicle_GetDesc, [["stahl", 10],["ebauteile", 1],["glas", 2],["plastik", 2],["erdoel", 5]] ]
];

Next you have to add the item to the shop sell array. It's called shopDefine.sqf with the old SL:R version I have.

_vehicleshop1   = [
"Skoda", "SkodaBlue", "SkodaRed", "SkodaGreen", "Car_hatchback", "Car_Sedan", "Tractor", "[color="Sienna"]NewCar[/color]"
];

Legend:

Brown - item name, best to keep the same as the vehicle classname

Red - vehicle classname

Violet - display name in the shop

Orange - buy price

Green - sell price

Blue - license required for cops to buy

WOW I am stupid...I never went down the entire strip of code where I was suppose to add the class name... I can't wait to get off work and try this. This makes things much clearer now. Thanks for this.

Im still curious on one thing though. The class name for the vehicle...is that the same class name I use from the cfgPatches to force the addon? The Vehicle is player created. So would all I have to do is open the vehicle pbo with like note pad or PBOview to the class name?

Share this post


Link to post
Share on other sites

It is the name of the cfgVehicles class entry.

Just place the vehicle in the editor and put this in its initialization line:

hint (typeOf this);

You'll get a hint with its class name.

Share this post


Link to post
Share on other sites
It is the name of the cfgVehicles class entry.

Just place the vehicle in the editor and put this in its initialization line:

hint (typeOf this);

You'll get a hint with its class name.

DISREGARD THIS LOL I JUST FIGURED IT OUT. I HAVE IT WORKING THANKS FOR THE INFO

Brilliant help.

Hey I just want to be clear on the process. I have been failing again.

So in the config file of the Addon I am using Im taking excatly what info. Here is the config

#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7
#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot				0// dummy weapons
#define WeaponSlotPrimary		1// primary weapons
#define WeaponSlotSecondary	16// secondary weapons
#define WeaponSlotItem			256// items
#define WeaponSlotBinocular	4096// binocular
#define WeaponHardMounted		65536


class CfgPatches
{
class dhi_FordCV  <-- (I used that in the for the forced addons)
       {
         units[] = {dhi_cvpi_p71,dhi_cvpi_p71_b,dhi_cvpi_p71_t,dhi_cvpi_p71_gpd_patrol,dhi_cvpi_p71_gpd_slicktop,dhi_cvpi_p71_gpd_stealth,dhi_cvpi_p71_lapd_patrol,dhi_cvpi_p71_gpd_unmarked_w,dhi_cvpi_p71_gpd_unmarked_b};
         weapons[] = {};
         requiredVersion = 1.00;
       };
};

class cfgsounds
{
class fordcvstart
{
	sound[]={"\DHI_FordCV\sounds\FordCvstart.wav",.10,1};
	name="Crown Victoria Start";
	titles[]={};
};
class fordcvdooropen
{
	sound[]={"\DHI_FordCV\sounds\fordcvdooropen.wav",.10,1};
	name="Crown Victoria Door O";
	titles[]={};
};
class fordcvdoorclose
{
	sound[]={"\DHI_FordCV\sounds\fordcvdoorclose.wav",.10,1};
	name="Crown Victoria Door C";
	titles[]={};
};
class whelensiren1
{
	sound[]={"\DHI_FordCV\sounds\whelensiren1.wav",.10,1};
	name="Whelen Siren";
	titles[]={};
};
class whelensiren2
{
	sound[]={"\DHI_FordCV\sounds\whelensiren2.wav",.10,1};
	name="Whelen Siren 2";
	titles[]={};
};
class whelensiren3
{
	sound[]={"\DHI_FordCV\sounds\whelensiren3.wav",.10,1};
	name="Whelen Siren 3";
	titles[]={};
};
class motorolaradiobeep
{
	sound[]={"\DHI_FordCV\sounds\motorolaradiobeep.wav",.10,1};
	name="motorolaradiobeep";
	titles[]={};
};
class policeradiochatter
{
	sound[]={"\DHI_FordCV\sounds\policeradiochatter.wav",.10,1};
	name="Police Radio Chatter";
	titles[]={};
};
class takedown
{
	sound[]={"\DHI_FordCV\sounds\takedown.wav",.10,1};
	name="Takedown";
	titles[]={};
};
//	class fordcvchime
//	{
//		sound[]={"\DHI_FordCV\sounds\fordcvchime.wav",.10,1};
//		name="Crown Victoria Chime";
//		titles[]={};
//	};
};

class CfgWeapons
{ 
class Default;
class CarHorn;
class SportCarHorn;
class DHI_FordCV_horn1: SportCarHorn
{
	scope = 2;
	displayName = "Ford Crown Victoria Horn";
	drySound[] = {"\DHI_FordCV\Sounds\DHI_FordCV_horn1.wav",.1,1};
};
class DHI_FordCV_horn2: SportCarHorn
{
	scope = 2;
	displayName = "Whelen Airhorn";
	drySound[] = {"\DHI_FordCV\Sounds\DHI_FordCV_horn2.wav",.1,1};
};
};

class CfgVehicleClasses
{
class Americas_Vehicles
{
	displayName = "America's Vehicles";
};
};

class CfgVehicles
{
class All{};
class AllVehicles: All{};
class Land: AllVehicles{};
class LandVehicle: Land{};
class Car : LandVehicle
{
	class Exhausts;
	class AnimationSources;
};
class Car_sedan  : Car {};
class dhi_cvpi_p71: Car_sedan
{

	scope=public;

	vehicleClass="Americas_vehicles";
	displayName="Ford Crown Victoria P71 Wht";
	picture="\DHI_FordCV\icons\P71W.pac";
	icon="\DHI_FordCV\icons\fordcv.pac";
	model="\DHI_FordCV\dhi_cvpi_p71";
	nameSound="car";
	autocenter=false;
	accuracy=.90;
	canlock = true;

	crew="Civilian11";
	side=3;
	type=1;
	typicalCargo[]={};
	cargoIsCoDriver[] = {1,0 };
	weapons[]={"DHI_FordCV_horn1"};
	magazines[] = {};
	unloadInCombat = false;
	class TransportWeapons{};
	transportSoldier=3;
	transportMaxMagazines=0;
	transportMaxWeapons=0;
	viewCargoShadow = true;

	maxSpeed=209;
	turnCoef=1.9500000;
  		terrainCoef=3.550000;
               brakeDistance=20.00;
	cost=30000;
	fuelCapacity=35;

	armorWheels=0.07;
	armor=18; // total armor
	armorStructural=8.0; // very low structural damage
	armorEngine=2.2;

               soundEngine[]={"\DHI_FordCV\sounds\engine.wav",.10,1};  
               soundGetIn[]={"\DHI_FordCV\sounds\getin.wav",.10,1};
	soundGetOut[]={"\DHI_FordCV\sounds\getout.wav",.10,1};
               soundGear[]={"\DHI_FordCV\sounds\gear.wav",.10,1}; 
	soundCrash[]={"\DHI_FordCV\sounds\crash.wav",.10,1};
	soundLandCrash[]={"\DHI_FordCV\sounds\crash.wav",.10,1};

	selectionBrakeLights="brzdove svetlo";
	selectionBackLights="zadni svetlo";
	hiddenSelections[] = {"Backuplight","door1light","door3light","hubcaps","windowtint"};
	class Exhausts
	{
		class exhaust1
		{
			position = "vyfuk start";
			direction = "vyfuk konec";
			effect ="ExhaustsEffect";

		};
		class exhaust2:exhaust1
		{
			position = "exhaust2start";
			direction = "exhaust2end";

		};
	};
	dammageHalf[]=
	{

		"\DHI_FordCv\windows1_ca.paa","\DHI_FordCv\windowsB_ca.paa",
		"\DHI_FordCv\windows_ca.paa","\DHI_FordCv\windowsB_ca.paa",
		"\DHI_FordCv\body_w.pac","\DHI_FordCV\body_w_B.pac"

	};
	dammageFull[]=
	{
		"\DHI_FordCv\windows1_ca.paa","\DHI_FordCv\windowsC_ca.paa",
		"\DHI_FordCv\windows_ca.paa","\DHI_FordCv\windowsC_ca.paa",
		"\DHI_FordCv\body_w.pac","\DHI_FordCV\body_w_B.pac"
	};
	class Library {libTextDesc = "Ford Crown Victoria P71 Police Interceptor.  Ford Motor Company has made police work grad vehicles for polices departments for a long time.";};
	class Reflectors
	{
		class Left
		{
			color[]={0.900000,0.800000,0.800000,1.000000};
			ambient[]={0.100000,0.100000,0.100000,1.000000};
			position="HDlightstart1";
			direction="HDlightdir1";
			hitpoint="HDlightstart1";
			selection="HDlightstart1";
			size=0.500000;
			brightness=0.500000;
		};
		class Right
		{
			color[]={0.900000,0.800000,0.800000,1.000000};
			ambient[]={0.100000,0.100000,0.100000,1.000000};
			position="HDlightstart2";
			direction="HDlightdir2";
			hitpoint="HDlightstart2";
			selection="HDlightstart2";
			size=0.500000;
			brightness=0.500000;
		};
	};
	class MarkerLights  
	{

		class taillightL  
		{
			name = "taillightL";
			color[] = {1.000000,0.100000,0.100000,1 };
			ambient[] = {0.100000,0.010000,0.010000,1 };
			brightness = 0.004000;
			blinking = "false";
		};
		class taillightr  
		{
			name = "taillightr";
			color[] = {1.000000,0.100000,0.100000,1 };
			ambient[] = {0.100000,0.010000,0.010000,1 };
			brightness = 0.004000;
			blinking = "false";
		};
//			class headlightL  
//			{
//				name = "hdlightstart1";
//				color[] = {0.100000,0.100000,0.100000,1 };
//				ambient[] = {0.100000,0.010000,0.010000,1 };
//				brightness = 0.004000;
//				blinking = "false";
//			};
//			class headlightr  
//			{
//				name = "hdlightstart2";
//				color[] = {0.000000,0.000000,0.000000,1 };
//				ambient[] = {0.100000,0.010000,0.010000,1 };
//				brightness = 0.004000;
//				blinking = "false";
//			};
	};

	class HitEngine  {armor = 0.4;material = 60;name = "motor";visual = "motor";passThrough = 1;};
 		class HitBody    {armor = 1;material = 51;name = "karoserie";visual = "karoserie";passThrough = 1;};
 		class HitFuel    {armor = 0.3;material = 51;name = "palivo";passThrough = 1;};
	class HitLFWheel {armor=0.38;material=-1;name="wheel_1_damper";visual="wheel_1";passThrough=0;};
	class HitRFWheel {armor=0.38;material=-1;name="wheel_2_damper";visual="wheel_2";passThrough=0;};
	class HitLBWheel {armor=0.38;material=-1;name="wheel_3_damper";visual="wheel_3";passThrough=0;};
	class HitRBWheel {armor=0.38;material=-1;name="wheel_4_damper";visual="wheel_4";passThrough=0;};

	class Damage
	{
		tex[] = {};
		mat[] = 
		{
			"DHI_FordCV\effects\bottom.rvmat",
			"DHI_FordCV\effects\bottom.rvmat",
			"DHI_FordCV\effects\bottom_destruct.rvmat",
			"DHI_FordCV\effects\body.rvmat",
			"DHI_FordCV\effects\body.rvmat",
			"DHI_FordCV\effects\body_destruct.rvmat",
			"DHI_FordCV\effects\interior.rvmat",
			"DHI_FordCV\effects\interior.rvmat",
			"DHI_FordCV\effects\interior_destruct.rvmat",
			"DHI_FordCV\effects\dash.rvmat",
			"DHI_FordCV\effects\dash.rvmat",
			"DHI_FordCV\effects\dash_destruct.rvmat"
		};
	};

	class AnimationSources: AnimationSources
	{
		class  Zeroanimation
		{
			source = "user";
			animPeriod = 0;
			initPhase=0;
		};
		class  OneSecondAnim
		{
			source = "user";
			animPeriod = 1;
			initPhase=0;
		};
		class  FiveSecondAnim
		{
			source = "user";
			animPeriod = 5;
			initPhase=0;
		};
	};

	class UserActions
	{
		class Opendoor1
		{
			displayName ="Open Driver Door";
			position = "pos_door1";
			radius =1;
			onlyForplayer= false;
			condition = "this animationPhase ""ani_door1""<0.5 && speed this < 5";
			statement = "this  animate [""ani_door1"", 1], this setobjecttexture [1,""\DHI_FordCV\cvlights_ca.paa""], this say ""fordcvdooropen"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class closedoor1
		{
			displayName="Close Driver Door";
			position="pos_door1";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_door1""==1";
			statement="this animate [""ani_door1"", 0], this setobjecttexture [1,""""], this say ""fordcvdoorclose"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class Opendoor2
		{
			displayName ="Open Rear Door";
			position = "pos_door2";
			radius =1;
			onlyForplayer= false;
			condition = "this animationPhase ""ani_door2""<0.5 && speed this < 5";
			statement = "this  animate [""ani_door2"", 1], this say ""fordcvdooropen"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class closedoor2
		{
			displayName="Close Rear Door";
			position="pos_door2";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_door2""==1";
			statement="this animate [""ani_door2"", 0], this say ""fordcvdoorclose"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class Opendoor3
		{
			displayName ="Open Front Door";
			position = "pos_door3";
			radius =1;
			onlyForplayer= false;
			condition = "this animationPhase ""ani_door3""<0.5 && speed this < 5";
			statement = "this  animate [""ani_door3"", 1], this setobjecttexture [2,""\DHI_FordCV\cvlights_ca.paa""], this say ""fordcvdooropen"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class closedoor3
		{
			displayName="Close Front Door";
			position="pos_door3";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_door3""==1";
			statement="this animate [""ani_door3"", 0], this setobjecttexture [2,""""], this say ""fordcvdoorclose"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class Opendoor4
		{
			displayName ="Open Rear Door";
			position = "pos_door4";
			radius =1;
			onlyForplayer= false;
			condition = "this animationPhase ""ani_door4""<0.5 && speed this < 5";
			statement = "this  animate [""ani_door4"", 1], this say ""fordcvdooropen"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class closedoor4
		{
			displayName="Close Rear Door";
			position="pos_door4";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_door4""==1";
			statement="this animate [""ani_door4"", 0], this say ""fordcvdoorclose"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class opentrunk
		{
			displayName="Open Trunk";
			position="pos_trunk";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_trunk""<0.5";
			statement="this animate [""ani_trunk"", 1]";
		};
		class closetrunk
		{
			displayName="Close Trunk";
			position="pos_trunk";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_trunk""==1";
			statement="this animate [""ani_trunk"", 0], this say ""fordcvdoorclose""";
		};
	};
	class eventhandlers  
	{
		init = "_this exec ""\DHI_FordCV\scripts\set.sqs"";";
		engine = "_this exec ""\DHI_FordCV\scripts\backuplight.sqs"", _this exec ""\DHI_FordCV\scripts\checkenginelight.sqs"",_this exec ""\DHI_FordCV\scripts\fuellight.sqs"",_this exec ""\DHI_FordCV\scripts\gauges.sqs"";";
	};
};
class dhi_cvpi_p71_b: dhi_cvpi_p71
{
	displayName="Ford Crown Victoria P71 Blk";
	picture="\DHI_FordCV\icons\P71B.pac";
	icon="\DHI_FordCV\icons\fordcv.pac";
	model="\DHI_FordCV\dhi_cvpi_p71_b";
	dammageHalf[]=
	{

		"\DHI_FordCv\windows1_ca.paa","\DHI_FordCv\windowsB_ca.paa",
		"\DHI_FordCv\windows_ca.paa","\DHI_FordCv\windowsB_ca.paa",
		"\DHI_FordCv\body_b.pac","\DHI_FordCV\body_b_b.pac"

	};
	dammageFull[]=
	{
		"\DHI_FordCv\windows1_ca.paa","\DHI_FordCv\windowsC_ca.paa",
		"\DHI_FordCv\windows_ca.paa","\DHI_FordCv\windowsC_ca.paa",
		"\DHI_FordCv\body_b.pac","\DHI_FordCV\body_b_b.pac"
	};
};
class dhi_cvpi_p71_t: dhi_cvpi_p71
{
	displayName="Taxi Cab";
	picture="\DHI_FordCV\icons\P71t.pac";
	icon="\DHI_FordCV\icons\fordcv.pac";
	model="\DHI_FordCV\dhi_cvpi_p71_T";
	dammageHalf[]=
	{

		"\DHI_FordCv\windows1_ca.paa","\DHI_FordCv\windowsB_ca.paa",
		"\DHI_FordCv\windows_ca.paa","\DHI_FordCv\windowsB_ca.paa",
		"\DHI_FordCv\body_t.pac","\DHI_FordCV\body_t_b.pac"

	};
	dammageFull[]=
	{
		"\DHI_FordCv\windows1_ca.paa","\DHI_FordCv\windowsC_ca.paa",
		"\DHI_FordCv\windows_ca.paa","\DHI_FordCv\windowsC_ca.paa",
		"\DHI_FordCv\body_t.pac","\DHI_FordCV\body_t_b.pac"
	};
};
class dhi_cvpi_p71_gpd_patrol: Car_sedan
{

	scope=public;

	vehicleClass="Americas_vehicles";
	displayName="GPD P71 Patrol";
	picture="\DHI_FordCV\icons\P71gpd1.pac";
	icon="\DHI_FordCV\icons\fordcv.pac";
	model="\DHI_FordCV\dhi_cvpi_p71_gpd_patrol";
	accuracy=6.90;

	crew="dhi_gpd_officer";
	side=1;
	type=1;
	typicalCargo[]={};
	cargoIsCoDriver[] = {1,0 };
	weapons[]={"DHI_FordCV_horn2","DHI_FordCV_horn1"};
	magazines[] = {};
	unloadInCombat = true;
	class TransportWeapons{};
	transportSoldier=3;
	transportMaxMagazines=0;
	transportMaxWeapons=0;
	viewCargoShadow = true;

	maxSpeed=209;
	turnCoef=1.9500000;
  		terrainCoef=3.550000;
               brakeDistance=20.00;
	cost=30000;
	fuelCapacity=35;

	armorWheels=0.07;
	armor=18; // total armor
	armorStructural=8.0; // very low structural damage
	armorEngine=2.2;

               soundEngine[]={"\DHI_FordCV\sounds\engine.wav",.10,1};  
               soundGetIn[]={"\DHI_FordCV\sounds\getin.wav",.10,1};
	soundGetOut[]={"\DHI_FordCV\sounds\getout.wav",.10,1};
               soundGear[]={"\DHI_FordCV\sounds\gear.wav",.10,1}; 
	soundCrash[]={"\DHI_FordCV\sounds\crash.wav",.10,1};
	soundLandCrash[]={"\DHI_FordCV\sounds\crash.wav",.10,1};

	selectionBrakeLights="brzdove svetlo";
	selectionBackLights="zadni svetlo";
//		
//		HIDDEN SELECTION
//		Inherient to all police vehicles
//		Includes extra slots for extra parts
//		NOTE:  No door lights since these would have been disable with installation of police package.
	hiddenSelections[] = 
	{
		"Backuplight",

//......................  1     2     3     4     5     6     7     8
		"LB1","LB2","LB3","LB4","LB5","LB6","LB7","LB8",

//......................  9     10    11    12   13     14    15    16
		"DA1","DA2","DA3","DA4","DA5","DA6","DA7","DA8",

//......................  17    18   19     20    21    22    NOTE DL5 and DL6 are for slicktop
		"DL1","DL2","DL3","DL4","DL5","DL6",

//......................   23       24       25
		"MDTPG1","MDTPG2","MDTPG3",

//......................  26     27     28     29     30     31     32     33     34
		"SPD1","SPD2","SPD3","SPD4","SPD5","SPD6","SPD7","SPD8","SPD9",

//...................... 35     36       37         38          39
		"k9","METRO","hubcaps","","decklights","pushbumperguards","mdtlights"
	};

	class Exhausts
	{
		class exhaust1
		{
			position = "vyfuk start";
			direction = "vyfuk konec";
			effect ="ExhaustsEffect";

		};
		class exhaust2:exhaust1
		{
			position = "exhaust2start";
			direction = "exhaust2end";

		};
	};

	dammageHalf[]=
	{

		"\DHI_FordCv\windows1_ca.paa","\DHI_FordCv\windowsB_ca.paa",
		"\DHI_FordCv\windows_ca.paa","\DHI_FordCv\windowsB_ca.paa",
		"\DHI_FordCv\body_gpd.pac","\DHI_FordCV\body_gpd_B.pac"

	};
	dammageFull[]=
	{
		"\DHI_FordCv\windows1_ca.paa","\DHI_FordCv\windowsC_ca.paa",
		"\DHI_FordCv\windows_ca.paa","\DHI_FordCv\windowsC_ca.paa",
		"\DHI_FordCv\body_gpd.pac","\DHI_FordCV\body_gpd_B.pac"
	};

	class Library {libTextDesc = "Ford Crown Victoria P71 Police Interceptor with third party installation of police gear, including radio console and MDT, speed radar, digital video camera, partition cage, K9 kettle, light bar, directional arrow, deck and dash lights, push bumper.  This car to be used as base.";};

	class Reflectors
	{
		class Left
		{
			color[]={0.900000,0.800000,0.800000,1.000000};
			ambient[]={0.100000,0.100000,0.100000,1.000000};
			position="HDlightstart1";
			direction="HDlightdir1";
			hitpoint="HDlightstart1";
			selection="HDlightstart1";
			size=0.500000;
			brightness=0.500000;
		};
		class Right
		{
			color[]={0.900000,0.800000,0.800000,1.000000};
			ambient[]={0.100000,0.100000,0.100000,1.000000};
			position="HDlightstart2";
			direction="HDlightdir2";
			hitpoint="HDlightstart2";
			selection="HDlightstart2";
			size=0.500000;
			brightness=0.500000;
		};
	};
	class MarkerLights  
	{

		class taillightL  
		{
			name = "taillightL";
			color[] = {1.000000,0.100000,0.100000,1 };
			ambient[] = {0.100000,0.010000,0.010000,1 };
			brightness = 0.004000;
			blinking = "false";
		};
		class taillightr  
		{
			name = "taillightr";
			color[] = {1.000000,0.100000,0.100000,1 };
			ambient[] = {0.100000,0.010000,0.010000,1 };
			brightness = 0.004000;
			blinking = "false";
		};
//			class headlightL  
//			{
//				name = "hdlightstart1";
//				color[] = {0.100000,0.100000,0.100000,1 };
//				ambient[] = {0.100000,0.010000,0.010000,1 };
//				brightness = 0.004000;
//				blinking = "false";
//			};
//			class headlightr  
//			{
//				name = "hdlightstart2";
//				color[] = {0.000000,0.000000,0.000000,1 };
//				ambient[] = {0.100000,0.010000,0.010000,1 };
//				brightness = 0.004000;
//				blinking = "false";
//			};
	};

	class Damage
	{
		tex[] = {};
		mat[] = 
		{

			"DHI_FordCV\effects\bottom.rvmat",
			"DHI_FordCV\effects\bottom.rvmat",
			"DHI_FordCV\effects\bottom_destruct.rvmat",
			"DHI_FordCV\effects\bodynt.rvmat",
			"DHI_FordCV\effects\bodynt.rvmat",
			"DHI_FordCV\effects\bodynt_destruct.rvmat",
			"DHI_FordCV\effects\interior.rvmat",
			"DHI_FordCV\effects\interior.rvmat",
			"DHI_FordCV\effects\interior_destruct.rvmat",
			"DHI_FordCV\effects\poeq2.rvmat",
			"DHI_FordCV\effects\poeq2.rvmat",
			"DHI_FordCV\effects\poeq2_destruct.rvmat",
			"DHI_FordCV\effects\poeq1.rvmat",
			"DHI_FordCV\effects\poeq1.rvmat",
			"DHI_FordCV\effects\poeq1_destruct.rvmat",
			"DHI_FordCV\effects\lightbars.rvmat",
			"DHI_FordCV\effects\lightbars.rvmat",
			"DHI_FordCV\effects\lightbars_destruct.rvmat"
		};
	};
	class AnimationSources: AnimationSources
	{
		class  Zeroanimation
		{
			source = "user";
			animPeriod = 0;
			initPhase=0;
		};
		class  OneSecondAnim
		{
			source = "user";
			animPeriod = 1;
			initPhase=0;
		};
		class  FiveSecondAnim
		{
			source = "user";
			animPeriod = 5;
			initPhase=0;
		};
	};

	class UserActions
	{
//			NOTE: DOORLIGHTS DISABLED FOR POLICE INTERCEPTOR PACKAGE
		class Opendoor1
		{
			displayName ="Open Driver Door";
			position = "pos_door1";
			radius =1;
			onlyForplayer= false;
			condition = "this animationPhase ""ani_door1""<0.5 && speed this < 10";
			statement = "this  animate [""ani_door1"", 1], this say ""fordcvdooropen"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class closedoor1
		{
			displayName="Close Driver Door";
			position="pos_door1";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_door1""==1";
			statement="this animate [""ani_door1"", 0], this say ""fordcvdoorclose"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class Opendoor2
		{
			displayName ="Open Rear Door";
			position = "pos_door2";
			radius =1;
			onlyForplayer= false;
			condition = "this animationPhase ""ani_door2""<0.5 && speed this < 10";
			statement = "this  animate [""ani_door2"", 1], this say ""fordcvdooropen"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class closedoor2
		{
			displayName="Close Rear Door";
			position="pos_door2";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_door2""==1";
			statement="this animate [""ani_door2"", 0], this say ""fordcvdoorclose"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class Opendoor3
		{
			displayName ="Open Front Door";
			position = "pos_door3";
			radius =1;
			onlyForplayer= false;
			condition = "this animationPhase ""ani_door3""<0.5 && speed this < 10";
			statement = "this  animate [""ani_door3"", 1], this say ""fordcvdooropen"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class closedoor3
		{
			displayName="Close Front Door";
			position="pos_door3";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_door3""==1";
			statement="this animate [""ani_door3"", 0], this say ""fordcvdoorclose"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class Opendoor4
		{
			displayName ="Open Rear Door";
			position = "pos_door4";
			radius =1;
			onlyForplayer= false;
			condition = "this animationPhase ""ani_door4""<0.5 && speed this < 10";
			statement = "this  animate [""ani_door4"", 1], this say ""fordcvdooropen"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class closedoor4
		{
			displayName="Close Rear Door";
			position="pos_door4";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_door4""==1";
			statement="this animate [""ani_door4"", 0], this say ""fordcvdoorclose"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class opentrunk
		{
			displayName="Open Trunk";
			position="pos_trunk";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_trunk""<0.5";
			statement="this animate [""ani_trunk"", 1]";
		};
		class closetrunk
		{
			displayName="Close Trunk";
			position="pos_trunk";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_trunk""==1";
			statement="this animate [""ani_trunk"", 0], this say ""fordcvdoorclose""";
		};
//			START POLICE ACTION OPTIONS
//			TO DISABLE LATER???????
		class sirenon
		{
			displayName="Siren on";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren""<0.5";
			statement="this animate [""ani_siren"", 1], this exec ""\DHI_FordCV\scripts\whelenlightbar.sqs"", this exec ""\DHI_FordCV\scripts\whelensiren.sqs"", this exec ""\DHI_FordCV\scripts\decklightsaux.sqs"", this exec ""\DHI_FordCV\scripts\decklights.sqs""";
		};
		class sirenoff
		{
			displayName="Siren off";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren"">.8";
			statement="this animate [""ani_siren"", 0.5]";
		};
		class sirentoggleon
		{
			displayName="Toggle Siren";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren""==1";
			statement="this animate [""ani_siren"", 0.9], this exec ""\dhi_fordcv\scripts\whelensirentoggle.sqs""";
		};
		class sirentoggleoff
		{
			displayName="Toggle Siren";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren""==0.9";
			statement="this animate [""ani_siren"", 1],this exec ""\dhi_fordcv\scripts\whelensiren.sqs""";
		};
		class flashersoff
		{
			displayName="Lightbar off";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren""==0.5";
			statement="this animate [""ani_siren"", 0]";
		};
		class flasherson
		{
			displayName="Lightbar on / Take Down";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren""<0.4";
			statement="this animate [""ani_siren"", 0.5], this say ""takedown"", this exec ""\DHI_FordCV\scripts\whelenlightbar.sqs""";
		};
		class directright
		{
			displayName="Directional Right";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_direct""<0.4";
			statement="this animate [""ani_direct"", 0.5], this exec ""\DHI_FordCV\scripts\directionalarrow.sqs""";
		};
		class directleft
		{
			displayName="Directional Left";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_direct""<0.4";
			statement="this animate [""ani_direct"", 1], this exec ""\DHI_FordCV\scripts\directionalarrow.sqs""";
		};
		class Directoff
		{
			displayName="Directional off";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_direct"">0.3";
			statement="this animate [""ani_direct"", 0]";
		};
		class swivelmdtright
		{
			displayName="Swivel MDT Right";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_mdt""<0.5";
			statement="this animate [""ani_mdt"", 1]";
		};
		class swivelmdtleft
		{
			displayName="Swivel MDT Left";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_mdt""==1";
			statement="this animate [""ani_mdt"", 0]";
		};
	};
	class eventhandlers  
	{
		init = "_this exec ""\DHI_FordCV\scripts\set.sqs"";";
		engine = "_this exec ""\DHI_FordCV\scripts\backuplight.sqs"", _this exec ""\DHI_FordCV\scripts\checkenginelight.sqs"",_this exec ""\DHI_FordCV\scripts\fuellight.sqs"",_this exec ""\DHI_FordCV\scripts\gauges.sqs"";";
	};
};
class dhi_cvpi_p71_gpd_slicktop: dhi_cvpi_p71_gpd_patrol
{

	scope=public;

	vehicleClass="Americas_vehicles";
	displayName="GPD P71 Slicktop";
	picture="\DHI_FordCV\icons\P71gpd2.pac";
	icon="\DHI_FordCV\icons\fordcv.pac";
	model="\DHI_FordCV\dhi_cvpi_p71_gpd_patrol";
	accuracy=6.90;

	crew="dhi_gpd_sergeant";
	side=1;
	type=1;
	typicalCargo[]={};
	cargoIsCoDriver[] = {1,0 };
	weapons[]={"DHI_FordCV_horn2"};
	magazines[] = {};
	unloadInCombat = true;
	class TransportWeapons{};
	transportSoldier=3;
	transportMaxMagazines=0;
	transportMaxWeapons=0;
	viewCargoShadow = true;


//		
//		HIDDEN SELECTION
//		Inherient to all police vehicles
//		Includes extra slots for extra parts
//		NOTE:  No door lights since these would have been disable with installation of police package.
	hiddenSelections[] = 
	{
		"Backuplight",

//......................  1     2     3     4     5     6     7     8
		"LB1","LB2","LB3","LB4","LB5","LB6","LB7","LB8",

//......................  9     10    11    12   13     14    15    16
		"DA1","DA2","DA3","DA4","DA5","DA6","DA7","DA8",

//......................  17    18   19     20    21    22    NOTE DL5 and DL6 are for slicktop
		"DL1","DL2","DL3","DL4","DL5","DL6",

//......................   23       24       25
		"MDTPG1","MDTPG2","MDTPG3",

//......................  26     27     28     29     30     31     32     33     34
		"SPD1","SPD2","SPD3","SPD4","SPD5","SPD6","SPD7","SPD8","SPD9",

//...................... 35     36       37         38          39
		"k9","METRO","hubcaps","","lightbar","pushbumperguards"
	};


	class Library {libTextDesc = "Ford Crown Victoria P71 Police Interceptor with third party installation of police gear, including radio console and MDT, speed radar, digital video camera, partition cage, K9 kettle, light bar, directional arrow, deck and dash lights, push bumper.  This car to be used as base.";};



	class UserActions
	{
//			NOTE: DOORLIGHTS DISABLED FOR POLICE INTERCEPTOR PACKAGE
		class Opendoor1
		{
			displayName ="Open Driver Door";
			position = "pos_door1";
			radius =1;
			onlyForplayer= false;
			condition = "this animationPhase ""ani_door1""<0.5 && speed this < 5";
			statement = "this  animate [""ani_door1"", 1], this say ""fordcvdooropen"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class closedoor1
		{
			displayName="Close Driver Door";
			position="pos_door1";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_door1""==1";
			statement="this animate [""ani_door1"", 0], this say ""fordcvdoorclose"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class Opendoor2
		{
			displayName ="Open Rear Door";
			position = "pos_door2";
			radius =1;
			onlyForplayer= false;
			condition = "this animationPhase ""ani_door2""<0.5 && speed this < 5";
			statement = "this  animate [""ani_door2"", 1], this say ""fordcvdooropen"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class closedoor2
		{
			displayName="Close Rear Door";
			position="pos_door2";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_door2""==1";
			statement="this animate [""ani_door2"", 0], this say ""fordcvdoorclose"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class Opendoor3
		{
			displayName ="Open Front Door";
			position = "pos_door3";
			radius =1;
			onlyForplayer= false;
			condition = "this animationPhase ""ani_door3""<0.5 && speed this < 5";
			statement = "this  animate [""ani_door3"", 1], this say ""fordcvdooropen"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class closedoor3
		{
			displayName="Close Front Door";
			position="pos_door3";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_door3""==1";
			statement="this animate [""ani_door3"", 0], this say ""fordcvdoorclose"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class Opendoor4
		{
			displayName ="Open Rear Door";
			position = "pos_door4";
			radius =1;
			onlyForplayer= false;
			condition = "this animationPhase ""ani_door4""<0.5 && speed this < 5";
			statement = "this  animate [""ani_door4"", 1], this say ""fordcvdooropen"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class closedoor4
		{
			displayName="Close Rear Door";
			position="pos_door4";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_door4""==1";
			statement="this animate [""ani_door4"", 0], this say ""fordcvdoorclose"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class opentrunk
		{
			displayName="Open Trunk";
			position="pos_trunk";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_trunk""<0.5";
			statement="this animate [""ani_trunk"", 1]";
		};
		class closetrunk
		{
			displayName="Close Trunk";
			position="pos_trunk";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_trunk""==1";
			statement="this animate [""ani_trunk"", 0], this say ""fordcvdoorclose""";
		};
//			START POLICE ACTION OPTIONS
//			TO DISABLE LATER???????
		class sirenon
		{
			displayName="Siren on";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren""<0.5";
			statement="this animate [""ani_siren"", 1], this exec ""\DHI_FordCV\scripts\whelensiren.sqs"", this exec ""\DHI_FordCV\scripts\decklightsaux.sqs"", this exec ""\DHI_FordCV\scripts\decklightsaux2.sqs"", this exec ""\DHI_FordCV\scripts\decklights.sqs""";
		};
		class sirenoff
		{
			displayName="Siren off";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren"">.8";
			statement="this animate [""ani_siren"", 0.5]";
		};
		class sirentoggleon
		{
			displayName="Toggle Siren";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren""==1";
			statement="this animate [""ani_siren"", 0.9], this exec ""\dhi_fordcv\scripts\whelensirentoggle.sqs""";
		};
		class sirentoggleoff
		{
			displayName="Toggle Siren";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren""==0.9";
			statement="this animate [""ani_siren"", 1],this exec ""\dhi_fordcv\scripts\whelensiren.sqs""";
		};
		class flasherson
		{
			displayName="Lightbar on";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren""<0.4";
			statement="this animate [""ani_siren"", 0.5], this say ""takedown"", this exec ""\DHI_FordCV\scripts\decklights.sqs"", this exec ""\DHI_FordCV\scripts\decklightsaux.sqs"", this exec ""\DHI_FordCV\scripts\decklightsaux2.sqs""";
		};
		class flashersoff
		{
			displayName="Lightbar off";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren""==0.5";
			statement="this animate [""ani_siren"", 0]";
		};
		class directright
		{
			displayName="Directional Right";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_direct""<0.4";
			statement="this animate [""ani_direct"", 0.5], this exec ""\DHI_FordCV\scripts\directionalarrow.sqs""";
		};
		class directleft
		{
			displayName="Directional Left";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_direct""<0.4";
			statement="this animate [""ani_direct"", 1], this exec ""\DHI_FordCV\scripts\directionalarrow.sqs""";
		};
		class Directoff
		{
			displayName="Directional off";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_direct"">0.3";
			statement="this animate [""ani_direct"", 0]";
		};
		class swivelmdtright
		{
			displayName="Swivel MDT Right";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_mdt""<0.5";
			statement="this animate [""ani_mdt"", 1]";
		};
		class swivelmdtleft
		{
			displayName="Swivel MDT Left";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_mdt""==1";
			statement="this animate [""ani_mdt"", 0]";
		};
	};
};
class dhi_cvpi_p71_gpd_stealth: dhi_cvpi_p71_gpd_patrol
{

	scope=public;

	vehicleClass="Americas_vehicles";
	displayName="GPD P71 Stealth TEC";
	picture="\DHI_FordCV\icons\P71w.pac";
	icon="\DHI_FordCV\icons\fordcv.pac";
	model="\DHI_FordCV\dhi_cvpi_p71_gpd_stealth";
	accuracy=6.90;

//		HIDDEN SELECTION
//		Inherient to all police vehicles
//		Includes extra slots for extra parts
//		NOTE:  No door lights since these would have been disable with installation of police package.
	hiddenSelections[] = 
	{
		"Backuplight",

//......................  1     2     3     4     5     6     7     8
		"LB1","LB2","LB3","LB4","LB5","LB6","LB7","LB8",

//......................  9     10    11    12   13     14    15    16
		"DA1","DA2","DA3","DA4","DA5","DA6","DA7","DA8",

//......................  17    18   19     20    21    22    NOTE DL5 and DL6 are for slicktop
		"DL1","DL2","DL3","DL4","DL5","DL6",

//......................   23       24       25
		"MDTPG1","MDTPG2","MDTPG3",

//......................  26     27     28     29     30     31     32     33     34
		"SPD1","SPD2","SPD3","SPD4","SPD5","SPD6","SPD7","SPD8","SPD9",

//...................... 35     36       37         38          39
		"k9","METRO","hubcaps","","lightbar","pushbumperguards"
	};


	class Library {libTextDesc = "Ford Crown Victoria P71 Police Interceptor with third party installation of police gear, including radio console and MDT, speed radar, digital video camera, partition cage, K9 kettle, light bar, directional arrow, deck and dash lights, push bumper.  This car to be used as base.";};



	class UserActions
	{
//			NOTE: DOORLIGHTS DISABLED FOR POLICE INTERCEPTOR PACKAGE
		class Opendoor1
		{
			displayName ="Open Driver Door";
			position = "pos_door1";
			radius =1;
			onlyForplayer= false;
			condition = "this animationPhase ""ani_door1""<0.5 && speed this < 5";
			statement = "this  animate [""ani_door1"", 1], this say ""fordcvdooropen"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class closedoor1
		{
			displayName="Close Driver Door";
			position="pos_door1";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_door1""==1";
			statement="this animate [""ani_door1"", 0], this say ""fordcvdoorclose"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class Opendoor2
		{
			displayName ="Open Rear Door";
			position = "pos_door2";
			radius =1;
			onlyForplayer= false;
			condition = "this animationPhase ""ani_door2""<0.5 && speed this < 5";
			statement = "this  animate [""ani_door2"", 1], this say ""fordcvdooropen"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class closedoor2
		{
			displayName="Close Rear Door";
			position="pos_door2";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_door2""==1";
			statement="this animate [""ani_door2"", 0], this say ""fordcvdoorclose"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class Opendoor3
		{
			displayName ="Open Front Door";
			position = "pos_door3";
			radius =1;
			onlyForplayer= false;
			condition = "this animationPhase ""ani_door3""<0.5 && speed this < 5";
			statement = "this  animate [""ani_door3"", 1], this say ""fordcvdooropen"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class closedoor3
		{
			displayName="Close Front Door";
			position="pos_door3";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_door3""==1";
			statement="this animate [""ani_door3"", 0], this say ""fordcvdoorclose"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class Opendoor4
		{
			displayName ="Open Rear Door";
			position = "pos_door4";
			radius =1;
			onlyForplayer= false;
			condition = "this animationPhase ""ani_door4""<0.5 && speed this < 5";
			statement = "this  animate [""ani_door4"", 1], this say ""fordcvdooropen"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class closedoor4
		{
			displayName="Close Rear Door";
			position="pos_door4";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_door4""==1";
			statement="this animate [""ani_door4"", 0], this say ""fordcvdoorclose"", this exec ""\DHI_FordCV\scripts\doorind.sqs""";
		};
		class opentrunk
		{
			displayName="Open Trunk";
			position="pos_trunk";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_trunk""<0.5";
			statement="this animate [""ani_trunk"", 1]";
		};
		class closetrunk
		{
			displayName="Close Trunk";
			position="pos_trunk";
			radius=2;
			onlyForplayer= false;
			condition="this animationPhase ""ani_trunk""==1";
			statement="this animate [""ani_trunk"", 0], this say ""fordcvdoorclose""";
		};
//			START POLICE ACTION OPTIONS
//			TO DISABLE LATER???????
		class sirenon
		{
			displayName="Siren on";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren""<0.5";
			statement="this animate [""ani_siren"", 1], this exec ""\DHI_FordCV\scripts\whelensiren.sqs"", this exec ""\DHI_FordCV\scripts\decklightsaux.sqs"", this exec ""\DHI_FordCV\scripts\decklightsaux2.sqs"", this exec ""\DHI_FordCV\scripts\decklights.sqs""";
		};
		class sirenoff
		{
			displayName="Siren off";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren"">.8";
			statement="this animate [""ani_siren"", 0.5]";
		};
		class sirentoggleon
		{
			displayName="Toggle Siren";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren""==1";
			statement="this animate [""ani_siren"", 0.9], this exec ""\dhi_fordcv\scripts\whelensirentoggle.sqs""";
		};
		class sirentoggleoff
		{
			displayName="Toggle Siren";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren""==0.9";
			statement="this animate [""ani_siren"", 1],this exec ""\dhi_fordcv\scripts\whelensiren.sqs""";
		};
		class flasherson
		{
			displayName="Lightbar on";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren""<0.4";
			statement="this animate [""ani_siren"", 0.5], this say ""takedown"", this exec ""\DHI_FordCV\scripts\decklights.sqs"", this exec ""\DHI_FordCV\scripts\decklightsaux.sqs"", this exec ""\DHI_FordCV\scripts\decklightsaux2.sqs""";
		};
		class flashersoff
		{
			displayName="Lightbar off";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_siren""==0.5";
			statement="this animate [""ani_siren"", 0]";
		};
		class directright
		{
			displayName="Directional Right";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_direct""<0.4";
			statement="this animate [""ani_direct"", 0.5], this exec ""\DHI_FordCV\scripts\directionalarrow.sqs""";
		};
		class directleft
		{
			displayName="Directional Left";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_direct""<0.4";
			statement="this animate [""ani_direct"", 1], this exec ""\DHI_FordCV\scripts\directionalarrow.sqs""";
		};
		class Directoff
		{
			displayName="Directional off";
			position="pos_switches";
			radius=1;
			onlyForplayer= false;
			condition="this animationPhase ""ani_direct"">0.3";
			statement="this animate [""ani_direct"", 0]";
		};
	};
};
class dhi_cvpi_p71_LAPD_patrol: Car_sedan
{

	scope=public;

	vehicleClass="SG_police";
	displayName="LAPD Patrol";
	picture="\DHI_FordCV\icons\P71gpd1.pac";
	icon="\DHI_FordCV\icons\fordcv.pac";
	model="\DHI_FordCV\dhi_cvpi_p71_LAPD_patrol";
	accuracy=6.90;

	crew="SG_Police_3";
	side=1;
	type=1;
	typicalCargo[]={};
	cargoIsCoDriver[] = {1,0 };
	weapons[]={"DHI_FordCV_horn2"};
	magazines[] = {};
	unloadInCombat = true;
	class TransportWeapons{};
	transportSoldier=3;
	transportMaxMagazines=0;
	transportMaxWeapons=0;
	viewCargoShadow = true;

	maxSpeed=209;
	turnCoef=1.9500000;
  		terrainCoef=3.550000;
               brakeDistance=20.00;
	cost=30000;
	fuelCapacity=35;

	armorWheels=0.07;
	armor=18; // total armor
	armorStructural=8.0; // very low structural damage
	armorEngine=2.2;

               soundEngine[]={"\DHI_FordCV\sounds\engine.wav",.10,1};  
               soundGetIn[]={"\DHI_FordCV\sounds\getin.wav",.10,1};
	soundGetOut[]={"\DHI_FordCV\sounds\getout.wav",.10,1};
               soundGear[]={"\DHI_FordCV\sounds\gear.wav",.10,1}; 
	soundCrash[]={"\DHI_FordCV\sounds\crash.wav",.10,1};
	soundLandCrash[]={"\DHI_FordCV\sounds\crash.wav",.10,1};

	selectionBrakeLights="brzdove svetlo";
	selectionBackLights="zadni svetlo";
//		
//		HIDDEN SELECTION
//		Inherient to all police vehicles
//		Includes extra slots for extra parts
//		NOTE:  No door lights since these would have been disable with installation of police package.
	hiddenSelections[] = 
	{
		"Backuplight",

//......................  1     2     3     4     5     6     7     8
		"LB1","LB2","LB3","LB4","LB5","LB6","LB7","LB8",

//......................  9     10    11    12   13     14    15    16
		"DA1","DA2","DA3","DA4","DA5","DA6","DA7","DA8",

//......................  17    18   19     20    21    22    NOTE DL5 and DL6 are for slicktop
		"DL1","DL2","DL3","DL4","DL5","DL6",

//......................   23       24       25
		"MDTPG1","MDTPG2","MDTPG3",

//......................  26     27     28     29     30     31     32     33     34
		"SPD1","SPD2","SPD3","SPD4","SPD5","SPD6","SPD7","SPD8","SPD9",

//...................... 35     36       37         38          39
		"k9","METRO","hubcaps"
	};

	class Exhausts
	{
		class exhaust1
		{
			position = "vyfuk start";
			direction = "vyfuk konec";
			effect ="ExhaustsEffect";

		};
		class exhaust2:exhaust1
		{
			position = "exhaust2start";
			direction = "exhaust2end";

		};
	};

	dammageHalf[]=
	{

		"\DHI_FordCv\windows1_ca.paa","\DHI_FordCv\windowsB_ca.paa",
		"\DHI_FordCv\windows_ca.paa","\DHI_FordCv\windowsB_ca.paa",
		"\DHI_FordCv\body_lapd.pac","\DHI_FordCV\body_lapd_B.pac"

	};
	dammageFull[]=
	{
		"\DHI_FordCv\windows1_ca.paa","\DHI_FordCv\windowsC_ca.paa",
		"\DHI_FordCv\windows_ca.paa","\DHI_FordCv\windowsC_ca.paa",
		"\DHI_FordCv\body_lapd.pac","\DHI_FordCV\body_lapd_B.pac"
	};

	class Library {libTextDesc = "Ford Crown Victoria P71 Police Interceptor with third party installation of police gear, including radio console and MDT, speed radar, digital video camera, partition cage, K9 kettle, light bar, directional arrow, deck and dash lights, push bumper.  This car to be used as base.";};

	class Reflectors
	{
		class Left
		{
			color[]={0.900000,0.800000,0.800000,1.000000};
			ambient[]={0.100000,0.100000,0.100000,1.000000};
			position="HDlightstart1";
			direction="HDlightdir1";
			hitpoint="HDlightstart1";
			selection="HDlightstart1";
			size=0.500000;
			brightness=0.500000;
		};
		class Right
		{
			color[]={0.900000,0.800000,0.800000,1.000000};
			ambient[]={0.100000,0.100000,0.100000,1.000000};
			position="HDlightstart2";
			direction="HDlightdir2";
			hitpoint="HDlightstart2";
			selection="HDlightstart2";
			size=0.500000;
			brightness=0.500000;
		};
	};
	class MarkerLights  
	{

		class taillightL  
		{
			name = "taillightL";
			color[] = {1.000000,0.100000,0.100000,1 };
			ambient[] = {0.100000,0.010000,0.010000,1 };
			brightness = 0.004000;
			blinking = "false";
		};
		class taillightr  
		{
			name = "taillightr";
			color[] = {1.000000,0.100000,0.100000,1 };
			ambient[] = {0.100000,0.010000,0.010000,1 };
			brightness = 0.004000;
			blinking = "false";
		};
//			class headlightL  
//			{
//				name = "hdlightstart1";
//				color[] = {0.100000,0.100000,0.100000,1 };
//				ambient[] = {0.100000,0.010000,0.010000,1 };
//				brightness = 0.004000;
//				blinking = "false";
//			};
//			class headlightr  
//			{
//				name = "hdlightstart2";
//				color[] = {0.000000,0.000000,0.000000,1 };
//				ambient[] = {0.100000,0.010000,0.010000,1 };
//				brightness = 0.004000;
//				blinking = "false";
//			};
	};

	class Damage
	{
		tex[] = {};
		mat[] = 
		{


How do I know what to put down to get a specific vehicle to show up in the shop?

Edited by BloodxGusher

Share this post


Link to post
Share on other sites

...wall of code...[b][color="Red"],[/color][/b]
["dhi_cvpi_p71",["Fahrzeug", "car"],["dhi_cvpi_p71", "Crown Victoria P71 Wht"],[20000, 11000], [1, "car", "sobr_training"], [150, [1,0,0,3]], "NewCar" call ISSE_Cfg_Vehicle_GetName, "NewCar" call ISSE_Cfg_Vehicle_GetDesc, [["stahl", 10],["ebauteile", 1],["glas", 2],["plastik", 2],["erdoel", 5]] ]
];

_vehicleshop1   = [
...some cars and stuff...[b][color="Red"],[/color][/b] dhi_cvpi_p71
];

requiredAddons and the item array use different class.

requiredAddons takes the CfgPatches class while the items need the CfgVehicles one.

Share this post


Link to post
Share on other sites
...wall of code...[b][color="Red"],[/color][/b]
["dhi_cvpi_p71",["Fahrzeug", "car"],["dhi_cvpi_p71", "Crown Victoria P71 Wht"],[20000, 11000], [1, "car", "sobr_training"], [150, [1,0,0,3]], "NewCar" call ISSE_Cfg_Vehicle_GetName, "NewCar" call ISSE_Cfg_Vehicle_GetDesc, [["stahl", 10],["ebauteile", 1],["glas", 2],["plastik", 2],["erdoel", 5]] ]
];

_vehicleshop1   = [
...some cars and stuff...[b][color="Red"],[/color][/b] dhi_cvpi_p71
];

requiredAddons and the item array use different class.

requiredAddons takes the CfgPatches class while the items need the CfgVehicles one.

Perfect. Just wanted to conform this. :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×