Jump to content
Sign in to follow this  
taz9123

Addon Editing - Vehicle Light Scripts

Recommended Posts

Hellow, I have been converting a addon vehicle for Arma 2. I have most of the vehicle done, I am stuck on a few things that I cant seem to find on any forums. First thing is headlights. I finaly got my light textures to turn on via RVmats etc. Now no matter how I name the selections in the p3d I cant get the lights to turn off and only work when they should. I am looking for someone who can help with this. I simply want to know how to script Brake lights, headlights, driving/parking lights, and reverse light. Please help, thank you!

Share this post


Link to post
Share on other sites

Download the sample files. rename the selections like there. Give them a grafic and a working rvmat (try it with the bis example shinnig rvmat). It#s not 100%, but it works.

Then you can switch on the light with you difined key (standard is "L") Breaklight coming up, if you hit your button to drive backwards.

At the beginning, test your model at night. So you see, if the selection working or not.

You have do define you model in the car class. Then you have to make sure, that the selection is called in your model.cfg. At the beginning, use the example model.cfg. Copy that file and create your own class there. You DONT have to create a animationsource in your config.cpp, because it's a part of car-class.

I hope, you can understand what i mean.

Share this post


Link to post
Share on other sites

Yeah still having trouble with it. Got a list of things I cant get to work and this is seems simple yet I cant get it to work. Here is my modelcfg and config files

Model.cfg

