module Base
{
	template vehicle SVU_Armor_ATAPetyarbuilt
	{
		part ATA2AirScoop
		{
			model Small
			{
				file = SVU_Airscoop_ATAPetyarbuilt_Small,
			}
			model Medium
			{
				file = SVU_Airscoop_ATAPetyarbuilt_Medium,
			}
			model Large
			{
				file = SVU_Airscoop_ATAPetyarbuilt_Large,
			}
			model Piped
			{
				file = SVU_Airscoop_ATAPetyarbuilt_Piped,
			}
			model SmallRound
			{
				file = SVU_Airscoop_ATAPetyarbuilt_Small_Round,
			}
			model LargeRound
			{
				file = SVU_Airscoop_ATAPetyarbuilt_Large_Round,
			}
			category = nodisplay,
            area = Engine,
            specificItem = false,
            itemType = Base.LightBulb,
            setAllModelsVisible = false,
            mechanicRequireKey = false,
            table install
            {
                test = ATATuning2.InstallTest.Tuning,
                complete = ATATuning2.InstallComplete.Protection,
            }
            table uninstall
            {
                test = ATATuning2.UninstallTest.Tuning,
                complete = ATATuning2.UninstallComplete.Protection,
            }
            lua
            {
                create = ATATuning2.Create.Tuning,
                init = ATATuning2.Init.Tuning,
                update = ATATuning2.Update.Protection,
            }
		}


        template = ATA2Protection/part/ATA2ProtectionWindowFrontLeft,        
		{
			model Light
			{
				file = SVU_FL_Window_ATAPetyarbuilt_Light,
			}
			model Heavy
			{
				file = SVU_FL_Window_ATAPetyarbuilt_Heavy,
			}
            			model Reinforced
			{
				file = SVU_FL_Window_ATAPetyarbuilt_Reinforced,
			}
        }

                template = ATA2Protection/part/ATA2ProtectionWindowFrontRight,
		part ATA2ProtectionWindowFrontRight
		{
			model Light
			{
				file = SVU_FR_Window_ATAPetyarbuilt_Light,
			}
			model Heavy
			{
				file = SVU_FR_Window_ATAPetyarbuilt_Heavy,
			}
			model Reinforced
			{
				file = SVU_FR_Window_ATAPetyarbuilt_Reinforced,
			}
        }
        template = ATA2Protection/part/ATA2ProtectionWindowRearLeft,
		part ATA2ProtectionWindowRearLeft
		{
			model Light
			{
				file = SVU_RL_Window_ATAPetyarbuilt_Light,
			}
			model Heavy
			{
				file = SVU_RL_Window_ATAPetyarbuilt_Heavy,
			}
			model Reinforced
			{
				file = SVU_RL_Window_ATAPetyarbuilt_Reinforced,
			}

		}
        template = ATA2Protection/part/ATA2ProtectionWindshield,
        part ATA2ProtectionWindshield
        {
            model Light
            {
                file = SVU_F_Window_ATAPetyarbuilt_Light,
            }
            model Heavy
            {
                file = SVU_F_Window_ATAPetyarbuilt_Heavy,
            }
			model Reinforced
			{
				file = SVU_F_Window_ATAPetyarbuilt_Reinforced,
			}
        }

        template = ATA2Protection/part/ATA2ProtectionDoorFrontLeft,
        part ATA2ProtectionDoorFrontLeft
        {
            model Light
            {
                file = SVU_Door_FL_ATAPetyarbuilt_Light,
            }
            model Heavy
            {
                file = SVU_Door_FL_ATAPetyarbuilt_Heavy,
            }
			model Reinforced
			{
				file = SVU_Door_FL_ATAPetyarbuilt_Reinforced,
			}
        }

                template = ATA2Protection/part/ATA2ProtectionDoorFrontRight,
        part ATA2ProtectionDoorFrontRight
        {
            model Light
            {
                file = SVU_Door_FR_ATAPetyarbuilt_Light,
            }
            model Heavy
            {
                file = SVU_Door_FR_ATAPetyarbuilt_Heavy,
            }
			model Reinforced
			{
				file = SVU_Door_FR_ATAPetyarbuilt_Reinforced,
			}
        }

                template = ATA2Protection/part/ATA2ProtectionHood,
        part ATA2ProtectionHood
        {
            model Light
            {
                file = SVU_Hood_ATAPetyarbuilt_Light,
            }
            model Heavy
            {
                file = SVU_Hood_ATAPetyarbuilt_Heavy,
            }
			model Reinforced
			{
				file = SVU_Hood_ATAPetyarbuilt_Reinforced,
			}
            model LightScoop
            {
                file = SVU_Hood_ATAPetyarbuilt_Light_Scoop,
            }
            model HeavyScoop
            {
                file = SVU_Hood_ATAPetyarbuilt_Heavy_Scoop,
            }
			model ReinforcedScoop
			{
				file = SVU_Hood_ATAPetyarbuilt_Reinforced_Scoop,
			}
        }

        template = ATA2Protection/part/ATA2ProtectionWindowFrontLeft,
		part ATA2ProtectionWindowFrontLeft
		{
			model Light
			{
				file = SVU_FL_Window_ATAPetyarbuilt_Light,
			}
			model Heavy
			{
				file = SVU_FL_Window_ATAPetyarbuilt_Heavy,
			}
			model Reinforced
			{
				file = SVU_FL_Window_ATAPetyarbuilt_Reinforced,
			}
		}

        template = ATA2Protection/part/ATA2ProtectionWindowFrontRight,
		part ATA2ProtectionWindowFrontRight
		{
			model Light
			{
				file = SVU_FR_Window_ATAPetyarbuilt_Light,
			}
			model Heavy
			{
				file = SVU_FR_Window_ATAPetyarbuilt_Heavy,
			}
			model Reinforced
			{
				file = SVU_FR_Window_ATAPetyarbuilt_Reinforced,
			}
		}

        template = ATA2Protection/part/ATA2ProtectionWindshield,
        part ATA2ProtectionWindshield
        {
            model Light
            {
                file = SVU_F_Window_ATAPetyarbuilt_Light,
            }
            model Heavy
            {
                file = SVU_F_Window_ATAPetyarbuilt_Heavy,
            }
			model Reinforced
			{
				file = SVU_F_Window_ATAPetyarbuilt_Reinforced,
			}
        }

        template = ATA2Protection/part/ATA2ProtectionDoorFrontLeft,
        part ATA2ProtectionDoorFrontLeft
        {
            model Light
            {
                file = SVU_Door_FL_ATAPetyarbuilt_Light,
            }
            model Heavy
            {
                file = SVU_Door_FL_ATAPetyarbuilt_Heavy,
            }
			model Reinforced
			{
				file = SVU_Door_FL_ATAPetyarbuilt_Reinforced,
			}
        }

        template = ATA2Protection/part/ATA2ProtectionDoorFrontRight,
        part ATA2ProtectionDoorFrontRight
        {
            model Light
            {
                file = SVU_Door_FR_ATAPetyarbuilt_Light,
            }
            model Heavy
            {
                file = SVU_Door_FR_ATAPetyarbuilt_Heavy,
            }
			model Reinforced
			{
				file = SVU_Door_FR_ATAPetyarbuilt_Reinforced,
			}
        }

        template = ATA2Protection/part/ATA2ProtectionHood,
        part ATA2ProtectionHood
        {
            model Light
            {
                file = SVU_Hood_ATAPetyarbuilt_Light,
            }
            model Heavy
            {
                file = SVU_Hood_ATAPetyarbuilt_Heavy,
            }
			model Reinforced
			{
				file = SVU_Hood_ATAPetyarbuilt_Reinforced,
			}
            model LightScoop
            {
                file = SVU_Hood_ATAPetyarbuilt_Light_Scoop,
            }
            model HeavyScoop
            {
                file = SVU_Hood_ATAPetyarbuilt_Heavy_Scoop,
            }
			model ReinforcedScoop
			{
				file = SVU_Hood_ATAPetyarbuilt_Reinforced_Scoop,
			}
        }

        template = ATA2Bullbars/part/ATA2Bullbar,
        part ATA2Bullbar
        {
            model Small
            {
                file = SVU_Bullbar_ATAPetyarbuilt_Small,
            }
            model Plow
            {
                file = SVU_Plow_ATAPetyarbuilt,
            }
            model PlowSpiked
            {
                file = SVU_Plow_ATAPetyarbuilt_Spiked,
            }
        }

        part Tire*
        {
            setAllModelsVisible = false,
            table install
            {
                complete = ATATuning2.InstallComplete.TireNotAllModelsVisible,
            }
            
            table uninstall
            {
                complete = ATATuning2.UninstallComplete.TireNotAllModelsVisible,
            }
            
            lua
            {
                create = ATATuning2.Create.TireNotAllModelsVisible,
                init = ATATuning2.Init.TireNotAllModelsVisible,
                checkOperate = Vehicles.CheckOperate.Tire,
                update = Vehicles.Update.Tire,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionWheels,
        part TireFrontLeft
        {
            model ATAProtection
            {
                file = SVU_Chains_FL_ATAPetyarbuilt,
            }
        }

        part TireFrontRight
        {
            model ATAProtection
            {
                file = SVU_Chains_FR_ATAPetyarbuilt,
            }
        }
        part TireRearLeft
        {
            model ATAProtection
            {
                file = SVU_Chains_RL_ATAPetyarbuilt,
                offset = 1.55 0.0 0.0,
            }
          
        }
        part TireRearRight
        {
            model ATAProtection
            {
                file = SVU_Chains_RR_ATAPetyarbuilt,
                offset = -1.55 0.0 0.0,
            }
          
        }
        part TireMiddleLeft
        {

            model ATAProtection
            {
                file = SVU_Chains_RL_ATAPetyarbuilt,
                offset = 1.55 0.0 0.0,
            }
        }

        part TireMiddleRight
        {
            model ATAProtection
            {
                file = SVU_Chains_RR_ATAPetyarbuilt,
                offset = -1.55 0.0 0.0,
            }
        }

        template = ATA2InteractiveTrunk/part/ATA2InteractiveTrunkRoofRack,
        part ATA2InteractiveTrunkRoofRack
        {
            model Default
            {
                file = SVU_Rack_ATAPetyarbuilt,
            }
        }
	}
}
