Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\..\script_macros.hpp"
- /*
- File: fn_playerSkins.sqf
- Author: Daniel Stuart modifié par Gaston Labaffe avec l'aide de destorn et Heyoxe.
- Description:
- Sets skins for players by their side and uniform.
- */
- private ["_skinName"];
- switch (playerSide) do {
- case civilian: {
- if (LIFE_SETTINGS(getNumber,"civ_skins") isEqualTo 1) then {
- if (uniform player isEqualTo "U_C_Poloshirt_blue") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_1.jpg"];
- };
- if (uniform player isEqualTo "U_C_Poloshirt_burgundy") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_2.jpg"];
- };
- if (uniform player isEqualTo "U_C_Poloshirt_stripped") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_3.jpg"];
- };
- if (uniform player isEqualTo "U_C_Poloshirt_tricolour") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_4.jpg"];
- };
- if (uniform player isEqualTo "U_C_Poloshirt_salmon") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_5.jpg"];
- };
- if (uniform player isEqualTo "U_C_Poloshirt_redwhite") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_6.jpg"];
- };
- if (uniform player isEqualTo "U_C_Commoner1_1") then {
- player setObjectTextureGlobal [0, "textures\civilian_uniform_7.jpg"];
- };
- };
- };
- case west: {
- if (FETCH_CONST(life_coplevel) >= 1) then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_1.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 2) then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_2.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 3) then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_3.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 4) then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_4.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 5) then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_5.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 6) then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_6.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 7) then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_7.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 8) then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_8.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 9) then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_9.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 10) then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_10.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 11) then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_11.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 12) then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_12.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 13) then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_13.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 14) then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_14.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 15) then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_15.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 16) then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_16.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 17) then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_17.jpg"];
- };
- //if (uniform player isEqualTo "U_Rangemaster") then {
- // player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_5.paa"];
- //};
- if (uniform player isEqualTo "U_B_CombatUniform_mcam_worn") then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\uniforme_grand_froid.jpg"];
- if (FETCH_CONST(life_coplevel) >= 1) then { player setObjectTextureGlobal [1, "textures\galon\L1.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 2) then { player setObjectTextureGlobal [1, "textures\galon\L2.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 3) then { player setObjectTextureGlobal [1, "textures\galon\L3.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 4) then { player setObjectTextureGlobal [1, "textures\galon\L4.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 5) then { player setObjectTextureGlobal [1, "textures\galon\L5.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 6) then { player setObjectTextureGlobal [1, "textures\galon\L6.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 7) then { player setObjectTextureGlobal [1, "textures\galon\L7.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 8) then { player setObjectTextureGlobal [1, "textures\galon\L8.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 9) then { player setObjectTextureGlobal [1, "textures\galon\L9.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 10) then { player setObjectTextureGlobal [1, "textures\galon\L10.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 11) then { player setObjectTextureGlobal [1, "textures\galon\L11.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 12) then { player setObjectTextureGlobal [1, "textures\galon\L12.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 13) then { player setObjectTextureGlobal [1, "textures\galon\L13.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 14) then { player setObjectTextureGlobal [1, "textures\galon\L14.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 15) then { player setObjectTextureGlobal [1, "textures\galon\L15.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 16) then { player setObjectTextureGlobal [1, "textures\galon\L16.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 17) then { player setObjectTextureGlobal [1, "textures\galon\L17.jpg"];
- };
- };
- if (uniform player isEqualTo "U_B_CombatUniform_mcam") then {
- player setObjectTextureGlobal [0, "textures\gendarmerie\uniforme_polaire.jpg"];
- if (FETCH_CONST(life_coplevel) >= 1) then { player setObjectTextureGlobal [1, "textures\galon\L1.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 2) then { player setObjectTextureGlobal [1, "textures\galon\L2.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 3) then { player setObjectTextureGlobal [1, "textures\galon\L3.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 4) then { player setObjectTextureGlobal [1, "textures\galon\L4.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 5) then { player setObjectTextureGlobal [1, "textures\galon\L5.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 6) then { player setObjectTextureGlobal [1, "textures\galon\L6.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 7) then { player setObjectTextureGlobal [1, "textures\galon\L7.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 8) then { player setObjectTextureGlobal [1, "textures\galon\L8.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 9) then { player setObjectTextureGlobal [1, "textures\galon\L9.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 10) then { player setObjectTextureGlobal [1, "textures\galon\L10.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 11) then { player setObjectTextureGlobal [1, "textures\galon\L11.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 12) then { player setObjectTextureGlobal [1, "textures\galon\L12.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 13) then { player setObjectTextureGlobal [1, "textures\galon\L13.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 14) then { player setObjectTextureGlobal [1, "textures\galon\L14.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 15) then { player setObjectTextureGlobal [1, "textures\galon\L15.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 16) then { player setObjectTextureGlobal [1, "textures\galon\L16.jpg"];
- };
- if (FETCH_CONST(life_coplevel) >= 17) then { player setObjectTextureGlobal [1, "textures\galon\L17.jpg"];
- };
- };
- if(backpack player != "") then {
- unitBackpack player setObjectTextureGlobal [0, ""];
- };
- };
- case independent: {
- if (FETCH_CONST(life_mediclevel) >= 1) then {
- player setObjectTextureGlobal [0, "textures\pompier\polo_pompier_1.jpg"];
- };
- if (FETCH_CONST(life_mediclevel) >= 2) then {
- player setObjectTextureGlobal [0, "textures\pompier\polo_pompier_2.jpg"];
- };
- if (FETCH_CONST(life_mediclevel) >= 3) then {
- player setObjectTextureGlobal [0, "textures\pompier\polo_pompier_3.jpg"];
- };
- if (FETCH_CONST(life_mediclevel) >= 4) then {
- player setObjectTextureGlobal [0, "textures\pompier\polo_pompier_4.jpg"];
- };
- if (FETCH_CONST(life_mediclevel) >= 5) then {
- player setObjectTextureGlobal [0, "textures\pompier\polo_pompier_5.jpg"];
- };
- //if (uniform player isEqualTo "U_Rangemaster") then {
- // player setObjectTextureGlobal [0, "textures\medic_uniform.jpg"];
- //};
- if (uniform player isEqualTo "U_C_WorkerCoveralls") then {
- player setObjectTextureGlobal [0, "textures\pompier\sapeur_pompier.jpg"];
- };
- if(backpack player != "") then {
- unitBackpack player setObjectTextureGlobal [0, ""];
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement