module Base
{
	vehicle 69charger500
    {
        mechanicType = 3,
        offRoadEfficiency = 0.8,
        engineRepairLevel = 4,
        playerDamageProtection = 1.2,
        engineRPMType = firebird,

        model
        {
            file = 69chargerBase,
            scale = 0.9000,
            offset = 0.0000 0.4444 -0.3000,
        }

        spawnOffsetY = 0,

        skin
        {
            texture = Vehicles/Vehicles_69charger500_Shell_alpineWhite,
        }

        skin
        {
            texture = Vehicles/Vehicles_69charger500_Shell_brightBlue,
        }

        skin
        {
            texture = Vehicles/Vehicles_69charger500_Shell_brightRed,
        }

        skin
        {
            texture = Vehicles/Vehicles_69charger500_Shell_copper,
        }

        skin
        {
            texture = Vehicles/Vehicles_69charger500_Shell_darkGreen,
        }

        skin
        {
            texture = Vehicles/Vehicles_69charger500_Shell_formalBlack,
        }

        skin
        {
            texture = Vehicles/Vehicles_69charger500_Shell_formalBlackRed,
        }

        skin
        {
            texture = Vehicles/Vehicles_69charger500_Shell_hemiOrange,
        }

        skin
        {
            texture = Vehicles/Vehicles_69charger500_Shell_seaGreen,
        }

        skin
        {
            texture = Vehicles/Vehicles_69charger500_Shell_yellow,
        }

        textureRust = Vehicles/Vehicles_69charger_Rust,
        textureMask = Vehicles/Vehicles_69charger_Mask,
        textureLights = Vehicles/Vehicles_69charger_Lights,
        textureDamage1Shell = Vehicles/Vehicles_69charger_Damage1,
        textureDamage2Shell = Vehicles/Vehicles_69charger_Damage2,
        textureDamage1Overlay = Vehicles/Vehicles_69charger_Blood,
        textureDamage2Overlay = Vehicles/Vehicles_69charger_Blood,
        textureShadow = Vehicles/Vehicles_69chargerRT_Shadow,

        sound
        {
            engine = VehicleEngineSportsCar,
            engineStart = VehicleEngineSportsCar,
            engineTurnOff = VehicleEngineSportsCar,
            horn = VehicleHornSportsCar,
            ignitionFail = VehicleIgnitionFailSportsCar,
        }

        extents = 1.8889 1.1333 5.2222,
        mass = 785,
        physicsChassisShape = 1.8222 1.1333 5.2222,
        centerOfMassOffset = 0.0000 0.5889 -0.2333,
        shadowExtents = 2.0465 5.1236,
        shadowOffset = 0.0000 -0.2232,
        engineForce = 5800,
        maxSpeed = 140f,
        gearRatioCount = 5,
        gearRatioR = 4.54,
        gearRatio1 = 4.12,
        gearRatio2 = 2.42,
        gearRatio3 = 1.58,
        gearRatio4 = 1.31,
        gearRatio5 = 0.78,
        engineLoudness = 87,
        engineQuality = 81,
        brakingForce = 75,
        stoppingMovementForce = 3.5f,
        rollInfluence = 0.95f,
        steeringIncrement = 0.04,
        steeringClamp = 0.3,
        suspensionStiffness = 37,
        suspensionCompression = 3.83,
        suspensionDamping = 2.88,
        maxSuspensionTravelCm = 13,
        suspensionRestLength = 0.3,
        wheelFriction = 1.65f,
        frontEndHealth = 250,
        rearEndHealth = 150,
        seats = 4,

        wheel FrontLeft
        {
            front = true,
            offset = 0.7778 -0.4111 1.6889,
            radius = 0.32f,
            width = 0.19f,
        }

        wheel FrontRight
        {
            front = true,
            offset = -0.7778 -0.4111 1.6889,
            radius = 0.32f,
            width = 0.19f,
        }

        wheel RearLeft
        {
            front = false,
            offset = 0.7778 -0.4111 -1.2444,
            radius = 0.32f,
            width = 0.19f,
        }

        wheel RearRight
        {
            front = false,
            offset = -0.7778 -0.4111 -1.2444,
            radius = 0.32f,
            width = 0.19f,
        }

        template = PassengerSeat4,

        passenger FrontLeft
        {
            showPassenger = true,
            hasRoof = true,

            position inside
            {
                offset = 0.3889 -0.1556 0.2000,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 1.1778 -0.7333 -0.1222,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontLeft,
            }
        }

        passenger FrontRight
        {
            showPassenger = true,
            hasRoof = true,

            position inside
            {
                offset = -0.3889 -0.1556 0.2000,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -1.1667 -0.7333 -0.1111,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatFrontRight,
            }
        }

        passenger RearLeft
        {
            showPassenger = true,
            hasRoof = true,

            position inside
            {
                offset = 0.2889 -0.1556 -0.6333,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = 1.2000 -0.7222 -1.1333,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatRearLeft,
            }
        }

        passenger RearRight
        {
            showPassenger = true,
            hasRoof = true,

            position inside
            {
                offset = -0.2889 -0.1556 -0.6222,
                rotate = 0.0000 0.0000 0.0000,
            }

            position outside
            {
                offset = -1.1889 -0.6667 -1.1000,
                rotate = 0.0000 0.0000 0.0000,
                area = SeatRearRight,
            }
        }

        area Engine
        {
            xywh = 0.0000 2.7667 1.5778 0.7778,
        }

        area TruckBed
        {
            xywh = 0.0000 -3.2333 1.5333 0.7778,
        }

        area Roofrack
        {
            xywh = 0.0000 -0.1000 3.0889 1.6222,
        }

        area SeatFrontLeft
        {
            xywh = 1.3333 0.0667 0.7778 1.3778,
        }

        area SeatFrontRight
        {
            xywh = -1.3333 0.0667 0.7778 1.3778,
        }

        area SeatRearRight
        {
            xywh = -1.3333 -1.0889 0.7778 0.9333,
        }

        area SeatRearLeft
        {
            xywh = 1.3333 -1.0889 0.7778 0.9333,
        }

        area GasTank
        {
            xywh = 1.4556 -2.2111 0.7778 0.7778,
        }

        area TireFrontLeft
		{
			xywh = 1.4778 1.3889 0.4222 0.4222,
		}

		area TireFrontRight
		{
			xywh = -1.4778 1.3889 0.4222 0.4222,
		}

		area TireRearLeft
		{
			xywh = 1.4778 -1.5444 0.4222 0.4222,
		}

		area TireRearRight
		{
			xywh = -1.4778 -1.5444 0.4222 0.4222,
		}

        template = CHR69Tires,
        template = CHR69Seats,
        template = CHR69Bumpers,
        template = CHR69EngineDoor,
        template = CHR69TrunkDoorD,
        template = CHR69TrunkCompartment,
        template = CHR69Doors,
        template = CHR69Armor,

        part DAMNWindshieldRearArmor
        {
            model windra
            {
                file = 69chargerwindshieldrearaD,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }
        }

        template = CHR69SpareTire,
        template = CHR69Roofracks,
        template = CHR69LightCovers,
        template = CHR69SpoilerH,

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

            model CHR69bodyRTf
            {
                file = 69chargerRTfront,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }

            model CHR69bodyDr
            {
                file = 69chargerDrear,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }

            model CHR69int
            {
                file = 69chargerInterior,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }

            model CHR69intRTf
            {
                file = 69chargerInteriorRTfront,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }

            model CHR69intDr
            {
                file = 69chargerInteriorDrear,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }

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

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

        template = GasTank,

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

            table uninstall
            {
                recipes = Intermediate Mechanics,
            }
        }

