module Base
{
    model Vehicle_ATAPetyarbuilt_short
    {
        mesh = vehicles/ATA_Petyarbuilt_body|body_short,
        shader = vehicle_norandom_multiuv,
        invertX = FALSE,
        scale = 0.05,
    }
    model Vehicle_ATAPetyarbuilt_long
    {
        mesh = vehicles/ATA_Petyarbuilt_body|body_long,
        shader = vehicle_norandom_multiuv,
        invertX = FALSE,
        scale = 0.05,
    }
    model Vehicle_ATAPetyarbuilt_sleeper
    {
        mesh = vehicles/ATA_Petyarbuilt_body|truck_sleeper,
        shader = vehicle_norandom_multiuv,
        invertX = FALSE,
        scale = 0.05,
    }
    model ATAPetyarbuilt_WheelFront_R
    {
        mesh = vehicles/ATA_Petyarbuilt_wheel_front|wheel,
        texture = Vehicles/ATA_Petyarbuilt_wheel,
        shader = vehiclewheel,
        invertX = TRUE,
        scale = 0.05,
    }
    model ATAPetyarbuilt_WheelFront_L
    {
        mesh = vehicles/ATA_Petyarbuilt_wheel_front|wheel,
        texture = Vehicles/ATA_Petyarbuilt_wheel,
        shader = vehiclewheel,
        invertX = FALSE,
        scale = 0.05,
    }
    model ATAPetyarbuilt_WheelRear_R
    {
        mesh = vehicles/ATA_Petyarbuilt_wheel_rear,
        texture = Vehicles/ATA_Petyarbuilt_wheel,
        shader = vehiclewheel,
        invertX = TRUE,
        scale = 0.05,
    }
    model ATAPetyarbuilt_WheelRear_L
    {
        mesh = vehicles/ATA_Petyarbuilt_wheel_rear,
        texture = Vehicles/ATA_Petyarbuilt_wheel,
        shader = vehiclewheel,
        invertX = FALSE,
        scale = 0.05,
    }

	model PU_FL_Window_ATAPetyarbuilt_Light
    {
        mesh = vehicles/ATAPetyarbuiltArmor|windowfrontlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
    }

	model PU_FR_Window_ATAPetyarbuilt_Light
    {
        mesh = vehicles/ATAPetyarbuiltArmor|windowfrontlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
        invertX = TRUE,
    }

	model PU_F_Window_ATAPetyarbuilt_Light
    {
        mesh = vehicles/ATAPetyarbuiltArmor|windowlightfront,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
    }

	model PU_R_Window_ATAPetyarbuilt_Light
    {
        mesh = vehicles/ATAPetyarbuiltArmor|windowlightrear,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
    }

	model PU_FL_Window_ATAPetyarbuilt_Heavy
    {
        mesh = vehicles/ATAPetyarbuiltArmor|windowfrontheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
    }

	model PU_FR_Window_ATAPetyarbuilt_Heavy
    {
        mesh = vehicles/ATAPetyarbuiltArmor|windowfrontheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
        invertX = TRUE,
    }

	model PU_F_Window_ATAPetyarbuilt_Heavy
    {
        mesh = vehicles/ATAPetyarbuiltArmor|windowheavyfront,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
    }

	model PU_R_Window_ATAPetyarbuilt_Heavy
    {
        mesh = vehicles/ATAPetyarbuiltArmor|windowheavyrear,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
    }

	model PU_Bullbar_ATAPetyarbuilt
    {
        mesh = vehicles/ATAPetyarbuiltArmor|pushbar_1,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
    }

	model PU_Chains_FL_ATAPetyarbuilt
    {
        mesh = vehicles/ATAPetyarbuiltArmor|chaintires,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
    }

	model PU_Chains_FR_ATAPetyarbuilt
    {
        mesh = vehicles/ATAPetyarbuiltArmor|chaintires,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
        invertX = TRUE,
    }

	model PU_Chains_RL_ATAPetyarbuilt
    {
        mesh = vehicles/ATAPetyarbuiltArmor|chaintires2,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
    }

