////////////////////////////////////////// Animation Parameters
class AnimationSources : AnimationSources   
{
	class tailgate
	{
		source="user";
		animPeriod=1;
		forceAnimate[]=
		{
			"TailgateArm1",1,
			"TailgateArm2",1,
			"TailgateArm3",1,
		};
	};
	class convoylight
	{
		source="user";
		animPeriod=0;
		initPhase=1;
	};
	class hazardlight
	{
		source="user";
		animPeriod=0;
		initPhase=1;
	};
	//class remaxbase
	//{
	//	source="user";
	//	initPhase=1;
	//	mass=-240;
	//};
	class Remaxflash_rot
	{
		source="ammorandom";
		weapon="BRAF_REMAX_M2";
	};
	class RemaxReload
	{
		source="reload";
		weapon="BRAF_REMAX_M2";
	};
	class Remaxflash_hide
	{
		source="reload";
		weapon="BRAF_REMAX_M2";
	};
	class Damage_Engine_src
	{
		source="Hit";
		hitpoint="HitEngine";
		raw=1;
	};
	class Damage_Fuel_src
	{
		source="Hit";
		hitpoint="HitFuel";
		raw=1;
	};class Damage_Hull_src
	{
		source="Hit";
		hitpoint="HitHull";
		raw=1;
	};
	class Damage_Wheels_src
	{
		source="Hit";
		hitpoint="HitWheels";
		raw=1;
	};
	//class ut30brbase
	//{
	//	source="user";
	//	initPhase=1;
	//	mass=-300;
	//};
	//class ut30brflash_rot
	//{
	//	source="ammorandom";
	//	weapon="BRAF_UT30BR_Bushmaster";
	//};
	//class ut30brflash_hide
	//{
	//	source="reload";
	//	weapon="BRAF_UT30BR_Bushmaster";
	//};
};
class UserActions
{
	class OpenTailgate
	{
		displayName="Open Ramp";
		condition="driver this == player AND this animationPhase 'Tailgate' < 0.5";
		statement="this animate ['Tailgate', 1];";
		position="driverpos";
		showWindow=1;
		radius=2;
		priority=1;
		onlyForPlayer=1;
	};
	class CloseTailgate: OpenTailgate
	{
		displayName="Close Ramp";
		condition="driver this == player AND this animationPhase 'Tailgate' > 0.5";
		statement="this animate ['Tailgate', 0]";
	};
	class ConvoyLightsOn: OpenTailgate
	{
		displayName="Convoy Lights On";
		condition="driver this == player AND this animationPhase 'ConvoyLights' > 0.8";
		statement="this animate ['ConvoyLights', 0]";
	};
	class ConvoyLightsOff: ConvoyLightsOn
	{
		displayName="Convoy Lights Off";
		condition="driver this == player AND this animationPhase 'ConvoyLights' < 0.2";
		statement="this animate ['ConvoyLights', 1]";
	};
	class HazardLightsOn: OpenTailgate
	{
		displayName="Hazard Lights On";
		condition="driver this == player AND this animationPhase 'HazardLightStart' > 0.8";
		statement="this animate ['HazardLightStart', 0]";
	};
	class HazardLightsOff: HazardLightsOn
	{
		displayName="Hazard Lights Off";
		condition="driver this == player AND this animationPhase 'HazardLightStart' < 0.2";
		statement="this animate ['HazardLightStart', 1]";
	};
	class SirenOn: OpenTailgate
	{
		displayName="Siren On";
		condition="driver this == player";
		statement="[this, ['Siren', 100, 1]] remoteExec ['say3D'];";
	};
};