        template = Battery,

        part Battery
        {
            model tisbat
            {
                file = 69chargerTISBattery,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }
        }

        template = Engine,
        template = Muffler,

        part Muffler
        {
            model muffythemufferS
            {
                file = 69chargerExhaust,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }

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

        part Radio
        {
            model chargerRadio
            {
                file = 69chargerRadio,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }
        }

        template = Headlight,
        template = CHR69Windows,
        template = CHR69Windshields,

        part WindshieldRear
        {
            model windshieldRear
            {
                file = 69chargerwindshieldRearD,
                offset = 0.0000 0.0000 0.0000,
                rotate = 0.0000 0.0000 0.0000,
            }
        }

        template = DAMNglobal,
        template = DAMN69charger500,
        useChassisPhysicsCollision = false,

        physics box
        {
            offset = 0.0000 0.4000 -0.2351,
            extents = 1.8667 0.7111 5.1778,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.9556 -0.5394,
            extents = 1.4667 0.4000 1.5111,
            rotate = 0.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.7869 0.3444,
            extents = 1.4667 0.4222 0.6667,
            rotate = 38.0000 0.0000 0.0000,
        }

        physics box
        {
            offset = 0.0000 0.7737 -1.6556,
            extents = 1.4667 0.9778 0.4000,
            rotate = 66.0000 0.0000 0.0000,
        }

        attachment trailer
        {
            offset = 0.0000 -0.2000 -2.5889,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = -1.0000,
        }

        attachment trailerfront
        {
            offset = 0.0000 -0.2000 2.7556,
            rotate = 0.0000 0.0000 0.0000,
            zoffset = 1.0000,
        }
    }
}
