module Base
{
	model zamyadBase
	{
		mesh = vehicles/Vehicle_zamyad_Body,
		shader = vehicle,
		invertX = false,
		scale = 1,
	}
	model zamyadfrontwheelleft
	{
		mesh = vehicles/Vehicle_zamyad_Wheel,
		texture = vehicles/Vehicle_zamyad_silver,
		shader = vehiclewheel,
	}
	model zamyadfrontwheelright
	{
		mesh = vehicles/Vehicle_zamyad_Wheel,
		texture = vehicles/Vehicle_zamyad_silver,
		shader = vehiclewheel,
		invertX = TRUE,
	}
	model zamyadbackwheelleft
	{
		mesh = vehicles/Vehicle_zamyad_Wheel,
		texture = vehicles/Vehicle_zamyad_silver,
		shader = vehiclewheel,
	}
	model zamyadbackwheelright
	{
		mesh = vehicles/Vehicle_zamyad_Wheel,
		texture = vehicles/Vehicle_zamyad_silver,
		shader = vehiclewheel,
		invertX = TRUE,
	}
	vehicle zamyad
	{
		mechanicType = 2,
		offRoadEfficiency = 5,
		engineRepairLevel = 5,
		playerDamageProtection = 1,

		model
		{
			file = zamyadBase,
			scale = 1.8200,
			offset = 0.0000 0.2473 -0.0330,
		}

		skin
		{
			texture = Vehicles/Vehicle_zamyad_bluepurple,
		}

		skin
		{
			texture = Vehicles/Vehicle_zamyad_blue,
		}

		skin
		{
			texture = Vehicles/Vehicle_zamyad_black,
		}

		skin
		{
			texture = Vehicles/Vehicle_zamyad_grey,
		}

		skin
		{
			texture = Vehicles/Vehicle_zamyad_silver,
		}

		skin
		{
			texture = Vehicles/Vehicle_zamyad_silverextra,
		}

		skin
		{
			texture = Vehicles/Vehicle_zamyad_white,
		}

		skin
		{
			texture = Vehicles/Vehicle_zamyad_red,
		}

		textureRust = Vehicles/Vehicle_zamyad_Rust,
		textureMask = Vehicles/Vehicle_zamyad_Mask,
		textureLights = Vehicles/Vehicle_zamyad_Lights,
		textureDamage1Overlay = Vehicles/Vehicle_zamyad_DAMAGE1,
		textureDamage2Overlay = Vehicles/Vehicle_zamyad_DAMAGE2,
		textureDamage1Shell = Vehicles/Vehicle_zamyad_DAMAGE1,
		textureDamage2Shell = Vehicles/Vehicle_zamyad_DAMAGE2,
		

		sound
		{
			engine = VehicleEnginePickUpTruck,
			engineStart = VehicleEnginePickUpTruck,
			engineTurnOff = VehicleEnginePickUpTruck,
			horn = VehicleHornStandard,
			ignitionFail = VehicleIgnitionFailPickUpTruck,
		}

		extents = 0.8681 0.6264 2.4066,
		mass = 1030,
		physicsChassisShape = 0.8681 0.6264 2.5714,
		centerOfMassOffset = 0.0000 0.3022 0.0000,
		shadowExtents = 0.9897 2.6598,
		shadowOffset = 0.0000 0.0095,
		engineForce = 4000,
		engineQuality = 80,
		engineLoudness = 120,
		maxSpeed = 70f,
		gearRatioCount = 5,
		gearRatioR = 3.5,
		gearRatio1 = 4.11,
		gearRatio2 = 2.50,
		gearRatio3 = 1.65,
		gearRatio4 = 1.25,
		gearRatio5 = 0.80,
		brakingForce = 40,
		rollInfluence = 0.8f,
		steeringIncrement = 0.04,
		steeringClamp = 0.3,
		suspensionStiffness = 40,
		suspensionCompression = 3.83,
		suspensionDamping = 2.88,
		maxSuspensionTravelCm = 10,
		suspensionRestLength = 0.2f,
		wheelFriction = 1.5f,
		frontEndHealth = 150,
		rearEndHealth = 150,
		seats = 2,

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

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

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

		wheel RearRight
		{
			front = false,
			offset = -0.3626 -0.2308 -0.5934,
			radius = 0.15f,
			width = 0.2f,
		}

		template = PassengerSeat2,

		passenger FrontLeft
		{
			position inside
			{
				offset = 0.1758 -0.0165 0.1758,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = 0.5934 -0.3242 -0.0275,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontLeft,
			}
		}

		passenger FrontRight
		{
			position inside
			{
				offset = -0.1758 -0.0165 0.1758,
				rotate = 0.0000 0.0000 0.0000,
			}

			position outside
			{
				offset = -0.5934 -0.3242 -0.0275,
				rotate = 0.0000 0.0000 0.0000,
				area = SeatFrontRight,
			}
		}

		area Engine
		{
			xywh = 0.0000 1.4451 0.7692 0.3297,
		}

		area TruckBed
		{
			xywh = 0.0000 -0.8022 1.1538 1.5385,
		}

		area SeatFrontLeft
		{
			xywh = 0.6209 0.3022 0.3297 0.4396,
		}

		area SeatFrontRight
		{
			xywh = -0.6209 0.3022 0.3297 0.4396,
		}

		area GasTank
		{
			xywh = -0.5769 -0.1264 0.3077 0.3077,
		}

		area TireFrontLeft
		{
			xywh = 0.5385 0.9341 0.2308 0.3736,
		}

		area TireFrontRight
		{
			xywh = -0.5385 0.9341 0.2308 0.3736,
		}

		area TireRearLeft
		{
			xywh = 0.5385 -0.5879 0.2308 0.3736,
		}

		area TireRearRight
		{
			xywh = -0.5385 -0.5879 0.2308 0.3736,
		}

		template = Trunk/part/TruckBedOpen,

		part TruckBedOpen
		{
			container
			{
				capacity = 500,
			}
		}

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

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

			table uninstall
			{
				skills = Mechanics:2,
				recipes = Intermediate Mechanics,
			}
		}

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

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

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