	model PU_Chains_RR_ATAPetyarbuilt
    {
        mesh = vehicles/ATAPetyarbuiltArmor|chaintires2,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
        invertX = TRUE,
    }

	model PU_Hood_ATAPetyarbuilt_Light
    {
        mesh = vehicles/ATAPetyarbuiltArmor|hoodlightfront,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
    }

	model PU_Door_FL_ATAPetyarbuilt_Light
    {
        mesh = vehicles/ATAPetyarbuiltArmor|doorfrontlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
    }

	model PU_Door_FR_ATAPetyarbuilt_Light
    {
        mesh = vehicles/ATAPetyarbuiltArmor|doorfrontlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
        invertX = TRUE,
    }

	model PU_Hood_ATAPetyarbuilt_Heavy
    {
        mesh = vehicles/ATAPetyarbuiltArmor|hoodheavyfront,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
    }

	model PU_Door_FL_ATAPetyarbuilt_Heavy
    {
        mesh = vehicles/ATAPetyarbuiltArmor|doorfrontheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
    }

	model PU_Door_FR_ATAPetyarbuilt_Heavy
    {
        mesh = vehicles/ATAPetyarbuiltArmor|doorfrontheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
        invertX = TRUE,
    }

	model PU_RL_Window_ATAPetyarbuilt_Light
    {
        mesh = vehicles/ATAPetyarbuiltArmor|windowrearlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
    }

	model PU_RR_Window_ATAPetyarbuilt_Light
    {
        mesh = vehicles/ATAPetyarbuiltArmor|windowrearlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
        invertX = TRUE,
    }

	model PU_RL_Window_ATAPetyarbuilt_Heavy
    {
        mesh = vehicles/ATAPetyarbuiltArmor|windowrearheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
    }

	model PU_RR_Window_ATAPetyarbuilt_Heavy
    {
        mesh = vehicles/ATAPetyarbuiltArmor|windowrearheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.05,
        invertX = TRUE,
    }