class cfgSkeletons
{	
class Vehicle;
class Car: Vehicle
{
};
class Scion: Car
{
	SkeletonBones[]=
	{
		"steer_wheel",
		"",
		"wheel_1_1_damper_land",
		"",
		"wheel_1_1_damper",
		"wheel_1_1_damper_land",
		"wheel_1_1_steering",
		"wheel_1_1_damper",
		"wheel_1_1",
		"wheel_1_1_steering",
		"wheel_1_1_unhide",
		"wheel_1_1",
		"wheel_1_1_hide",
		"wheel_1_1",
		"wheel_1_2_damper_land",
		"",
		"wheel_1_2_damper",
		"wheel_1_2_damper_land",
		"wheel_1_2_steering",
		"wheel_1_2_damper",
		"wheel_1_2",
		"wheel_1_2_steering",
		"wheel_1_2_unhide",
		"wheel_1_2",
		"wheel_1_2_hide",
		"wheel_1_2",
		"wheel_2_1_damper_land",
		"",
		"wheel_2_1_damper",
		"wheel_2_1_damper_land",
		"wheel_2_1_steering",
		"wheel_2_1_damper",
		"wheel_2_1",
		"wheel_2_1_steering",
		"wheel_2_1_unhide",
		"wheel_2_1",
		"wheel_2_1_hide",
		"wheel_2_1",
		"wheel_2_2_damper_land",
		"",
		"wheel_2_2_damper",
		"wheel_2_2_damper_land",
		"wheel_2_2_steering",
		"wheel_2_2_damper",
		"wheel_2_2",
		"wheel_2_2_steering",
		"wheel_2_2_unhide",
		"wheel_2_2",
		"wheel_2_2_hide",
		"wheel_2_2",
		"glass1",
		"damagehide",
		"glass2",
		"damagehide",
		"glass3",
		"damagehide",
		"glass4",
		"damagehide",
		"otocvez",
		"",
		"otochlaven",
		"otocvez",
		"damagehlaven",
		"otochlaven",
		"damagevez",
		"otocvez",
		"damagehide",
		"",
		"ukaz_rychlo",
		"",
		"ukaz_rychlo2",
		"",
		"ukaz_rpm",
		"",
		"mph",
		"",
		"rpm",
		"",
		"fuel",
		"",
		"fuel_1",
		"",
		"fuel_01",
		"",
		"fuel_2",
		"",
		"fuel_3",
		"",
		"prop_01",
		"",
		"prop_02",
		"",
		"prop_2",
		"",
		"prop_1",
		"",
		"watertemp",
		"",
		"oiltemp",
		"",
	};
};
};
class CfgModels
{
class Vehicle;
class Car: Vehicle
{
	sectionsInherit="Vehicle";
	skeletonName="Car";
	sections[]=
	{
		"ammo",
		"sklo predni p",
		"sklo predni l",
		"P svetlo",
		"L svetlo",
		"zadni svetlo",
		"brzdove svetlo",
		"spz",
		"karoserie",
		"motor",
		"zbran",
		"vez",
		"zbytek",
		"levy predni",
		"levy prostredni",
		"levy zadni",
		"pravy predni",
		"pravy prostredni",
		"pravy zadni",
		"clan",
		"clan_sign",
		"zasleh",
		"palivo"
	};
}
class Scion_FRS: Car
{
	sections[]=
	{
		"motor",
		"palivo",
		"light_1_1",
		"light_1_2",
		"light_brake",
		"light_back",
		"light_reverse",
	};
	class Animations
	{
		class damageHide
		{
			type="hide";
			source="damage";
			selection="damagehide";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			hideValue=1;
		};
		class damageHideVez
		{
			type="hide";
			source="damage";
			selection="otocvez";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			hideValue=1;
		};
		class damageHideHlaven
		{
			type="hide";
			source="damage";
			selection="otochlaven";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			hideValue=1;
		};
		class wheel_1_1_destruct
		{
			type="hide";
			source="HitLFWheel";
			selection="wheel_1_1_hide";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			hideValue=0.99000001;
		};
		class wheel_1_2_destruct
		{
			type="hide";
			source="HitRFWheel";
			selection="wheel_1_2_hide";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			hideValue=0.99000001;
		};
		class wheel_1_3_destruct
		{
			type="hide";
			source="HitLMWheel";
			selection="wheel_1_3_hide";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			hideValue=0.99000001;
		};
		class wheel_1_4_destruct
		{
			type="hide";
			source="HitLF2Wheel";
			selection="wheel_1_4_hide";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			hideValue=0.99000001;
		};
		class wheel_2_1_destruct
		{
			type="hide";
			source="HitLBWheel";
			selection="wheel_2_1_hide";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			hideValue=0.99000001;
		};
		class wheel_2_2_destruct
		{
			type="hide";
			source="HitRBWheel";
			selection="wheel_2_2_hide";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			hideValue=0.99000001;
		};
		class wheel_2_3_destruct
		{
			type="hide";
			source="HitRMWheel";
			selection="wheel_2_3_hide";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			hideValue=0.99000001;
		};
		class wheel_2_4_destruct
		{
			type="hide";
			source="HitRF2Wheel";
			selection="wheel_2_4_hide";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			hideValue=0.99000001;
		};
		class wheel_1_1_destruct_unhide
		{
			type="hide";
			source="HitLFWheel";
			selection="wheel_1_1_unhide";
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			hideValue=0.0099999998;
		};
		class wheel_1_2_destruct_unhide
		{
			type="hide";
			source="HitRFWheel";
			selection="wheel_1_2_unhide";
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			hideValue=0.0099999998;
		};
		class wheel_1_3_destruct_unhide
		{
			type="hide";
			source="HitLMWheel";
			selection="wheel_1_3_unhide";
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			hideValue=0.0099999998;
		};
		class wheel_1_4_destruct_unhide
		{
			type="hide";
			source="HitLF2Wheel";
			selection="wheel_1_4_unhide";
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			hideValue=0.0099999998;
		};
		class wheel_2_1_destruct_unhide
		{
			type="hide";
			source="HitLBWheel";
			selection="wheel_2_1_unhide";
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			hideValue=0.0099999998;
		};
		class wheel_2_2_destruct_unhide
		{
			type="hide";
			source="HitRBWheel";
			selection="wheel_2_2_unhide";
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			hideValue=0.0099999998;
		};
		class wheel_2_3_destruct_unhide
		{
			type="hide";
			source="HitRMWheel";
			selection="wheel_2_3_unhide";
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			hideValue=0.0099999998;
		};
		class wheel_2_4_destruct_unhide
		{
			type="hide";
			source="HitRF2Wheel";
			selection="wheel_2_4_unhide";
			minValue=-1;
			maxValue=0;
			minPhase=-1;
			maxPhase=0;
			hideValue=0.0099999998;
		};
		class wheel_1_4_Damage
		{
			type="translation";
			source="HitLF2Wheel";
			memory=1;
			animPeriod=0;
			selection="wheel_1_4_damper_land";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			offset0=0;
			offset1=0.2;
		};
		class wheel_2_4_Damage
		{
			type="translation";
			source="HitRF2Wheel";
			memory=1;
			animPeriod=0;
			selection="wheel_2_4_damper_land";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			offset0=0;
			offset1=0.2;
		};
		class wheel_1_4_Damper_Damage_BackAnim
		{
			type="translation";
			source="HitLF2Wheel";
			memory=1;
			animPeriod=0;
			selection="wheel_1_4_damper";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			offset0=0;
			offset1=-0.24000001;
		};
		class wheel_2_4_Damper_Damage_BackAnim
		{
			type="translation";
			source="HitRF2Wheel";
			memory=1;
			animPeriod=0;
			selection="wheel_2_4_damper";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			offset0=0;
			offset1=-0.24000001;
		};
		class Glass1_destruct
		{
			type="hide";
			source="HitGlass1";
			selection="glass1";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			hideValue=0.99000001;
		};
		class Glass2_destruct
		{
			type="hide";
			source="HitGlass2";
			selection="glass2";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			hideValue=0.99000001;
		};
		class Glass3_destruct
		{
			type="hide";
			source="HitGlass3";
			selection="glass3";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			hideValue=0.99000001;
		};
		class Glass4_destruct
		{
			type="hide";
			source="HitGlass4";
			selection="glass4";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			hideValue=0.99000001;
		};
		class Wheel_1_1
		{
			type="rotationX";
			source="wheel";
			memory=1;
			animPeriod=0;
			selection="wheel_1_1";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			angle0=0;
			angle1=-6.2831855;
		};
		class wheel_2_1
		{
			type="rotationX";
			source="wheel";
			memory=1;
			animPeriod=0;
			selection="wheel_2_1";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			angle0=0;
			angle1=-6.2831855;
		};
		class wheel_1_2
		{
			type="rotationX";
			source="wheel";
			memory=1;
			animPeriod=0;
			selection="wheel_1_2";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			angle0=0;
			angle1=-6.2831855;
		};
		class Wheel_2_2
		{
			type="rotationX";
			source="wheel";
			memory=1;
			animPeriod=0;
			selection="wheel_2_2";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			angle0=0;
			angle1=-6.2831855;
		};
		class Wheel_1_1_Damper
		{
			type="translationY";
			source="damper";
			memory=1;
			animPeriod=0;
			selection="wheel_1_1_damper_land";
			axis="";
			minValue=-1;
			maxValue=1;
			minPhase=-1;
			maxPhase=1;
			offset0=0;
			offset1=0;
		};
		class wheel_2_1_Damper
		{
			type="translationY";
			source="damper";
			memory=1;
			animPeriod=0;
			selection="wheel_2_1_damper_land";
			axis="";
			minValue=-1;
			maxValue=1;
			minPhase=-1;
			maxPhase=1;
			offset0=0;
			offset1=0;
		};
		class wheel_1_2_Damper
		{
			type="translationY";
			source="damper";
			memory=1;
			animPeriod=0;
			selection="wheel_1_2_damper_land";
			axis="";
			minValue=-1;
			maxValue=1;
			minPhase=-1;
			maxPhase=1;
			offset0=0;
			offset1=0;
		};
		class wheel_1_3_Damper
		{
			type="translationY";
			source="damper";
			memory=1;
			animPeriod=0;
			selection="wheel_1_3_damper_land";
			axis="";
			minValue=-1;
			maxValue=1;
			minPhase=-1;
			maxPhase=1;
			offset0=0;
			offset1=0;
		};
		class Wheel_2_2_Damper
		{
			type="translationY";
			source="damper";
			memory=1;
			animPeriod=0;
			selection="wheel_2_2_damper_land";
			axis="";
			minValue=-1;
			maxValue=1;
			minPhase=-1;
			maxPhase=1;
			offset0=0;
			offset1=0;
		};
		class Wheel_2_3_Damper
		{
			type="translationY";
			source="damper";
			memory=1;
			animPeriod=0;
			selection="wheel_2_3_damper_land";
			axis="";
			minValue=-1;
			maxValue=1;
			minPhase=-1;
			maxPhase=1;
			offset0=0;
			offset1=0;
		};
		class Wheel_1_4_Damper
		{
			type="translationY";
			source="damper";
			memory=1;
			animPeriod=0;
			selection="wheel_1_4_damper_land";
			axis="";
			minValue=-1;
			maxValue=1;
			minPhase=-1;
			maxPhase=1;
			offset0=0;
			offset1=0;
		};
		class Wheel_2_4_Damper
		{
			type="translationY";
			source="damper";
			memory=1;
			animPeriod=0;
			selection="wheel_2_4_damper_land";
			axis="";
			minValue=-1;
			maxValue=1;
			minPhase=-1;
			maxPhase=1;
			offset0=0;
			offset1=0;
		};
		class wheel_1_1_Damage
		{
			type="translation";
			source="HitLFWheel";
			memory=1;
			animPeriod=0;
			selection="wheel_1_1_flat_land";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			offset0=0;
			offset1=0.40000001;
		};
		class wheel_1_2_Damage
		{
			type="translation";
			source="HitLBWheel";
			memory=1;
			animPeriod=0;
			selection="wheel_1_2_flat_land";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			offset0=0;
			offset1=0.40000001;
		};
		class wheel_2_1_Damage
		{
			type="translation";
			source="HitRFWheel";
			memory=1;
			animPeriod=0;
			selection="wheel_2_1_flat_land";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			offset0=0;
			offset1=0.40000001;
		};
		class wheel_2_2_Damage
		{
			type="translation";
			source="HitRBWheel";
			memory=1;
			animPeriod=0;
			selection="wheel_2_2_flat_land";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			offset0=0;
			offset1=0.40000001;
		};
		class wheel_1_1_Damper_Damage_BackAnim
		{
			type="translation";
			source="HitLFWheel";
			memory=1;
			animPeriod=0;
			selection="wheel_1_1_damper";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			offset0=0;
			offset1=-0.40000001;
		};
		class wheel_1_2_Damper_Damage_BackAnim
		{
			type="translation";
			source="HitLBWheel";
			memory=1;
			animPeriod=0;
			selection="wheel_1_2_damper";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			offset0=0;
			offset1=-0.40000001;
		};
		class wheel_1_3_Damper_Damage_BackAnim
		{
			type="translation";
			source="HitLMWheel";
			memory=1;
			animPeriod=0;
			selection="wheel_1_3_damper";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			offset0=0;
			offset1=-0.40000001;
		};
		class wheel_2_1_Damper_Damage_BackAnim
		{
			type="translation";
			source="HitRFWheel";
			memory=1;
			animPeriod=0;
			selection="wheel_2_1_damper";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			offset0=0;
			offset1=-0.40000001;
		};
		class wheel_2_2_Damper_Damage_BackAnim
		{
			type="translation";
			source="HitRBWheel";
			memory=1;
			animPeriod=0;
			selection="wheel_2_2_damper";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			offset0=0;
			offset1=-0.40000001;
		};
		class wheel_2_3_Damper_Damage_BackAnim
		{
			type="translation";
			source="HitRMWheel";
			memory=1;
			animPeriod=0;
			selection="wheel_2_3_damper";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			offset0=0;
			offset1=-0.40000001;
		};
		class IndicatorSpeed
		{
			type="rotation";
			source="speed";
			memory=1;
			animPeriod=0;
			selection="mph";
			axis="";
			minValue=0;
			maxValue=66.900002;
			minPhase=0;
			maxPhase=66.900002;
			angle0=-0.052359998;
			angle1=4.5378561;
		};
		class IndicatorRPM
		{
			type="rotation";
			source="rpm";
			memory=1;
			animPeriod=0;
			selection="rpm";
			axis="";
			minValue=0;
			maxValue=1;
			minPhase=0;
			maxPhase=1;
			angle0=-0.10472;
			angle1=4.3633232;
		};
		class DrivingWheel
		{
			type="rotation";
			source="drivingWheel";
			memory=1;
			animPeriod=0;
			selection="steer_wheel";
			axis="steer_axis";
			minValue=-1;
			maxValue=1;
			minPhase=-1;
			maxPhase=1;
			angle0=4;
			angle1=-4;
		};
		class Steering_1_1
		{
			type="rotationY";
			source="drivingWheel";
			memory=1;
			animPeriod=0;
			selection="wheel_1_1_steering";
			axis="";
			minValue=-1.5707964;
			maxValue=1.5707964;
			minPhase=-1.5707964;
			maxPhase=1.5707964;
			angle0=1.0471981;
			angle1=-1.0471981;
		};
		class Steering_1_2
		{
			type="rotationY";
			source="drivingWheel";
			memory=1;
			animPeriod=0;
			selection="wheel_1_2_steering";
			axis="";
			minValue=-1.5707964;
			maxValue=1.5707964;
			minPhase=-1.5707964;
			maxPhase=1.5707964;
			angle0=1.0471981;
			angle1=-1.0471981;
		};
		class destruct_heigh_ppt
		{
			type="translation";
			source="damage";
			memory=1;
			animPeriod=0;
			selection="wheel_1_damper";
			axis="";
			minValue=0.99999899;
			maxValue=1;
			minPhase=0.99999899;
			maxPhase=1;
			offset0=0;
			offset1=-0.28;
		};
		class destruct_heigh_pdt
		{
			type="translation";
			source="damage";
			memory=1;
			animPeriod=0;
			selection="wheel_2_damper";
			axis="";
			minValue=0.99999899;
			maxValue=1;
			minPhase=0.99999899;
			maxPhase=1;
			offset0=0;
			offset1=-0.28;
		};
		class destruct_heigh_pprt
		{
			type="translation";
			source="damage";
			memory=1;
			animPeriod=0;
			selection="wheel_3_damper";
			axis="";
			minValue=0.99999899;
			maxValue=1;
			minPhase=0.99999899;
			maxPhase=1;
			offset0=0;
			offset1=-0.38;
		};
		class destruct_heigh_pzt
		{
			type="translation";
			source="damage";
			memory=1;
			animPeriod=0;
			selection="wheel_4_damper";
			axis="";
			minValue=0.99999899;
			maxValue=1;
			minPhase=0.99999899;
			maxPhase=1;
			offset0=0;
			offset1=-0.38;
		};
	};
};
class Scion_FRS_0: Scion_FRS
{
};
class Scion_FRS_1: Scion_FRS
{
};
class Scion_FRS_2: Scion_FRS
{
};
class Scion_FRS_3: Scion_FRS
{
};
class Scion_FRS_4: Scion_FRS
{
};
class Scion_FRS_5: Scion_FRS
{
};
class Scion_FRS_6: Scion_FRS
{
};
};

