module Base
{
	repeat
	model SVU_R_Window_[LABEL][Postfix]_Light_a
 	{
		mesh = vehicles/[FILENAME]|windowlightrear[Postfix],
		shader = vehicle_armor,
 		scale = [SCALE],
		static = FALSE,
 	}
	model SVU_R_Window_[LABEL][Postfix]_Light_Spiked_a
	{
		mesh = vehicles/[FILENAME]|windowlightspikedrear[Postfix],
        shader = vehicle_armor,
        scale = [SCALE],
		static = FALSE,
	}
	model SVU_R_Window_[LABEL][Postfix]_Heavy_a
	{
		mesh = vehicles/[FILENAME]|windowheavyrear[Postfix],
		shader = vehicle_armor,
		scale = [SCALE],
		static = FALSE,
	}
	model SVU_R_Window_[LABEL][Postfix]_Heavy_Spiked_a
	{
		mesh = vehicles/[FILENAME]|windowheavyspikedrear[Postfix],
		shader = vehicle_armor,
		scale = [SCALE],
		static = FALSE,
	}
	model SVU_R_Window_[LABEL][Postfix]_Reinforced_a
	{
		mesh = vehicles/[FILENAME]|windowreinforcedrear[Postfix],
		shader = vehicle_armor,
		scale = [SCALE],
		static = FALSE,
	}

    template vehicle PU_armor_[LABEL][Postfix]_trunkWindow {
        part ATA2ProtectionWindshieldRear
		{
			parent = DoorRear,
			model anchorNormal {
				file = VVA_SVU_Dummy,
			}
			model anchorRusted {
				file = VVA_SVU_DummyRust,
			}
			model Light
			{
				file = SVU_R_Window_[LABEL][Postfix]_Light_a,
			}
			model Heavy
			{
				file = SVU_R_Window_[LABEL][Postfix]_Heavy_a,
			}
			model LightSpiked
			{
				file = SVU_R_Window_[LABEL][Postfix]_Light_Spiked_a,
			}
			model HeavySpiked
			{
				file = SVU_R_Window_[LABEL][Postfix]_Heavy_Spiked_a,
			}
			model LightRusted
			{
				file = SVU_R_Window_[LABEL][Postfix]_Light_a,
			}
			model HeavyRusted
			{
				file = SVU_R_Window_[LABEL][Postfix]_Heavy_a,
			}
			model LightSpikedRusted
			{
				file = SVU_R_Window_[LABEL][Postfix]_Light_Spiked_a,
			}
			model HeavySpikedRusted
			{
				file = SVU_R_Window_[LABEL][Postfix]_Heavy_Spiked_a,
			}
			model Reinforced
			{
				file = SVU_R_Window_[LABEL][Postfix]_Reinforced_a,
			}
			model ReinforcedRusted
			{
				file = SVU_R_Window_[LABEL][Postfix]_Reinforced_a,
			}

			table install
            {
            	complete = ATATuning2.InstallComplete.AnchorTuning,
            }
            table uninstall
            {
            	complete = ATATuning2.UninstallComplete.AnchorTuning,
            }
            lua
            {
            	create = ATATuning2.Create.AnchorTuning,
        		init = ATATuning2.Init.AnchorTuning,
        		update = ATATuning2.Update.Protection,
            }
		}
checkprop:	addTrunk,addBaseTrunk
checkprop:	addBaseTrunk
		template! = PU_armor_[LABEL]_trunk,
else
		template! = PU_armor_[LABEL][Postfix]_trunk,
end
end
    }
	endrepeat
}