	template vehicle PU_Armor_ATAPetyarbuilt
	{
        template = ATA2Protection/part/ATA2ProtectionWindowFrontLeft,
		part ATA2ProtectionWindowFrontLeft
		{
			model Light
			{
				file = PU_FL_Window_ATAPetyarbuilt_Light,
			}
			model Heavy
			{
				file = PU_FL_Window_ATAPetyarbuilt_Heavy,
			}
		}

        template = ATA2Protection/part/ATA2ProtectionWindowFrontRight,
		part ATA2ProtectionWindowFrontRight
		{
			model Light
			{
				file = PU_FR_Window_ATAPetyarbuilt_Light,
			}
			model Heavy
			{
				file = PU_FR_Window_ATAPetyarbuilt_Heavy,
			}
		}

        template = ATA2Protection/part/ATA2ProtectionWindshield,
        part ATA2ProtectionWindshield
        {
            model Light
            {
                file = PU_F_Window_ATAPetyarbuilt_Light,
            }
            model Heavy
            {
                file = PU_F_Window_ATAPetyarbuilt_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionWindshieldRear,
        part ATA2ProtectionWindshieldRear
        {
            model Light
            {
                file = PU_R_Window_ATAPetyarbuilt_Light,
            }
            model Heavy
            {
                file = PU_R_Window_ATAPetyarbuilt_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionDoorFrontLeft,
        part ATA2ProtectionDoorFrontLeft
        {
            model Light
            {
                file = PU_Door_FL_ATAPetyarbuilt_Light,
            }
            model Heavy
            {
                file = PU_Door_FL_ATAPetyarbuilt_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionDoorFrontRight,
        part ATA2ProtectionDoorFrontRight
        {
            model Light
            {
                file = PU_Door_FR_ATAPetyarbuilt_Light,
            }
            model Heavy
            {
                file = PU_Door_FR_ATAPetyarbuilt_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionHood,
        part ATA2ProtectionHood
        {
            model Light
            {
                file = PU_Hood_ATAPetyarbuilt_Light,
            }
            model Heavy
            {
                file = PU_Hood_ATAPetyarbuilt_Heavy,
            }
        }

        template = ATA2Bullbars/part/ATA2Bullbar,
        part ATA2Bullbar
        {
            model Default
            {
                file = PU_Bullbar_ATAPetyarbuilt,
            }
        }
	}

	template vehicle PU_Armor_ATAPetyarbuiltSleeper
	{
        template = ATA2Protection/part/ATA2ProtectionWindowFrontLeft,
		part ATA2ProtectionWindowFrontLeft
		{
			model Light
			{
				file = PU_FL_Window_ATAPetyarbuilt_Light,
			}
			model Heavy
			{
				file = PU_FL_Window_ATAPetyarbuilt_Heavy,
			}
		}

        template = ATA2Protection/part/ATA2ProtectionWindowFrontRight,
		part ATA2ProtectionWindowFrontRight
		{
			model Light
			{
				file = PU_FR_Window_ATAPetyarbuilt_Light,
			}
			model Heavy
			{
				file = PU_FR_Window_ATAPetyarbuilt_Heavy,
			}
		}

        template = ATA2Protection/part/ATA2ProtectionWindowRearLeft,
		part ATA2ProtectionWindowRearLeft
		{
			model Light
			{
				file = PU_RL_Window_ATAPetyarbuilt_Light,
			}
			model Heavy
			{
				file = PU_RL_Window_ATAPetyarbuilt_Heavy,
			}
		}

        template = ATA2Protection/part/ATA2ProtectionWindowRearRight,
		part ATA2ProtectionWindowRearRight
		{
			model Light
			{
				file = PU_RR_Window_ATAPetyarbuilt_Light,
			}
			model Heavy
			{
				file = PU_RR_Window_ATAPetyarbuilt_Heavy,
			}
		}

        template = ATA2Protection/part/ATA2ProtectionWindshield,
        part ATA2ProtectionWindshield
        {
            model Light
            {
                file = PU_F_Window_ATAPetyarbuilt_Light,
            }
            model Heavy
            {
                file = PU_F_Window_ATAPetyarbuilt_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionDoorFrontLeft,
        part ATA2ProtectionDoorFrontLeft
        {
            model Light
            {
                file = PU_Door_FL_ATAPetyarbuilt_Light,
            }
            model Heavy
            {
                file = PU_Door_FL_ATAPetyarbuilt_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionDoorFrontRight,
        part ATA2ProtectionDoorFrontRight
        {
            model Light
            {
                file = PU_Door_FR_ATAPetyarbuilt_Light,
            }
            model Heavy
            {
                file = PU_Door_FR_ATAPetyarbuilt_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionHood,
        part ATA2ProtectionHood
        {
            model Light
            {
                file = PU_Hood_ATAPetyarbuilt_Light,
            }
            model Heavy
            {
                file = PU_Hood_ATAPetyarbuilt_Heavy,
            }
        }

        template = ATA2Bullbars/part/ATA2Bullbar,
        part ATA2Bullbar
        {
            model Default
            {
                file = PU_Bullbar_ATAPetyarbuilt,
            }
        }
	}

    template vehicle ATAPetyarbuilt
    {
        part TCLConfig
        {
            category = nodisplay,
            table TCLConfig
            {
                airbrake = true,
                trailerOutside = false,
            }
        }
        
        model
        {
            file = Vehicle_ATAPetyarbuilt_short,
            scale = 0.6500,
            offset = 0.0000 1.0769 0.0000,
        }

        skin
        {
            texture = Vehicles/ATA_Petyarbuilt_base_beige,
        }
        skin
        {
            texture = Vehicles/ATA_Petyarbuilt_base_brown,
        }
        skin
        {
            texture = Vehicles/ATA_Petyarbuilt_base_bwr,
        }
        skin
        {
            texture = Vehicles/ATA_Petyarbuilt_base_green,
        }
        skin
        {
            texture = Vehicles/ATA_Petyarbuilt_base_mint,
        }
        skin
        {
            texture = Vehicles/ATA_Petyarbuilt_base_red,
        }
        skin
        {
            texture = Vehicles/ATA_Petyarbuilt_base_white,
        }
        
        textureMask = Vehicles/ATA_Petyarbuilt_mask,
        textureLights = Vehicles/ATA_Petyarbuilt_light,
        textureDamage1Shell = Vehicles/ATA_Petyarbuilt_damage1,
        textureDamage2Shell = Vehicles/ATA_Petyarbuilt_damage2,
        textureDamage1Overlay = Vehicles/ATA_Petyarbuilt_blood,
        textureDamage2Overlay = Vehicles/ATA_Petyarbuilt_blood,
        textureRust = Vehicles/ATA_Petyarbuilt_rust,
        
        mechanicType = 2,
        offRoadEfficiency = 1,
        engineRepairLevel = 5,
        playerDamageProtection = 1.4,
        engineRPMType = van,

        sound
        {
            backSignal = VehicleBackUpBeeper,
            engine = VehicleEngineStepVan,
            engineStart = VehicleEngineStepVan,
            engineTurnOff = VehicleEngineStepVan,
            horn = ATAVehicleHornTruck,
            ignitionFail = VehicleIgnitionFailStepVan,
        }
        
        mass = 1000,
        engineForce = 8000,
        engineQuality = 100,
        engineLoudness = 120,
        maxSpeed = 60f,
        brakingForce = 80,
        
        rollInfluence = 0.5f,
        steeringIncrement = 0.04,
        steeringClamp = 0.3,
        
        suspensionStiffness = 85,
        suspensionCompression = 4.83,
        suspensionDamping = 3.88,
        maxSuspensionTravelCm = 10,
        suspensionRestLength = 0.16f,
        
        wheelFriction = 1.6f,
        
        frontEndHealth = 1500,
        rearEndHealth = 1500,
        seats = 2,
        
        
        wheel FrontLeft
        {
            front = true,
            offset = 1.5385 -1.3231 4.3385,
            radius = 0.75f,
            width = 0.2f,
        }

        wheel FrontRight
        {
            front = true,
            offset = -1.5385 -1.3231 4.3385,
            radius = 0.75f,
            width = 0.2f,
        }

        area Engine
        {
            xywh = 2.6000 4.3538 1.4 1.4,
        }

        area GasTank
        {
            xywh = 2.6000 -0.0615 1.0 1.0,
        }

        area Engine
        {
            xywh = 2.6000 4.3538 1.4154 1.4154,
        }
        area FrontArea
        {
            xywh = 0.0000 6.6308 3.7846 1.4154,
        }
        area GasTank
        {
            xywh = 2.4154 -0.0615 1.0154 1.0154,
        }

        area TireFrontLeft
        {
            xywh = 2.4154 4.3538 1.0154 1.0154,
        }

        area TireFrontRight
        {
            xywh = -2.4154 4.3538 1.0154 1.0154,
        }

        area TireMiddleLeft
        {
            xywh = 2.4154 -4.2615 1.0154 1.0154,
        }

        area TireMiddleRight
        {
            xywh = -2.4154 -2.4308 1.0154 1.0154,
        }

        area TireRearLeft
        {
            xywh = 2.4154 -2.4615 1.0154 1.0154,
        }

        area TireRearRight
        {
            xywh = -2.4154 -4.2769 1.0154 1.0154,
        }

        area SeatFrontLeft
        {
            xywh = 2.4154 2.1385 1.0154 1.0154,
        }

        area SeatFrontRight
        {
            xywh = -2.4154 2.1385 1.0154 1.0154,
        }
        
        area TruckBed
        {
            xywh = 0.0000 -5.7231 3.8154 1.0154,
        }
        
        template = Trunk/part/TruckBed,

        part TruckBed
        {
            category = nodisplay,
            area = SeatFrontLeft,
            container
            {
                capacity = 20,
                conditionAffectsCapacity = false,
            }
        }
        template = Trunk/part/TruckBedOpen,
        part TruckBedOpen
        {
            category = nodisplay,
            area = SeatFrontRight,
            container
            {
                capacity = 20,
                conditionAffectsCapacity = false,
            }
        }

        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,
            }
        }

        template = GloveBox,
        template = GasTank,

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

            uninstall
            {
                skills = Mechanics:7,
                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
        {
            anim Open
            {
                sound = VehicleHoodOpenVan,
            }

            anim Close
            {
                sound = VehicleHoodCloseVan,
            }

            table install
            {
                recipes = Intermediate Mechanics,
            }

            table uninstall
            {
                recipes = Intermediate Mechanics,
            }
        }

        template = Heater,
        template = PassengerCompartment,

        template = Windshield/part/Windshield,
        part Windshield
        {
            table install
            {
                recipes = Intermediate Mechanics,
            }
            table uninstall
            {
                recipes = Intermediate Mechanics,
            }
        }
        
        template = Door/part/DoorFrontLeft,
        template = Door/part/DoorFrontRight,

        part Door*
        {
            anim Open
            {
                sound = VehicleDoorOpenVan,
            }

            anim Close
            {
                sound = VehicleDoorCloseVan,
            }

            anim Lock
            {
                sound = LockVehicleDoorVan,
            }

            anim Unlock
            {
                sound = UnlockVehicleDoorVan,
            }

            anim IsLocked
            {
                sound = VehicleDoorIsLockedVan,
            }

            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 = ATA2Protection/part/ATA2ProtectionWheels,

        template = Tire/part/TireFrontLeft,
        template = Tire/part/TireFrontRight,
        template = Tire/part/TireRearLeft,

        part TireFrontLeft
        {
            model InflatedTirePlusWheel
            {
                file = ATAPetyarbuilt_WheelFront_L,
            }
            model ATAProtection
            {
                file = PU_Chains_FL_ATAPetyarbuilt,
            }
        }

        part TireFrontRight
        {
            model InflatedTirePlusWheel
            {
                file = ATAPetyarbuilt_WheelFront_R,
            }
            model ATAProtection
            {
                file = PU_Chains_FR_ATAPetyarbuilt,
            }
        }

        part TireRearLeft
        {
            model InflatedTirePlusWheel
            {
                file = ATAPetyarbuilt_WheelRear_L,
                offset = 1.3 0.0 0.0,
            }
            model ATAProtection
            {
                file = PU_Chains_RL_ATAPetyarbuilt,
            }
        }

        template = ATA6Wheels/part/TireMiddleRight,
        template = ATA6Wheels/part/TireMiddleLeft,

        part TireMiddleRight
        {
            model InflatedTirePlusWheel
            {
                file = ATAPetyarbuilt_WheelRear_R,
                offset = -1.3 0.0 0.0,
            }
            model ATAProtection
            {
                file = PU_Chains_RR_ATAPetyarbuilt,
            }
        }

        part TireMiddleLeft
        {
            model InflatedTirePlusWheel
            {
                file = ATAPetyarbuilt_WheelRear_L,
                offset = 1.3 0.0 0.0,
            }
            model ATAProtection
            {
                file = PU_Chains_RL_ATAPetyarbuilt,
            }
        }

        template = Tire/part/TireRearRight,
        part TireRearRight
        {
            model InflatedTirePlusWheel
            {
                file = ATAPetyarbuilt_WheelRear_R,
                offset = -1.3 0.0 0.0,
            }
            model ATAProtection
            {
                file = PU_Chains_RR_ATAPetyarbuilt,
            }
        }

        part Tire*
        {
            setAllModelsVisible = false,
            table install
            {
                complete = ATATuning2.InstallComplete.TireNotAllModelsVisible,
            }
            table uninstall
            {
                complete = ATATuning2.UninstallComplete.TireNotAllModelsVisible,
            }
            lua
            {
                create = Vehicles.Create.Tire,
                init = ATATuning2.Init.TireNotAllModelsVisible,
                checkOperate = Vehicles.CheckOperate.Tire,
                update = Vehicles.Update.Tire,
            }
        }
        
        template = Brake/part/BrakeFrontLeft,
        template = Brake/part/BrakeFrontRight,
        template = Brake/part/BrakeRearLeft,
        template = ATA6Wheels/part/BrakeMiddleRight,
        template = ATA6Wheels/part/BrakeMiddleLeft,
        template = Brake/part/BrakeRearRight,
        part Brake*
        {
            table install
            {
                skills = Mechanics:6,
                recipes = Intermediate Mechanics,
            }

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

        template = Suspension/part/SuspensionFrontLeft,
        template = Suspension/part/SuspensionFrontRight,
        template = Suspension/part/SuspensionRearLeft,
        template = ATA6Wheels/part/SuspensionMiddleRight,
        template = ATA6Wheels/part/SuspensionMiddleLeft,
        template = Suspension/part/SuspensionRearRight,
        part Suspension*
        {
            table install
            {
                skills = Mechanics:6,
                recipes = Intermediate Mechanics,
            }

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

        template = Radio,
        template = Headlight,
        
        physics box
        {
            offset = 0.0000 1.4000 3.2923,
            extents = 3.5000 3.0500 4.3167,
            rotate = 0.0000 0.0000 0.0000,
        }

        attachment trailerfront
        {
            offset = 0.0000 -1.5833 5.4500,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = 1.0000,
        }

        template = PassengerSeat2,

        passenger FrontLeft
        {
            position inside
            {
                offset = 0.6769 0.3077 2.0154,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 2.2615 -0.9846 1.7231,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontLeft,
            }
        }

        passenger FrontRight
        {
            position inside
            {
                offset = -0.6769 0.3077 2.0154,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -2.2615 -0.9846 1.7231,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontRight,
            }
        }

        
    }
    
    template vehicle ATAPetyarbuiltSleep
    {
        template! = ATAPetyarbuilt,
        part ATASleeper
        {
            category = nodisplay,

            model Default
            {
                file = Vehicle_ATAPetyarbuilt_sleeper,
            }

            lua
            {
                init = ATATuning.Init.DefaultModel,
            }
        }
        
        template = Seat/part/SeatRearLeft,
        part SeatRearLeft
        {
            area = SeatFrontLeft,
        }
        template = Seat/part/SeatRearRight,
        part SeatRearRight
        {
            area = SeatFrontRight,
        }
        template = Window/part/WindowRearLeft,
        part WindowRearLeft
        {
            area = SeatFrontLeft,
            table install
            {
                requireInstalled = ,
            }
        }
        template = Window/part/WindowRearRight,
        part WindowRearRight
        {
            area = SeatFrontRight,
            table install
            {
                requireInstalled = ,
            }
        }
        part Seat*
        {
            table install
            {
                skills = Mechanics:2,
                recipes = Intermediate Mechanics,
            }

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

        template = PassengerSeat4,
        
        passenger FrontLeft
        {
            position inside
            {
                offset = 0.6769 0.3077 2.0154,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 2.2615 -0.9846 1.7231,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontLeft,
            }
        }
        
        passenger FrontRight
        {
            position inside
            {
                offset = -0.6769 0.3077 2.0154,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -2.2615 -0.9846 1.7231,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontRight,
            }
        }
        
        passenger RearLeft
        {
            position inside
            {
                offset = 0.6769 0.3077 -0.1538,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 2.2615 -0.9846 1.7231,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontLeft,
            }
        }

        passenger RearRight
        {
            position inside
            {
                offset = -0.6769 0.3077 -0.1538,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -2.2615 -0.9846 1.7231,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontRight,
            }
        }
        
        template = Fridges/part/FridgeRearLeft,
        template = Microwaves/part/MicrowaveRearRight,
        template = Mattresses/part/MattressRearLeft,
        template = Mattresses/part/MattressRearRight,
        template = Counters/part/CounterRearRight,

    }
    
}
