module Base
{
	model PU_FL_Window_hmmwvht_Light
    {
        mesh = vehicles/hmmwvhtArmor|windowfrontlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_FR_Window_hmmwvht_Light
    {
        mesh = vehicles/hmmwvhtArmor|windowfrontlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
        invertX = TRUE,
    }

	model PU_RL_Window_hmmwvht_Light
    {
        mesh = vehicles/hmmwvhtArmor|windowrearlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_RR_Window_hmmwvht_Light
    {
        mesh = vehicles/hmmwvhtArmor|windowrearlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
        invertX = TRUE,
    }

	model PU_F_Window_hmmwvht_Light
    {
        mesh = vehicles/hmmwvhtArmor|windowlightfront,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_FL_Window_hmmwvht_Heavy
    {
        mesh = vehicles/hmmwvhtArmor|windowfrontheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_FR_Window_hmmwvht_Heavy
    {
        mesh = vehicles/hmmwvhtArmor|windowfrontheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
        invertX = TRUE,
    }

	model PU_RL_Window_hmmwvht_Heavy
    {
        mesh = vehicles/hmmwvhtArmor|windowrearheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_RR_Window_hmmwvht_Heavy
    {
        mesh = vehicles/hmmwvhtArmor|windowrearheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
        invertX = TRUE,
    }

	model PU_F_Window_hmmwvht_Heavy
    {
        mesh = vehicles/hmmwvhtArmor|windowheavyfront,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Chains_FL_hmmwvht
    {
        mesh = vehicles/hmmwvhtArmor|chaintires,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.0035,
    }

	model PU_Chains_FR_hmmwvht
    {
        mesh = vehicles/hmmwvhtArmor|chaintires,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.0035,
        invertX = TRUE,
    }

	model PU_Chains_RL_hmmwvht
    {
        mesh = vehicles/hmmwvhtArmor|chaintires,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.0035,
    }

	model PU_Chains_RR_hmmwvht
    {
        mesh = vehicles/hmmwvhtArmor|chaintires,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.0035,
        invertX = TRUE,
    }

	model PU_Hood_hmmwvht_Light
    {
        mesh = vehicles/hmmwvhtArmor|hoodlightfront,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Trunk_hmmwvht_Light
    {
        mesh = vehicles/hmmwvhtArmor|trunklightrear,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Door_FL_hmmwvht_Light
    {
        mesh = vehicles/hmmwvhtArmor|doorfrontlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Door_FR_hmmwvht_Light
    {
        mesh = vehicles/hmmwvhtArmor|doorfrontlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
        invertX = TRUE,
    }

	model PU_Door_RL_hmmwvht_Light
    {
        mesh = vehicles/hmmwvhtArmor|doorrearlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Door_RR_hmmwvht_Light
    {
        mesh = vehicles/hmmwvhtArmor|doorrearlightleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
        invertX = TRUE,
    }

	model PU_Hood_hmmwvht_Heavy
    {
        mesh = vehicles/hmmwvhtArmor|hoodheavyfront,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Trunk_hmmwvht_Heavy
    {
        mesh = vehicles/hmmwvhtArmor|trunkheavyrear,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Door_FL_hmmwvht_Heavy
    {
        mesh = vehicles/hmmwvhtArmor|doorfrontheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Door_FR_hmmwvht_Heavy
    {
        mesh = vehicles/hmmwvhtArmor|doorfrontheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
        invertX = TRUE,
    }

	model PU_Door_RL_hmmwvht_Heavy
    {
        mesh = vehicles/hmmwvhtArmor|doorrearheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
    }

	model PU_Door_RR_hmmwvht_Heavy
    {
        mesh = vehicles/hmmwvhtArmor|doorrearheavyleft,
        texture = Vehicles/puv_parts,
        shader = vehiclewheel,
        scale = 0.004525,
        invertX = TRUE,
    }

	template vehicle PU_Armor_hmmwvht
	{
        template = ATA2Protection/part/ATA2ProtectionWindowFrontLeft,
		part ATA2ProtectionWindowFrontLeft
		{
			model Light
			{
				file = PU_FL_Window_hmmwvht_Light,
			}
			model Heavy
			{
				file = PU_FL_Window_hmmwvht_Heavy,
			}
		}

        template = ATA2Protection/part/ATA2ProtectionWindowFrontRight,
		part ATA2ProtectionWindowFrontRight
		{
			model Light
			{
				file = PU_FR_Window_hmmwvht_Light,
			}
			model Heavy
			{
				file = PU_FR_Window_hmmwvht_Heavy,
			}
		}

        template = ATA2Protection/part/ATA2ProtectionWindowRearLeft,
		part ATA2ProtectionWindowRearLeft
		{
			model Light
			{
				file = PU_RL_Window_hmmwvht_Light,
			}
			model Heavy
			{
				file = PU_RL_Window_hmmwvht_Heavy,
			}
		}

        template = ATA2Protection/part/ATA2ProtectionWindowRearRight,
		part ATA2ProtectionWindowRearRight
		{
			model Light
			{
				file = PU_RR_Window_hmmwvht_Light,
			}
			model Heavy
			{
				file = PU_RR_Window_hmmwvht_Heavy,
			}
		}

        template = ATA2Protection/part/ATA2ProtectionWindshield,
        part ATA2ProtectionWindshield
        {
            model Light
            {
                file = PU_F_Window_hmmwvht_Light,
            }
            model Heavy
            {
                file = PU_F_Window_hmmwvht_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionTrunk,
        part ATA2ProtectionTrunk
        {
            model Light
            {
                file = PU_Trunk_hmmwvht_Light,
            }
            model Heavy
            {
                file = PU_Trunk_hmmwvht_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionDoorFrontLeft,
        part ATA2ProtectionDoorFrontLeft
        {
            model Light
            {
                file = PU_Door_FL_hmmwvht_Light,
            }
            model Heavy
            {
                file = PU_Door_FL_hmmwvht_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionDoorFrontRight,
        part ATA2ProtectionDoorFrontRight
        {
            model Light
            {
                file = PU_Door_FR_hmmwvht_Light,
            }
            model Heavy
            {
                file = PU_Door_FR_hmmwvht_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionDoorRearLeft,
        part ATA2ProtectionDoorRearLeft
        {
            model Light
            {
                file = PU_Door_RL_hmmwvht_Light,
            }
            model Heavy
            {
                file = PU_Door_RL_hmmwvht_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionDoorRearRight,
        part ATA2ProtectionDoorRearRight
        {
            model Light
            {
                file = PU_Door_RR_hmmwvht_Light,
            }
            model Heavy
            {
                file = PU_Door_RR_hmmwvht_Heavy,
            }
        }

        template = ATA2Protection/part/ATA2ProtectionHood,
        part ATA2ProtectionHood
        {
            model Light
            {
                file = PU_Hood_hmmwvht_Light,
            }
            model Heavy
            {
                file = PU_Hood_hmmwvht_Heavy,
            }
        }

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

        part TireRearLeft
        {
            model ATAProtection
            {
                file = PU_Chains_RL_hmmwvht,
            }
        }

        part TireFrontRight
        {
            model ATAProtection
            {
                file = PU_Chains_FR_hmmwvht,
            }
        }

        part TireRearRight
        {
            model ATAProtection
            {
                file = PU_Chains_RR_hmmwvht,
            }
        }
	}
}