module Base
{
	model TrailerKI5livestock
	{
		mesh = vehicles/Trailers_KI5livestock_Body|damnTrailer_animal_large_body,
		shader = damn_vehicle_shader,
		scale = 0.1,
	}
	vehicle TrailerKI5livestock
	{
		zombieType = Farmer,
		mechanicType = 2,
		offRoadEfficiency = 1.0,
		engineRepairLevel = 4,
		playerDamageProtection = 0.8,

		model
		{
			file = TrailerKI5livestock,
			scale = 0.9000,
			offset = 0.0000 0.5444 -0.1556,
		}

		skin
		{
			texture = Vehicles/Trailers_KI5livestock_Shell_white,
		}

		skin
		{
			texture = Vehicles/Trailers_KI5livestock_Shell_ovo,
		}

		textureMask = Vehicles/Trailers_KI5livestock_mask,
		textureLights = Vehicles/Trailers_KI5combo_lights,
		textureDamage1Overlay = Vehicles/Trailers_KI5cargo_blood,
		textureDamage2Overlay = Vehicles/Trailers_KI5cargo_blood,
		textureDamage1Shell = Vehicles/Trailers_KI5cargo_damage,
		textureDamage2Shell = Vehicles/Trailers_KI5cargo_damage2,
		textureRust = Vehicles/Trailers_KI5livestock_rust,
		textureShadow = Vehicles/Trailers_KI5livestock_Shadow,
		extents = 1.7778 1.6444 3.6222,
		mass = 200,
		physicsChassisShape = 1.7778 1.6444 3.6222,
		centerOfMassOffset = 0.0000 1.1000 0.0000,
		shadowExtents = 2.3044 3.8228,
		shadowOffset = 0.0000 0.1196,
		engineForce = 3600,
		engineQuality = 60,
		engineLoudness = 55,
		maxSpeed = 70f,
		brakingForce = 1,
		stoppingMovementForce = 2.0f,
		rollInfluence = 0.4f,
		steeringIncrement = 0.03,
		steeringClamp = 0.3,
		suspensionStiffness = 45,
		suspensionCompression = 4.83,
		suspensionDamping = 3.88,
		maxSuspensionTravelCm = 14,
		suspensionRestLength = 0.20f,
		wheelFriction = 4.0f,
		frontEndHealth = 150,
		rearEndHealth = 150,
		seats = 2,
		animalTrailerSize = 500,

		wheel FrontLeft
		{
			front = false,
			offset = 1.0222 -0.3889 0.5333,
			radius = 0.33f,
			width = 0.21f,
		}

		wheel FrontRight
		{
			front = false,
			offset = -1.0222 -0.3889 0.5333,
			radius = 0.33f,
			width = 0.21f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 1.0222 -0.3889 -0.2222,
			radius = 0.33f,
			width = 0.21f,
		}

		wheel RearRight
		{
			front = false,
			offset = -1.0222 -0.3889 -0.2222,
			radius = 0.33f,
			width = 0.21f,
		}

		area AnimalEntry
		{
			xywh = 0.0000 -2.3778 1.4889 0.6667,
		}

		area TrailerAnimalFood
		{
			xywh = 0.0000 -2.1111 1.4889 0.6000,
		}

		area TruckBed
		{
			xywh = 0.0000 -2.3667 1.9556 1.1111,
		}

		area TireFrontLeft
		{
			xywh = 1.7111 0.3889 0.4444 0.4889,
		}

		area TireFrontRight
		{
			xywh = -1.7111 0.3889 0.4444 0.4889,
		}

		area TireRearLeft
		{
			xywh = 1.7111 -0.3778 0.4444 0.4889,
		}

		area TireRearRight
		{
			xywh = -1.7111 -0.3778 0.4444 0.4889,
		}

		template = KI5TRLLTrunkDoor,
		template = Trunk/part/TrailerAnimalFood,
		template = Trunk/part/TrailerAnimalEggs,

		part TrailerAnimalFood
		{
			model lvstinmodel
			{
				file = TrailerKI5cargoLargeInterior,
				offset = 0.0000 0.0000 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}
		}

		template = KI5TRTiresFront,
		template = KI5TRTiresRear,
		template = DAMNleafSuspensionFront,
		template = DAMNleafSuspensionRear,
		template = KI5TRFlaresLL,
		template = DAMNglobal,
		template = DAMNTrailerKI5livestock,
		useChassisPhysicsCollision = false,

		physics box
		{
			offset = 0.1889 0.2444 2.4217,
			extents = 0.1111 0.1111 1.1333,
			rotate = 0.0000 -19.0000 0.0000,
		}

		physics box
		{
			offset = -0.1889 0.2444 2.4338,
			extents = 0.1111 0.1111 1.1333,
			rotate = 0.0000 19.0000 0.0000,
		}

		physics sphere
		{
			offset = 0.0000 0.2111 2.9110,
			radius = 0.0889,
		}

		physics box
		{
			offset = 0.0000 1.1000 -0.0061,
			extents = 1.7556 1.6444 3.5778,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 0.4788 0.0000,
			extents = 2.2889 0.4000 1.6222,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.3778 1.1000 1.7556,
			extents = 0.9333 1.6444 0.3778,
			rotate = 0.0000 19.0000 0.0000,
		}

		physics box
		{
			offset = -0.3778 1.0993 1.7556,
			extents = 0.9333 1.6444 0.3778,
			rotate = 0.0000 -19.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.2050 3.4016,
			rotate = 0.0000 0.0000 0.0000,
			canAttach = trailer,
			updateconstraint = false,
		}

		attachment trailerfront
		{
			offset = 0.0000 -0.2778 1.9222,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}

		attachment towbar
		{
			offset = 0.0000 -0.2778 -1.9222,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
			updateconstraint = false,
		}

		attachment towbarfront
		{
			offset = 0.0000 -0.2778 1.9222,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
			updateconstraint = false,
		}

		attachment flipNode
		{
			offset = 0.0000 -0.2778 0.0000,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