Config

#define private		0
#define protected		1
#define public		2

#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

enum {
STABILIZEDINAXISX = 1,
STABILIZEDINAXISY = 2,
STABILIZEDINAXESBOTH = 3,
STABILIZEDINAXESNONE = 0,
};

class CfgPatches {
class CAScion_FRS {
	units[] = {"Scion_FRS_0, Scion_FRS_1, Scion_FRS_2, Scion_FRS_3, Scion_FRS_4, Scion_FRS_5, Scion_FRS_6"};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"CAWheeled2", "CACharacters2", "CAWeapons"};
};
};

class CfgVehicles {
class All{};

class AllVehicles : All {};

class Land: AllVehicles {};

class LandVehicle : Land {};

class Car : LandVehicle {
	class AnimationSources;	// External class reference
	class HitPoints {
		class HitEngine {armor=0.4;material=60;name="motor";visual="motor";passThrough=1;};

		class HitGlass1 {armor=0.1;material=-1;name="glass1";visual="glass1";passThrough=0;};
		class HitGlass2 {armor=0.1;material=-1;name="glass2";visual="glass2";passThrough=0;};
		class HitGlass3 {armor=0.1;material=-1;name="glass3";visual="glass3";passThrough=0;};
		class HitGlass4 {armor=0.3;material=-1;name="glass4";visual="glass4";passThrough=0;};

