module Base
{
	model Vehicles_CarTaxi_Wrecked
	{
		mesh = vehicles/Vehicles_Taxi_Wrecked,
		shader = vehicle_norandom_multiuv,
		invertX = FALSE,
		scale = 0.008,
	}
	vehicle CarTaxi_Wrecked
	{
		mechanicType = 1,
		engineRepairLevel = 4,
		playerDamageProtection = 1.0,
		zombieType = Generic01;Generic02;Generic03;Generic04;Generic05,

		model
		{
			file = Vehicles_CarTaxi_Wrecked,
			scale = 1.8200,
			offset = 0.0000 0.2527 0.0000,
		}

		spawnOffsetY = 0.5,

		skin
		{
			texture = Vehicles/vehicle_cartaxishell,
		}
		
		skin
		{
			texture = Vehicles/vehicle_cartaxi2shell,
		}

		sound
		{
			engine = VehicleEngineCarNormal,
			engineStart = VehicleEngineCarNormal,
			engineTurnOff = VehicleEngineCarNormal,
			horn = VehicleHornStandard,
			ignitionFail = VehicleIgnitionFailCarNormal,
		}

		textureMask = Vehicles/vehicle_taxi_mask,
		textureLights = Vehicles/vehicle_taxi_lights,
		textureDamage1Overlay = Vehicles/Veh_Blood_Mask,
		textureDamage2Overlay = Vehicles/Veh_Blood_Hvy,
		textureDamage1Shell = Vehicles/Veh_Damage1,
		textureDamage2Shell = Vehicles/Veh_Damage2,
		textureRust = Vehicles/Veh_Rust,
		extents = 0.9011 0.7033 2.5934,
		physicsChassisShape = 0.9011 0.7033 2.5934,
		mass = 800,
		centerOfMassOffset = 0.0000 0.3022 0.0000,
		shadowExtents = 0.9011 2.5934,
		shadowOffset = 0.0000 0.0000,
		engineForce = 4000,
		maxSpeed = 90f,
		engineLoudness = 80,
		engineQuality = 70,
		brakingForce = 90,
		stoppingMovementForce = 4.0f,
		rollInfluence = 1.0f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 40,
		suspensionCompression = 3.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 10,
		suspensionRestLength = 0.20f,
		wheelFriction = 1.4f,
		frontEndHealth = 150,
		rearEndHealth = 150,
		seats = 4,

		wheel FrontLeft
		{
			front = true,
			offset = 0.3626 -0.3022 0.8516,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.3626 -0.3022 0.7967,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.3626 -0.3022 -0.6099,
			radius = 0.15f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.3352 -0.3022 -0.4835,
			radius = 0.15f,
			width = 0.2f,
		}

		area Engine
		{
			xywh = 0.0000 1.5330 0.9011 0.4725,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.5330 0.9011 0.4725,
		}

		area GasTank
		{
			xywh = 0.6868 -0.8352 0.4725 0.4725,
		}

		area TireFrontLeft
		{
			xywh = 0.6868 0.8516 0.4725 0.4725,
		}

		area TireFrontRight
		{
			xywh = -0.6868 0.8516 0.4725 0.4725,
		}

		area TireRearLeft
		{
			xywh = 0.6868 -0.6099 0.4725 0.4725,
		}

		area TireRearRight
		{
			xywh = -0.6868 -0.6099 0.4725 0.4725,
		}

		template = TrunkDoor,
		template = Trunk/part/TruckBed,
		template = Seat/part/SeatFrontLeft,
		template = Seat/part/SeatFrontRight,
		template = Seat/part/SeatRearLeft,
		template = Seat/part/SeatRearRight,

		part Seat*
		{
			table install
			{
				skills = Mechanics:2,
			}

			table uninstall
			{
				skills = Mechanics:2,
			}
		}

		part GloveBox
		{
			area = SeatFrontRight,
			itemType = Base.GloveBox,
			mechanicRequireKey = true,
			durability = 3,
			container
			{
				test = Vehicles.ContainerAccess.GloveBox,
                capacity = 5,
			}
		}

		template = GasTank,

		part GasTank
		{
			install
			{
				skills = Mechanics:6,
			}

			uninstall
			{
				skills = Mechanics:6,
			}
		}

		template = CrashedBattery,
		template = Engine,
		template = Muffler,
		template = EngineDoor,
		template = Heater,

		part Heater
		{
			category = engine,

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

		part PassengerCompartment
		{
			category = nodisplay,

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

		template = Windshield/part/Windshield,
		template = Windshield/part/WindshieldRear,
		template = Window/part/WindowFrontLeft,
		template = Window/part/WindowFrontRight,
		template = Window/part/WindowRearLeft,
		template = Window/part/WindowRearRight,
		template = Door/part/DoorFrontLeft,
		template = Door/part/DoorFrontRight,
		template = Door/part/DoorRearLeft,
		template = Door/part/DoorRearRight,
		template = Tire,
		template = Brake,
		template = Suspension,
		template = Radio,
		template = Headlight,
		
		part Headlight*
		{
			lua
			{
				create = CrashedCars.CreatVehicle,
			}
		}
		
		template = CarTaxiCollision,

		physics box
		{
			offset = 0.0000 0.1313 -0.0055,
			extents = 0.8681 0.3626 2.5495,
			rotate = 0.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 0.3571 0.3193,
			extents = 0.7912 0.1758 0.5165,
			rotate = 41.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 0.3950 -0.5714,
			extents = 0.7912 0.3626 0.1758,
			rotate = 41.0000 0.0000 0.0000,
		}

		physics box
		{
			offset = 0.0000 0.4542 -0.1703,
			extents = 0.7912 0.2747 0.7033,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.2747 -1.3187,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 -0.2747 1.3297,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
