module Base
{
	model 93peugeot205_Base
	{
		mesh = vehicles/Vehicles_93peugeot205|body,
		shader = vehicle_norandom_multiuv,
		invertX = FALSE,
		scale = 1,
	}
	model 93peugeot205_Wheel
	{
		mesh = vehicles/Vehicles_93peugeot205|wheel,
		texture = Vehicles/Vehicles_93peugeot205_wheel,
		shader = vehiclewheel,
		scale = 1,
	}
	vehicle 93peugeot205
	{
		mechanicType = 1,
		offRoadEfficiency = 0.9,
		engineRepairLevel = 3,
		playerDamageProtection = 1.1,
		engineRPMType = firebird,

		model
		{
			file = 93peugeot205_Base,
			scale = 1.2000,
			offset = 0.0000 0.0000 0.0000,
		}

		spawnOffsetY = 0,

		skin
		{
			texture = Vehicles/Vehicles_93peugeot205_White,
		}

		skin
		{
			texture = Vehicles/Vehicles_93peugeot205_Red,
		}

		skin
		{
			texture = Vehicles/Vehicles_93peugeot205_Gray,
		}

		skin
		{
			texture = Vehicles/Vehicles_93peugeot205_DarkBlue,
		}

		skin
		{
			texture = Vehicles/Vehicles_93peugeot205_DarkGreen,
		}

		textureRust = Vehicles/Vehicles_93peugeot205_dirt,
		textureMask = Vehicles/Vehicles_93peugeot205_mask,
		textureLights = Vehicles/Vehicles_93peugeot205_lights,
		textureDamage1Shell = Vehicles/Vehicles_93peugeot205_damage1,
		textureDamage2Shell = Vehicles/Vehicles_93peugeot205_damage2,
		textureDamage1Overlay = Vehicles/Vehicles_93peugeot205_blood,
		textureDamage2Overlay = Vehicles/Vehicles_93peugeot205_blood,

		sound
		{
			engine = VehicleEngineSmallCar,
			engineStart = VehicleEngineSmallCar,
			engineTurnOff = VehicleEngineSmallCar,
			horn = VehicleHornStandard,
			ignitionFail = VehicleIgnitionFailSmallCar,
		}

		extents = 1.3500 1.0833 2.9000,
		mass = 600,
		physicsChassisShape = 1.3500 0.8667 2.8500,
		centerOfMassOffset = 0.0000 0.4417 0.0250,
		shadowExtents = 1.4846 3.0786,
		shadowOffset = 0.0026 0.0181,
		engineForce = 3300,
		engineLoudness = 60,
		engineQuality = 80,
		maxSpeed = 90f,
		stoppingMovementForce = 2.0f,
		brakingForce = 75,
		rollInfluence = 0.6f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 50,
		suspensionCompression = 3.8,
		suspensionDamping = 3.6,
		maxSuspensionTravelCm = 20,
		suspensionRestLength = 0.2f,
		wheelFriction = 1.4f,
		frontEndHealth = 130,
		rearEndHealth = 130,
		seats = 4,

		wheel FrontLeft
		{
			front = true,
			offset = 0.5500 0.0000 0.9333,
			radius = 0.13f,
			width = 0.2f,
		}

		wheel FrontRight
		{
			front = true,
			offset = -0.5500 0.0000 0.9333,
			radius = 0.13f,
			width = 0.2f,
		}

		wheel RearLeft
		{
			front = false,
			offset = 0.5500 0.0000 -0.9417,
			radius = 0.13f,
			width = 0.2f,
		}

		wheel RearRight
		{
			front = false,
			offset = -0.5500 0.0000 -0.9417,
			radius = 0.13f,
			width = 0.2f,
		}

		template = PassengerSeat4,

		passenger FrontLeft
		{
			showPassenger = false,
			hasRoof = true,
			door = DoorFrontLeft,

			position inside
			{
				offset = 0.3083 0.2833 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.9000 -0.6167 -0.1917,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			showPassenger = false,
			hasRoof = true,
			door = DoorFrontRight,

			position inside
			{
				offset = -0.3083 0.2833 0.0000,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.9000 -0.6167 -0.1917,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		passenger RearLeft
		{
			showPassenger = false,
			hasRoof = true,
			door = DoorRearLeft,

			position inside
			{
				offset = 0.3250 0.2833 -0.6583,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.9333 -0.4083 -0.8500,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearLeft,
			}
		}

		passenger RearRight
		{
			showPassenger = false,
			hasRoof = true,
			door = DoorRearRight,

			position inside
			{
				offset = -0.3250 0.2833 -0.6583,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.9333 -0.4083 -0.8500,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatRearRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 1.8167 1.3500 0.6833,
		}

		area TruckBed
		{
			xywh = 0.0000 -1.7500 1.3500 0.6500,
		}

		area SeatFrontLeft
		{
			xywh = 1.0000 0.1917 0.6500 0.6667,
		}

		area SeatFrontRight
		{
			xywh = -1.0000 0.1917 0.6500 0.6833,
		}

		area SeatRearLeft
		{
			xywh = 1.0000 -0.5083 0.6500 0.6667,
		}

		area SeatRearRight
		{
			xywh = -1.0000 -0.5083 0.6500 0.6667,
		}

		area GasTank
		{
			xywh = -0.9083 -1.0917 0.4333 0.4333,
		}

		area TireFrontLeft
		{
			xywh = 0.8667 0.9333 0.4333 0.4333,
		}

		area TireFrontRight
		{
			xywh = -0.8667 0.9333 0.4333 0.4333,
		}

		area TireRearLeft
		{
			xywh = 0.8667 -0.9417 0.4333 0.4333,
		}

		area TireRearRight
		{
			xywh = -0.8667 -0.9417 0.4333 0.4333,
		}

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

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

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

		template = TrunkDoor,
		template = Trunk/part/TruckBed,

		part TruckBed
		{
			itemType = Base.SmallTrunk,

			container
			{
				capacity = 40,
				conditionAffectsCapacity = false,
			}
		}

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

		part SeatRearLeft
		{
			table install
			{
				area = SeatFrontLeft,
			}

			table uninstall
			{
				area = SeatFrontLeft,
			}
		}

		part SeatRearRight
		{
			table install
			{
				area = SeatFrontRight,
			}

			table uninstall
			{
				area = SeatFrontRight,
			}
		}

		part Seat*
		{
			container
			{
				capacity = 20,
			}

			table install
			{
				skills = Mechanics:2,
			}

			table uninstall
			{
				skills = Mechanics:2,
			}
		}

		template = Battery,
		template = Engine,
		template! = 93peugeot205_spare,
		template = Muffler,

		part Muffler
		{
			model V744Muff
			{
				file = 93peugeot205_Muffler,
			}

			area = TruckBed,
			itemType = Base.OldCarMuffler;Base.NormalCarMuffler;Base.ModernCarMuffler,
			category = engine,

			lua
			{
				create = Vehicles.Create.Default,
				update = Vehicles.Update.Muffler,
			}
		}

		template = EngineDoor,

		part EngineDoor
		{
			mechanicRequireKey = false,
		}

		part Heater
		{
			category = engine,

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

		template = PassengerCompartment,

		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,

		part TireFrontLeft
		{
			model InflatedTirePlusWheel
			{
				file = 93peugeot205_Wheel,
				rotate = 0 0 0,
			}

			area = TireFrontLeft,
			wheel = FrontLeft,

			table install
			{
				requireInstalled = BrakeFrontLeft;SuspensionFrontLeft,
			}
		}

		part TireFrontRight
		{
			model InflatedTirePlusWheel
			{
				file = 93peugeot205_Wheel,
				rotate = 0 180 0,
			}

			area = TireFrontRight,
			wheel = FrontRight,

			table install
			{
				requireInstalled = BrakeFrontRight;SuspensionFrontRight,
			}
		}

		part TireRearLeft
		{
			model InflatedTirePlusWheel
			{
				file = 93peugeot205_Wheel,
				rotate = 0 0 0,
			}

			area = TireRearLeft,
			wheel = RearLeft,

			table install
			{
				requireInstalled = BrakeRearLeft;SuspensionRearLeft,
			}
		}

		part TireRearRight
		{
			model InflatedTirePlusWheel
			{
				file = 93peugeot205_Wheel,
				rotate = 0 180 0,
			}

			area = TireRearRight,
			wheel = RearRight,

			table install
			{
				requireInstalled = BrakeRearRight;SuspensionRearRight,
			}
		}

		part Tire*
		{
			category = tire,
			itemType = Base.OldTire;Base.NormalTire;Base.ModernTire,
		}

		template = Brake,
		template = Suspension,
		template = Radio,
		template = Headlight,

		attachment trailer
		{
			offset = 0.0000 0.1783 -1.4651,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = -1.0000,
		}

		attachment trailerfront
		{
			offset = 0.0000 0.1008 1.4264,
			rotate = 0.0000 0.0000 0.0000,
			zoffset = 1.0000,
		}
	}
}