		class HitBody {armor=1;material=51;name="karoserie";visual="karoserie";passThrough=1;}; //disabled points from models
		class HitFuel {armor=0.3;material=51;name="palivo";passThrough=1;};

		class HitLFWheel {armor=0.15;material=-1;name="wheel_1_1";visual="wheel_1_1";passThrough=0;};
		class HitRFWheel {armor=0.15;material=-1;name="wheel_1_2";visual="wheel_1_2";passThrough=0;};
		class HitLBWheel {armor=0.15;material=-1;name="wheel_2_1";visual="wheel_2_1";passThrough=0;};
		class HitRBWheel {armor=0.15;material=-1;name="wheel_2_2";visual="wheel_2_2";passThrough=0;};

	};
};

class VWGolf : Car {};
class FRSBase : VWGolf {
	wheelCircumference = 2.02;
	scope = public;
	Icon = "\Scion_FRS\icons\FRS.paa";
	displayNameShort = FRS;
	class Library {
		libTextDesc = Scion. What moves you?;
	};
	side = TCivilian;
	faction = CIV;
	vehicleClass = "Car";
	crew = "Citizen1";
	typicalCargo[] = {"Citizen1", "Citizen2", "Citizen3", "Citizen4"};
	maxSpeed = 250;	// max speed on level road, km/h
	terrainCoef = 3.0;
	turnCoef = 2;
	steerAheadPlan = 0.15;
	transportSoldier = 3;
	weapons[] = {"SportCarHorn"};
	magazines[] = {};
	armor = 20;
	damageResistance = 0.01511;
	cost = 5000;
	fuelCapacity = 65;
	brakeDistance = 0.9;	// vehicle movement precision
	ejectDeadCargo = "true";
	ejectDeadDriver = "true";
	hiddenSelections[] = 
		{
		"light_1_1",
		"light_1_2",
		"light_brake",
		"light_driving",
		"light_reverse",
		};
	memoryPointsGetInCargo[] = {"pos cargo 1", "pos cargo 2", "pos cargo 3", "pos cargo 4"};
	memoryPointsGetInCargoDir[] = {"pos cargo dir 1", "pos cargo dir 2", "pos cargo dir 3", "pos cargo dir 4"};
	enableGPS = true;
	DriverAction = "Golf_Driver";
	cargoAction[] = {"Golf_Cargo01", "Golf_Cargo02", "Golf_Cargo02", "Golf_Cargo03"};
	cargoIsCoDriver[] = {0};
	rarityUrban = 0.9;
	soundGear[] = {"", db-75, 1};
	insideSoundCoef = 0.9;
	SoundGetIn[] = {"ca\sounds\Vehicles\wheeled\GOLF\ext\ext-golf-getout", 0.562341, 1};
	SoundGetOut[] = {"ca\sounds\Vehicles\wheeled\GOLF\ext\ext-golf-getout", 0.562341, 1, 40};
	soundEngineOnInt[] = {"ca\sounds\Vehicles\Wheeled\GOLF\int\int-golf-start-1", 0.562341, 1.0};
	soundEngineOnExt[] = {"ca\sounds\Vehicles\Wheeled\GOLF\ext\ext-golf-start-1", 0.562341, 1.0, 250};
	soundEngineOffInt[] = {"ca\sounds\vehicles\Wheeled\GOLF\int\int-golf-stop-1", 0.562341, 1.0};
	soundEngineOffExt[] = {"ca\sounds\vehicles\Wheeled\GOLF\ext\ext-golf-stop-1", 0.562341, 1.0, 250};
	buildCrash0[] = {"Ca\sounds\Vehicles\Crash\crash_building_01", 0.707946, 1, 200};
	buildCrash1[] = {"Ca\sounds\Vehicles\Crash\crash_building_02", 0.707946, 1, 200};
	buildCrash2[] = {"Ca\sounds\Vehicles\Crash\crash_building_03", 0.707946, 1, 200};
	buildCrash3[] = {"Ca\sounds\Vehicles\Crash\crash_building_04", 0.707946, 1, 200};
	soundBuildingCrash[] = {"buildCrash0", 0.25, "buildCrash1", 0.25, "buildCrash2", 0.25, "buildCrash3", 0.25};
	WoodCrash0[] = {"Ca\sounds\Vehicles\Crash\crash_mix_wood_01", 0.707946, 1, 200};
	WoodCrash1[] = {"Ca\sounds\Vehicles\Crash\crash_mix_wood_02", 0.707946, 1, 200};
	WoodCrash2[] = {"Ca\sounds\Vehicles\Crash\crash_mix_wood_03", 0.707946, 1, 200};
	WoodCrash3[] = {"Ca\sounds\Vehicles\Crash\crash_mix_wood_04", 0.707946, 1, 200};
	WoodCrash4[] = {"Ca\sounds\Vehicles\Crash\crash_mix_wood_05", 0.707946, 1, 200};
	WoodCrash5[] = {"Ca\sounds\Vehicles\Crash\crash_mix_wood_06", 0.707946, 1, 200};
	soundWoodCrash[] = {"woodCrash0", 0.166, "woodCrash1", 0.166, "woodCrash2", 0.166, "woodCrash3", 0.166, "woodCrash4", 0.166, "woodCrash5", 0.166};
	ArmorCrash0[] = {"Ca\sounds\Vehicles\Crash\crash_vehicle_01", 0.707946, 1, 200};
	ArmorCrash1[] = {"Ca\sounds\Vehicles\Crash\crash_vehicle_02", 0.707946, 1, 200};
	ArmorCrash2[] = {"Ca\sounds\Vehicles\Crash\crash_vehicle_03", 0.707946, 1, 200};
	ArmorCrash3[] = {"Ca\sounds\Vehicles\Crash\crash_vehicle_04", 0.707946, 1, 200};
	soundArmorCrash[] = {"ArmorCrash0", 0.25, "ArmorCrash1", 0.25, "ArmorCrash2", 0.25, "ArmorCrash3", 0.25};

