module Base
{
	repeat
checkprop: Left
	model SVU_RL_Window_[LABEL][Postfix]_Light_a
 	{
		mesh = vehicles/[FILENAME]|windowrearlightleft[Postfix],
		texture = Vehicles/puv_parts,
        shader = vehicle_armor,
 		scale = [SCALE],
		static = TRUE,
 	}
	model SVU_RL_Window_[LABEL][Postfix]_Light_Spiked_a
	{
		mesh = vehicles/[FILENAME]|windowrearlightspikedleft[Postfix],
        texture = Vehicles/puv_parts,
        shader = vehicle_armor,
        scale = [SCALE],
		static = TRUE,
	}
	model SVU_RL_Window_[LABEL][Postfix]_Heavy_a
	{
		mesh = vehicles/[FILENAME]|windowrearheavyleft[Postfix],
		texture = Vehicles/puv_parts,
		shader = vehicle_armor,
		scale = [SCALE],
		static = TRUE,
	}
	model SVU_RL_Window_[LABEL][Postfix]_Heavy_Spiked_a
	{
		mesh = vehicles/[FILENAME]|windowrearheavyspikedleft[Postfix],
		texture = Vehicles/puv_parts,
		shader = vehicle_armor,
		scale = [SCALE],
		static = TRUE,
	}
	model SVU_RL_Window_[LABEL][Postfix]_Reinforced_a
	{
		mesh = vehicles/[FILENAME]|windowrearreinforcedleft[Postfix],
		texture = Vehicles/puv_parts,
		shader = vehicle_armor,
		scale = [SCALE],
		static = TRUE,
	}

	model SVU_RL_Window_[LABEL][Postfix]_Light_rust_a
 	{
		mesh = vehicles/[FILENAME]|windowrearlightleft[Postfix],
		texture = Vehicles/puv_parts_rusted,
        shader = vehicle_armor,
 		scale = [SCALE],
		static = TRUE,
 	}
	model SVU_RL_Window_[LABEL][Postfix]_Light_Spiked_rust_a
	{
		mesh = vehicles/[FILENAME]|windowrearlightspikedleft[Postfix],
        texture = Vehicles/puv_parts_rusted,
        shader = vehicle_armor,
        scale = [SCALE],
		static = TRUE,
	}
	model SVU_RL_Window_[LABEL][Postfix]_Heavy_rust_a
	{
		mesh = vehicles/[FILENAME]|windowrearheavyleft[Postfix],
		texture = Vehicles/puv_parts_rusted,
		shader = vehicle_armor,
		scale = [SCALE],
		static = TRUE,
	}
	model SVU_RL_Window_[LABEL][Postfix]_Heavy_Spiked_rust_a
	{
		mesh = vehicles/[FILENAME]|windowrearheavyspikedleft[Postfix],
		texture = Vehicles/puv_parts_rusted,
		shader = vehicle_armor,
		scale = [SCALE],
		static = TRUE,
	}
	model SVU_RL_Window_[LABEL][Postfix]_Reinforced_rust_a
	{
		mesh = vehicles/[FILENAME]|windowrearreinforcedleft[Postfix],
		texture = Vehicles/puv_parts_rusted,
		shader = vehicle_armor,
		scale = [SCALE],
		static = TRUE,
	}

end
checkprop: Right
	model SVU_RR_Window_[LABEL][Postfix]_Light_a
 	{
		mesh = vehicles/[FILENAME]|windowrearlightleft[Postfix],
		texture = Vehicles/puv_parts,
        shader = vehicle_armor,
 		scale = [SCALE],
		static = TRUE,
		invertX = TRUE,
 	}
	model SVU_RR_Window_[LABEL][Postfix]_Light_Spiked_a
	{
		mesh = vehicles/[FILENAME]|windowrearlightspikedleft[Postfix],
        texture = Vehicles/puv_parts,
        shader = vehicle_armor,
        scale = [SCALE],
		static = TRUE,
		invertX = TRUE,
	}
	model SVU_RR_Window_[LABEL][Postfix]_Heavy_a
	{
		mesh = vehicles/[FILENAME]|windowrearheavyleft[Postfix],
		texture = Vehicles/puv_parts,
		shader = vehicle_armor,
		scale = [SCALE],
		static = TRUE,
		invertX = TRUE,
	}
	model SVU_RR_Window_[LABEL][Postfix]_Heavy_Spiked_a
	{
		mesh = vehicles/[FILENAME]|windowrearheavyspikedleft[Postfix],
		texture = Vehicles/puv_parts,
		shader = vehicle_armor,
		scale = [SCALE],
		static = TRUE,
		invertX = TRUE,
	}
	model SVU_RR_Window_[LABEL][Postfix]_Reinforced_a
	{
		mesh = vehicles/[FILENAME]|windowrearreinforcedleft[Postfix],
		texture = Vehicles/puv_parts,
		shader = vehicle_armor,
		scale = [SCALE],
		static = TRUE,
		invertX = TRUE,
	}
	
