module Base
{
	vehicle Biochemical_PickupTruck
	{
		model
		{
			file = Biochemical_PickupTruck_Base,
			scale = 1.0000,
			offset = 0.0000 0.4800 -0.2600,
		}

		skin
		{
			texture = Vehicles/Vehicle_Biochemical_BaseColour,
		}

		//textureMask = Vehicles/Vehicle_Biochemical_Overlay_Mask,
		textureLights = Vehicles/Vehicle_Biochemical_light,
		textureDamage1Overlay = Vehicles/Vehicle_Biochemical_Overlay_Blood,
		textureDamage2Overlay = Vehicles/Vehicle_Biochemical_Overlay_Blood,
		textureDamage1Shell = Vehicles/Vehicle_Biochemical_Overlay_Damage,
		textureDamage2Shell = Vehicles/Vehicle_Biochemical_Overlay_Damage,
		textureRust = Vehicles/Vehicle_Biochemical_Overlay_Rust,

		sound
		{
			engine = VehicleEngineSUV,
			engineStart = VehicleEngineSUV,
			engineTurnOff = VehicleEngineSUV,
			horn = VehicleHornVan,
			ignitionFail = VehicleIgnitionFailSUV,
		}

		extents = 2.3800 1.9400 5.0800,
		physicsChassisShape = 2.3800 1.9400 5.0800,
		centerOfMassOffset = -0.0400 0.8700 -0.0700,
		shadowExtents = 2.3673 5.0862,
		shadowOffset = -0.0400 -0.0676,
		mechanicType = 2,
		offRoadEfficiency = 1.8,
		playerDamageProtection = 1.5,
		mass = 900,
		engineRPMType = jeep,
		engineRepairLevel = 6,
		engineForce = 9510,
		engineLoudness = 80,
		engineQuality = 98,
		maxSpeed = 120f,
		brakingForce = 70,
		stoppingMovementForce = 5.0f,
		rollInfluence = 0.7f,
		steeringIncrement = 0.03,
		steeringClamp = 0.3,
		suspensionStiffness = 30,
		suspensionCompression = 2.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 10,
		suspensionRestLength = 0.2,
		wheelFriction = 1.6f,
		frontEndHealth = 150,
		rearEndHealth = 150,
		seats = 4,
		isSmallVehicle = false,

		wheel FrontLeft
		{
			front = true,
			offset = 1.0000 -0.5600 1.6900,
			radius = 0.28f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -1.0000 -0.5600 1.6900,
			radius = 0.28f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 1.0000 -0.5600 -1.5100,
			radius = 0.28f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -1.0000 -0.5600 -1.5100,
			radius = 0.28f,
			width = 0.2f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.3700 -0.1400 0.1200,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.0000 -0.6800 0.0000,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.3700 -0.1400 0.1200,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.0000 -0.6800 0.0000,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = 0.3700 -0.1000 -0.7200,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 1.0000 -0.6800 -0.7600,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			showPassenger = true,
			hasRoof = true,

			position inside
			{
				offset = -0.3700 -0.1000 -0.7200,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -1.0000 -0.6800 -0.7600,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 1.6000 1.4000 0.8000 1.4000,
		}

		area TruckBed
		{
			xywh = 0.0000 -2.6200 2.1000 1.0000,
		}

		area SeatFrontLeft
		{
			xywh = 1.4100 0.3200 1.0000 1.0000,
		}

		area SeatFrontRight
		{
			xywh = -1.4100 0.3200 1.0000 1.0000,
		}

		area SeatRearLeft
		{
			xywh = 1.4100 -0.6800 1.0000 1.0000,
		}

		area SeatRearRight
		{
			xywh = -1.4100 -0.6800 1.0000 1.0000,
		}

		area GasTank
		{
			xywh = 1.4100 -1.6200 1.0000 1.0000,
		}

		area TireFrontLeft
		{
			xywh = 1.2500 1.3200 0.6800 0.6800,
		}

		area TireFrontRight
		{
			xywh = -1.2500 1.3200 0.6800 0.6800,
		}

		area TireRearLeft
		{
			xywh = 1.2500 -1.3500 0.6800 0.6800,
		}

		area TireRearRight
		{
			xywh = -1.2500 -1.3200 0.6800 0.6800,
		}
		
		area RoofRack
		{
			xywh = 0.0000 -0.8000 3.6000 1.3000,
		}

		template = Trunk/part/TruckBed,

		part TruckBed
		{
			container
			{
				capacity = 400,
			}
		}

		template = Seat/part/SeatFrontLeft,
		template = Seat/part/SeatFrontRight,
		template = Seat/part/SeatRearLeft,
		template = Seat/part/SeatRearRight,

		part GloveBox
		{
			area = SeatFrontRight,
			itemType = Base.GloveBox,
			mechanicRequireKey = true,

			model
			{
				file = Biochemical_PickupTruck_Interior,
			}

			container
			{
				capacity = 7,
				test = Vehicles.ContainerAccess.GloveBox,
			}

			lua
			{
				create = Vehicles.Create.Default,
			}
		}

		template = GasTank,

		part GasTank
		{
			mechanicRequireKey = true,
		}

		template = Battery,

		part Battery
		{
			model Battery
			{
				file = Biochemical_PickupTruck_Battery,
			}
		}

		template = Engine,
		template = Muffler,
		template = EngineDoor,

		part EngineDoor
		{
			model EngineDoor
			{
				file = Biochemical_PickupTruck_Hood,
			}

			anim Close
			{
				anim = ArmatureAction,
				reverse = TRUE,
				rate = 2.0,
			}

			anim Open
			{
				anim = ArmatureAction,
				reverse = FALSE,
				rate = 1.0,
			}

			anim Closed
			{
				anim = ArmatureAction,
				reverse = FALSE,
				animate = FALSE,
			}

			anim Opened
			{
				anim = ArmatureAction,
				reverse = TRUE,
				animate = FALSE,
			}
		}

		part Heater
		{
			category = engine,

			lua
			{
				update = Vehicles.Update.Heater,
			}
		}

		part PassengerCompartment
		{
			category = nodisplay,

			lua
			{
				update = Vehicles.Update.PassengerCompartment,
			}
		}

		template = Door/part/DoorFrontLeft,
		template = Door/part/DoorFrontRight,
		template = Door/part/DoorRearLeft,
		template = Door/part/DoorRearRight,

		part DoorFrontLeft
		{
			model Default
			{
				file = Biochemical_PickupTruck_DoorFL,
			}

			anim Close
			{
				anim = ArmatureAction,
				reverse = TRUE,
				rate = 3,
			}

			anim Open
			{
				anim = ArmatureAction,
				reverse = FALSE,
				rate = 1,
			}

			anim Closed
			{
				anim = ArmatureAction,
				reverse = FALSE,
				animate = FALSE,
			}

			anim Opened
			{
				anim = ArmatureAction,
				reverse = TRUE,
				animate = FALSE,
			}
		}

		part DoorFrontRight
		{
			model Default
			{
				file = Biochemical_PickupTruck_DoorFR,
			}

			anim Close
			{
				anim = ArmatureAction,
				reverse = TRUE,
				rate = 3,
			}

			anim Open
			{
				anim = ArmatureAction,
				reverse = FALSE,
				rate = 1,
			}

			anim Closed
			{
				anim = ArmatureAction,
				reverse = FALSE,
				animate = FALSE,
			}

			anim Opened
			{
				anim = ArmatureAction,
				reverse = TRUE,
				animate = FALSE,
			}
		}

		part DoorRearLeft
		{
			model Default
			{
				file = Biochemical_PickupTruck_DoorRL,
			}

			anim Close
			{
				anim = ArmatureAction,
				reverse = TRUE,
				rate = 3,
			}

			anim Open
			{
				anim = ArmatureAction,
				reverse = FALSE,
				rate = 1,
			}

			anim Closed
			{
				anim = ArmatureAction,
				reverse = FALSE,
				animate = FALSE,
			}

			anim Opened
			{
				anim = ArmatureAction,
				reverse = TRUE,
				animate = FALSE,
			}
		}

		part DoorRearRight
		{
			model Default
			{
				file = Biochemical_PickupTruck_DoorRR,
			}

			anim Close
			{
				anim = ArmatureAction,
				reverse = TRUE,
				rate = 3,
			}

			anim Open
			{
				anim = ArmatureAction,
				reverse = FALSE,
				rate = 1,
			}

			anim Closed
			{
				anim = ArmatureAction,
				reverse = FALSE,
				animate = FALSE,
			}

			anim Opened
			{
				anim = ArmatureAction,
				reverse = TRUE,
				animate = FALSE,
			}
		}

		template = Window/part/WindowFrontLeft,
		template = Window/part/WindowFrontRight,
		template = Window/part/WindowRearLeft,
		template = Window/part/WindowRearRight,
		
		/**template = Windshield/part/WindshieldRear,**/

		part WindowFrontLeft
		{
			parent = DoorFrontLeft,

			model WindowFrontLeft
			{
				file = Biochemical_PickupTruck_WindowFL,
			}

			anim ClosedToOpen
			{
				anim = ArmatureAction,
				animate = FALSE,
				rate = 0.2,
			}
		}

		part WindowFrontRight
		{
			model Default
			{
				file = Biochemical_PickupTruck_WindowFR,
			}

			anim ClosedToOpen
			{
				anim = ArmatureAction,
				animate = FALSE,
				rate = 0.2,
			}
		}

		part WindowRearLeft
		{
			model Default
			{
				file = Biochemical_PickupTruck_WindowRL,
			}

			anim ClosedToOpen
			{
				anim = ArmatureAction,
				animate = FALSE,
				rate = 0.2,
			}
		}

		part WindowRearRight
		{
			model Default
			{
				file = Biochemical_PickupTruck_WindowRR,
			}

			anim ClosedToOpen
			{
				anim = ArmatureAction,
				animate = FALSE,
				rate = 0.2,
			}
		}
		
		template = Windshield/part/Windshield,
		
		part Windshield
		{
			model Default
			{
				file = Biochemical_PickupTruck_Windshield,
			}
		}

		template = Tire,

		part Tire*
		{
			model InflatedTirePlusWheel
			{
				file = Biochemical_PickupTruck_Wheel,
			}
		}

		template = Brake,

		part Brake*
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Suspension,

		part Suspension*
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Radio,
		template = Headlight,

		attachment trailer
		{
			offset = 0.0000 -0.2700 -2.2500,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 -0.2700 2.2600,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
		
		template = Biochemical_RooftrackTemplate,
		template = Biochemical_BumperTemplate,
	}
}