	class Exhausts
	{
		class exhaust1
		{
			position = "exhaust1start";
			direction = "exhaust1end";
			effect = "ExhaustsEffect";
		};
		class exhaust2
		{
			position = "exhaust2start";
			direction = "exhaust2end";
			effect = "ExhaustsEffect";
		};
	};
	class Reflectors
	{
		class Left
		{
			color[] = {0.9,0.8,0.8,1};
			ambient[] = {0.1,0.1,0.1,1};
			position = "light_1_1_source";
			direction = "light_1_1_target";
			hitpoint = "light_1_1";
			selection = "light_1_1";
			size = 0.5;
			brightness = 0.6;
		};
		class Right
		{
			color[] = {0.9,0.8,0.8,1};
			ambient[] = {0.1,0.1,0.1,1};
			position = "light_1_2_source";
			direction = "light_1_2_target";
			hitpoint = "light_1_2";
			selection = "light_1_2";
			size = 0.5;
			brightness = 0.6;
		};
	};
	class MarkerLights
	{
		class taillights
		{
			name = "light_driving_red";
			color[] = {1,0.1,0.1,1};
			ambient[] = {0.1,0.01,0.01,1};
			brightness = 0.004;
			blinking = "false";
		};
		class drivinglights
		{
			name = "amber_driving_light";
			color[] = {0.99, 0.69, 0.17, 1.0};
			ambient[] = {0.099, 0.069, 0.017, 1.0};
			brightness = 0.01;
			blinking = "false";
		};
	};
	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 eventhandlers {
		init = "_this execVM ""\Scion_FRS\scripts\init_taxi.sqf"";";
		engine = "_this execVM ""\Scion_FRS\scripts\engine.sqf"";";
	};