	model SVU_RR_Window_[LABEL][Postfix]_Light_rust_a
 	{
		mesh = vehicles/[FILENAME]|windowrearlightleft[Postfix],
		texture = Vehicles/puv_parts_rusted,
        shader = vehicle_armor,
 		scale = [SCALE],
		static = TRUE,
		invertX = TRUE,
 	}
	model SVU_RR_Window_[LABEL][Postfix]_Light_Spiked_rust_a
	{
		mesh = vehicles/[FILENAME]|windowrearlightspikedleft[Postfix],
        texture = Vehicles/puv_parts_rusted,
        shader = vehicle_armor,
        scale = [SCALE],
		static = TRUE,
		invertX = TRUE,
	}
	model SVU_RR_Window_[LABEL][Postfix]_Heavy_rust_a
	{
		mesh = vehicles/[FILENAME]|windowrearheavyleft[Postfix],
		texture = Vehicles/puv_parts_rusted,
		shader = vehicle_armor,
		scale = [SCALE],
		static = TRUE,
		invertX = TRUE,
	}
	model SVU_RR_Window_[LABEL][Postfix]_Heavy_Spiked_rust_a
	{
		mesh = vehicles/[FILENAME]|windowrearheavyspikedleft[Postfix],
		texture = Vehicles/puv_parts_rusted,
		shader = vehicle_armor,
		scale = [SCALE],
		static = TRUE,
		invertX = TRUE,
	}
	model SVU_RR_Window_[LABEL][Postfix]_Reinforced_rust_a
	{
		mesh = vehicles/[FILENAME]|windowrearreinforcedleft[Postfix],
		texture = Vehicles/puv_parts_rusted,
		shader = vehicle_armor,
		scale = [SCALE],
		static = TRUE,
		invertX = TRUE,
	}
end

checkprop: Middle
	template vehicle PU_armor_[LABEL][Postfix]_Middle {
checkprop: Left
        part ATA2ProtectionWindowMiddleLeft
		{
			model Light
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Light_a,
			}
			model Heavy
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Heavy_a,
			}
			model LightSpiked
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Light_Spiked_a,
			}
			model HeavySpiked
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Heavy_Spiked_a,
			}
			model LightRusted
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Light_rust_a,
			}
			model HeavyRusted
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Heavy_rust_a,
			}
			model LightSpikedRusted
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Light_Spiked_rust_a,
			}
			model HeavySpikedRusted
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Heavy_Spiked_rust_a,
			}
			model Reinforced
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Reinforced_a,
			}
			model ReinforcedRusted
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Reinforced_rust_a,
			}
		}
	setflag: windowML
end
checkprop: Right
        part ATA2ProtectionWindowMiddleRight
		{
			model Light
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Light_a,
			}
			model Heavy
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Heavy_a,
			}
			model LightSpiked
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Light_Spiked_a,
			}
			model HeavySpiked
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Heavy_Spiked_a,
			}
			model LightRusted
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Light_rust_a,
			}
			model HeavyRusted
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Heavy_rust_a,
			}
			model LightSpikedRusted
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Light_Spiked_rust_a,
			}
			model HeavySpikedRusted
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Heavy_Spiked_rust_a,
			}
			model Reinforced
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Reinforced_a,
			}
			model ReinforcedRusted
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Reinforced_rust_a,
			}
		}
	setflag: windowMR
end
    }	
end
checkprop: Rear, !Middle
    template vehicle PU_armor_[LABEL][Postfix]_Rear {
checkprop: Left
        part ATA2ProtectionWindowRearLeft
		{
			model Light
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Light_a,
			}
			model Heavy
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Heavy_a,
			}
			model LightSpiked
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Light_Spiked_a,
			}
			model HeavySpiked
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Heavy_Spiked_a,
			}
			model LightRusted
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Light_rust_a,
			}
			model HeavyRusted
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Heavy_rust_a,
			}
			model LightSpikedRusted
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Light_Spiked_rust_a,
			}
			model HeavySpikedRusted
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Heavy_Spiked_rust_a,
			}
			model Reinforced
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Reinforced_a,
			}
			model ReinforcedRusted
			{
				file = SVU_RL_Window_[LABEL][Postfix]_Reinforced_rust_a,
			}
		}
	setflag: windowRL
end
checkprop: Right
        part ATA2ProtectionWindowRearRight
		{
			model Light
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Light_a,
			}
			model Heavy
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Heavy_a,
			}
			model LightSpiked
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Light_Spiked_a,
			}
			model HeavySpiked
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Heavy_Spiked_a,
			}
			model LightRusted
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Light_rust_a,
			}
			model HeavyRusted
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Heavy_rust_a,
			}
			model LightSpikedRusted
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Light_Spiked_rust_a,
			}
			model HeavySpikedRusted
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Heavy_Spiked_rust_a,
			}
			model Reinforced
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Reinforced_a,
			}
			model ReinforcedRusted
			{
				file = SVU_RR_Window_[LABEL][Postfix]_Reinforced_rust_a,
			}
		}
	setflag: windowRR
end
    }
end
	endrepeat
}