		template = GasTank,

		part GasTank
		{
			install
			{
				skills = Mechanics:5,
				recipes = Intermediate Mechanics,
			}

			uninstall
			{
				skills = Mechanics:5,
				recipes = Intermediate Mechanics,
			}
		}

		template = Battery,
		template = Engine,
		template = Muffler,

		part Muffler
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = EngineDoor,

		part EngineDoor
		{
			table install
			{
				recipes = Intermediate Mechanics,
			}

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		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,

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Window/part/WindowFrontLeft,
		template = Window/part/WindowFrontRight,

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

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

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

			table uninstall
			{
				recipes = Intermediate Mechanics,
			}
		}

		template = Tire,

		part TireFrontLeft
		{
			model InflatedTirePlusWheel
			{
				file = zamyadfrontwheelleft,
			}
		}

		part TireFrontRight
		{
			model InflatedTirePlusWheel
			{
				file = zamyadfrontwheelright,
			}
		}

		part TireRearLeft
		{
			model InflatedTirePlusWheel
			{
				file = zamyadbackwheelleft,
			}
		}

		part TireRearRight
		{
			model InflatedTirePlusWheel
			{
				file = zamyadbackwheelright,
			}
		}

		template = Brake,

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

			table uninstall
			{
				skills = Mechanics:6,
				recipes = Intermediate Mechanics,
			}
		}

		template = Suspension,

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

			table uninstall
			{
				skills = Mechanics:6,
				recipes = Intermediate Mechanics,
			}
		}

		template = Radio,
		template = Headlight,

		attachment trailerfront
		{
			offset = 0.0000 -0.1374 1.3132,
			rotate = 0.0000 0.0000 0.0000,
		}

		attachment trailer
		{
			offset = 0.0000 -0.1374 -1.2418,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