	class SoundEvents {
		class AccelerationIn {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\sedan\int\int-sedan-acce-2", 0.398107, 1};
			limit = 0.5;
			expression = "(engineOn*(1-camPos))*gmeterZ";
		};

		class AccelerationOut {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\sedan\ext\ext-sedan-acce-2", 0.398107, 1, 250};
			limit = 0.5;
			expression = "(engineOn*camPos)*gmeterZ";
		};
	};

	class Sounds {
		class Engine {
			sound[] = {"\ca\sounds\Vehicles\Wheeled\sedan\ext\ext-sedan-low-1", 0.562341, 0.95, 300};
			frequency = "(randomizer*0.05+0.95)*rpm";
			volume = "engineOn*camPos*(rpm factor[0.6, 0.2])";
		};

		class EngineHighOut {
			sound[] = {"\ca\sounds\Vehicles\Wheeled\sedan\ext\ext-sedan-high-1", 0.562341, 0.95, 399};
			frequency = "(randomizer*0.05+0.98)*rpm";
			volume = "engineOn*camPos*(rpm factor[0.45, 0.9])";
		};

		class IdleOut {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\sedan\ext\ext-sedan-idle-1", db-9, 1.0, 200};
			frequency = "1";
			volume = "engineOn*camPos*(rpm factor[0.3, 0])";
		};

