module Base
{
    model ATAMustangProtectionWindowFrontLeft
    {
        mesh = vehicles/ATA_Mustang_model|Window_Armor_left,
        texture = Vehicles/ATA_Mustang_items,
        shader = vehiclewheel,
        scale = 0.02,
    }
    model ATAMustangProtectionWindowFrontRight
    {
        mesh = vehicles/ATA_Mustang_model|Window_Armor_right,
        texture = Vehicles/ATA_Mustang_items,
        shader = vehiclewheel,
        scale = 0.02,
    }
    model ATAMustangProtectionWindowFrontLeftMovablePart
    {
        mesh = vehicles/ATA_Mustang_model|Window_ArmorDoor_left,
        texture = Vehicles/ATA_Mustang_items,
        static = FALSE,
        shader = vehicle,
        scale = 0.02,
    }
    model ATAMustangProtectionWindowFrontRightMovablePart
    {
        mesh = vehicles/ATA_Mustang_model|Window_ArmorDoor_right,
        texture = Vehicles/ATA_Mustang_items,
        static = FALSE,
        shader = vehicle,
        scale = 0.02,
    }
    model ATAMustangProtectionWindowFront
    {
        mesh = vehicles/ATA_Mustang_model|Window_Armor_front,
        texture = Vehicles/ATA_Mustang_items,
        shader = vehiclewheel,
        scale = 0.02,
    }
    model ATAMustangProtectionWindowRear
    {
        mesh = vehicles/ATA_Mustang_model|Window_Armor_rear,
        texture = Vehicles/ATA_Mustang_items,
        shader = vehiclewheel,
        scale = 0.02,
    }
    
    template vehicle ATAMustang_ProtectionWindows
    {
        template = ATA2Protection/part/ATA2ProtectionWindowFrontLeft,
        part ATA2ProtectionWindowFrontLeft
        {
            model Default
            {
                file = ATAMustangProtectionWindowFrontLeftMovablePart,
                rotate = -90 0 0,
            }
            model StaticPart
            {
                file = ATAMustangProtectionWindowFrontLeft,
            }
            anim Close
            {
                anim = WprotectionL_closing,
                rate = 1.5,
            }
            anim Open
            {
                anim = WprotectionL_closing,
                reverse = TRUE,
                rate = 1.5,
            }
            anim Closed
            {
                anim = WprotectionL_closing,
                reverse = TRUE,
                animate = FALSE,
            }
            anim Opened
            {
                anim = WprotectionL_closing,
                reverse = FALSE,
                animate = FALSE,
            }
        }
        
        template = ATA2Protection/part/ATA2ProtectionWindowFrontRight,
        part ATA2ProtectionWindowFrontRight
        {
            model Default
            {
                file = ATAMustangProtectionWindowFrontRightMovablePart,
                rotate = -90 0 0,
            }
            model StaticPart
            {
                file = ATAMustangProtectionWindowFrontRight,
            }
            
            anim Close
            {
                anim = WprotectionR_closing,
                rate = 1.5,
            }
            anim Open
            {
                anim = WprotectionR_closing,
                reverse = TRUE,
                rate = 1.5,
            }
            anim Closed
            {
                anim = WprotectionR_closing,
                reverse = TRUE,
                animate = FALSE,
            }
            anim Opened
            {
                anim = WprotectionR_closing,
                animate = FALSE,
            }
        }
        
        template = ATA2Protection/part/ATA2ProtectionWindshield,
        part ATA2ProtectionWindshield
        {
            model Default
            {
                file = ATAMustangProtectionWindowFront,
            }
        }
        template = ATA2Protection/part/ATA2ProtectionWindshieldRear,
        part ATA2ProtectionWindshieldRear
        {
            model Default
            {
                file = ATAMustangProtectionWindowRear,
            }
        }
    }
}