// Script para chamar o distintivo de arma/quadro/serviço nas fardas do exército
// Autor: Valmo Trindade

params["_unit", "_branch"];

switch (_branch) do {
	case "artilharia": {
		_unit setObjectTextureGlobal [13, "braf\braf_insignia\uniform\branch\artilharia_CO.paa"];
		_unit setObjectMaterialGlobal [13, "braf\braf_insignia\uniform\branch\artilharia.rvmat"];
	};
	case "avex": {
		_unit setObjectTextureGlobal [13, "braf\braf_insignia\uniform\branch\avex_CO.paa"];
		_unit setObjectMaterialGlobal [13, "braf\braf_insignia\uniform\branch\avex.rvmat"];
	};
	case "cavalaria": {
		_unit setObjectTextureGlobal [13, "braf\braf_insignia\uniform\branch\cavalaria_CO.paa"];
		_unit setObjectMaterialGlobal [13, "braf\braf_insignia\uniform\branch\cavalaria.rvmat"];
	};
	case "comandos": {
		_unit setObjectTextureGlobal [13, "braf\braf_insignia\uniform\branch\comandos_CO.paa"];
		_unit setObjectMaterialGlobal [13, "braf\braf_insignia\uniform\branch\comandos.rvmat"];
	};
	case "comunicacoes": {
		_unit setObjectTextureGlobal [13, "braf\braf_insignia\uniform\branch\comunicacoes_CO.paa"];
		_unit setObjectMaterialGlobal [13, "braf\braf_insignia\uniform\branch\comunicacoes.rvmat"];
	};
	case "engenharia": {
		_unit setObjectTextureGlobal [13, "braf\braf_insignia\uniform\branch\engenharia_CO.paa"];
		_unit setObjectMaterialGlobal [13, "braf\braf_insignia\uniform\branch\engenharia.rvmat"];
	};
	case "infantaria": {
		_unit setObjectTextureGlobal [13, "braf\braf_insignia\uniform\branch\infantaria_CO.paa"];
		_unit setObjectMaterialGlobal [13, "braf\braf_insignia\uniform\branch\infantaria.rvmat"];
	};
	case "intendencia": {
		_unit setObjectTextureGlobal [13, "braf\braf_insignia\uniform\branch\intendencia_CO.paa"];
		_unit setObjectMaterialGlobal [13, "braf\braf_insignia\uniform\branch\intendencia.rvmat"];
	};
	case "matbel": {
		_unit setObjectTextureGlobal [13, "braf\braf_insignia\uniform\branch\matbel_CO.paa"];
		_unit setObjectMaterialGlobal [13, "braf\braf_insignia\uniform\branch\matbel.rvmat"];
	};
	case "saude": {
		_unit setObjectTextureGlobal [13, "braf\braf_insignia\uniform\branch\saude_CO.paa"];
		_unit setObjectMaterialGlobal [13, "braf\braf_insignia\uniform\branch\saude.rvmat"];
	};
	default {
		_unit setObjectTextureGlobal [13, "braf\braf_insignia\uniform\branch\infantaria_CO.paa"];
		_unit setObjectMaterialGlobal [13, "braf\braf_insignia\uniform\branch\infantaria.rvmat"];
	};
};