		class TiresRockOut {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\ext\ext-tires-rock2", 0.1, 1.0, 30};
			frequency = "1";
			volume = "camPos*rock*(speed factor[2, 20])";
		};

		class TiresSandOut {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\ext\ext-tires-sand2", 0.1, 1.0, 30};
			frequency = "1";
			volume = "camPos*sand*(speed factor[2, 20])";
		};

		class TiresGrassOut {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\ext\ext-tires-grass3", 0.1, 1.0, 30};
			frequency = "1";
			volume = "camPos*grass*(speed factor[2, 20])";
		};

		class TiresMudOut {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\ext\ext-tires-mud2", 0.1, 1.0, 30};
			frequency = "1";
			volume = "camPos*mud*(speed factor[2, 20])";
		};

		class TiresGravelOut {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\ext\ext-tires-gravel2", 0.1, 1.0, 30};
			frequency = "1";
			volume = "camPos*gravel*(speed factor[2, 20])";
		};

		class TiresAsphaltOut {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\ext\ext-tires-asphalt3", 0.1, 1.0, 30};
			frequency = "1";
			volume = "camPos*asphalt*(speed factor[2, 20])";
		};

		class NoiseOut {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Noises\ext\int-noise3", 0.1, 1.0, 30};
			frequency = "1";
			volume = "camPos*(damper0 max 0.04)*(speed factor[0, 8])";
		};

		class EngineLowIn {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\sedan\int\int-sedan-low-1", 0.562341, 0.95};
			frequency = "(randomizer*0.05+0.95)*rpm";
			volume = "((engineOn*thrust) factor[0.65, 0.2])*(1-camPos)";
		};

