// Script para colocar o patch no camelbak da WTC
// Autor: Valmo Trindade

params["_unit", "_patch"];

if ((backpack _unit == "braf_backpack_wtc_hydro_pack_olive") || (backpack _unit == "braf_backpack_wtc_hydro_pack_black")) then {
	switch (_patch) do {
		case "PA": {
			(backpackContainer _unit) setObjectTextureGlobal [1, "\braf\braf_insignia\hydro_pack\air_force_police_co.paa"];
			(backpackContainer _unit) setObjectMaterialGlobal [1, "\braf\braf_insignia\hydro_pack\air_force_police.rvmat"];
		};
		case "PE": {
			(backpackContainer _unit) setObjectTextureGlobal [1, "\braf\braf_insignia\hydro_pack\army_police_co.paa"];
			(backpackContainer _unit) setObjectMaterialGlobal [1, "\braf\braf_insignia\hydro_pack\army_police.rvmat"];
		};
		case "MP": {
			(backpackContainer _unit) setObjectTextureGlobal [1, "\braf\braf_insignia\hydro_pack\military_police_co.paa"];
			(backpackContainer _unit) setObjectMaterialGlobal [1, "\braf\braf_insignia\hydro_pack\military_police.rvmat"];
		};
		case "PM": {
			(backpackContainer _unit) setObjectTextureGlobal [1, "\braf\braf_insignia\hydro_pack\policia_militar_co.paa"];
			(backpackContainer _unit) setObjectMaterialGlobal [1, "\braf\braf_insignia\hydro_pack\policia_militar.rvmat"];
		};
		default {
			(backpackContainer _unit) setObjectTextureGlobal [1, _patch];
			(backpackContainer _unit) setObjectMaterialGlobal [1, "\braf\braf_insignia\hydro_pack\patch.rvmat"];
		};
	};
};