		class EngineHighIn {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\sedan\int\int-sedan-high-1", 0.562341, 0.95};
			frequency = "(randomizer*0.05+0.95)*rpm";
			volume = "((engineOn*thrust) factor[0.55, 0.95])*(1-camPos)";
		};

		class IdleIn {
			sound[] = {"\ca\sounds\Vehicles\Wheeled\sedan\int\int-sedan-idle-1", db-9, 1.0};
			frequency = "1";
			volume = "engineOn*(rpm factor[0.3, 0])*(1-camPos)";
		};

		class TiresRockIn {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\int\int-tires-rock2", 0.1, 1.0};
			frequency = "1";
			volume = "(1-camPos)*rock*(speed factor[2, 20])";
		};

		class TiresSandIn {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\int\int-tires-sand2", 0.1, 1.0};
			frequency = "1";
			volume = "(1-camPos)*sand*(speed factor[2, 20])";
		};

		class TiresGrassIn {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\int\int-tires-grass3", 0.1, 1.0};
			frequency = "1";
			volume = "(1-camPos)*grass*(speed factor[2, 20])";
		};

		class TiresMudIn {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\int\int-tires-mud2", 0.1, 1.0};
			frequency = "1";
			volume = "(1-camPos)*mud*(speed factor[2, 20])";
		};

		class TiresGravelIn {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\int\int-tires-gravel2", 0.1, 1.0};
			frequency = "1";
			volume = "(1-camPos)*gravel*(speed factor[2, 20])";
		};

		class TiresAsphaltIn {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\Tires\int\int-tires-asphalt3", 0.1, 1.0};
			frequency = "1";
			volume = "(1-camPos)*asphalt*(speed factor[2, 20])";
		};

		class NoiseIn {
			sound[] = {"\ca\SOUNDS\Vehicles\Wheeled\BUS\int\noise3", db-15, 1.0};
			frequency = "1";
			volume = "(damper0 max 0.04)*(speed factor[0, 8])*(1-camPos)";
		};

		class Movement {
			sound = "soundEnviron";
			frequency = "1";
			volume = "0";
		};
	};

	class Damage {
		tex[] = {};
		mat[] = {"Scion_FRS\effects\body.rvmat","Scion_FRS\effects\body.rvmat", "Scion_FRS\Data\damage\destruct.rvmat"};
	};
	dammageHalf[] = {"Scion_FRS\effects\glass.paa", "Scion_FRS\data\damage\dammageHalf.paa"};
	dammageFull[] = {"Scion_FRS\effects\glass.paa", "Scion_FRS\data\damage\dammageFull.paa"};
};

class Scion_FRS_0 : FRSBase {
	model = "\Scion_FRS\Scion_FRS_0";
	picture = "\Scion_FRS\icons\Argento.paa";
	displayName = Scion FRS (Argento);
};

class Scion_FRS_1 : FRSBase {
	model = "\Scion_FRS\Scion_FRS_1";
	picture = "\Scion_FRS\icons\Asphalt.paa";
	displayName = Scion FRS (Asphalt);
};

class Scion_FRS_2 : FRSBase {
	model = "\Scion_FRS\Scion_FRS_2";
	picture = "\Scion_FRS\icons\Firestorm.paa";
	displayName = Scion FRS (Firestorm);
};

class Scion_FRS_3 : FRSBase {
	model = "\Scion_FRS\Scion_FRS_3";
	picture = "\Scion_FRS\icons\Hot Lava.paa";
	displayName = Scion FRS (Hot Lava);
};

class Scion_FRS_4 : FRSBase {
	model = "\Scion_FRS\Scion_FRS_4";
	picture = "\Scion_FRS\icons\Raven.paa";
	displayName = Scion FRS (Raven);
};

class Scion_FRS_5 : FRSBase {
	model = "\Scion_FRS\Scion_FRS_5";
	picture = "\Scion_FRS\icons\Ultramarine.paa";
	displayName = Scion FRS (Ultramarine);
};

class Scion_FRS_6 : FRSBase {
	model = "\Scion_FRS\Scion_FRS_6";
	picture = "\Scion_FRS\icons\Whiteout.paa";
	displayName = Scion FRS (Whiteout);
};
};

https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-prn2/965162_3212639051611_2140680739_o.jpg > 100kb!!

Edited by Foxhound
Please use code tags to prevent the page from becoming a mile long!

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  

×