SHARE
TWEET

palyerskin

a guest Dec 16th, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "..\..\script_macros.hpp"
  2. /*
  3.     File: fn_playerSkins.sqf
  4.     Author: Daniel Stuart
  5.  
  6.     Description:
  7.     Sets skins for players by their side and uniform.
  8. */
  9. private ["_skinName"];
  10.  
  11. switch (playerSide) do {
  12.     case civilian: {
  13.         if (LIFE_SETTINGS(getNumber,"civ_skins") isEqualTo 1) then {
  14.             if (uniform player isEqualTo "U_C_Poloshirt_blue") then {
  15.                 player setObjectTextureGlobal [0, "textures\civilian_uniform_1.jpg"];
  16.             };
  17.             if (uniform player isEqualTo "U_C_Poloshirt_burgundy") then {
  18.                 player setObjectTextureGlobal [0, "textures\civilian_uniform_2.jpg"];
  19.             };
  20.             if (uniform player isEqualTo "U_C_Poloshirt_stripped") then {
  21.                 player setObjectTextureGlobal [0, "textures\civilian_uniform_3.jpg"];
  22.             };
  23.             if (uniform player isEqualTo "U_C_Poloshirt_tricolour") then {
  24.                 player setObjectTextureGlobal [0, "textures\civilian_uniform_4.jpg"];
  25.             };
  26.             if (uniform player isEqualTo "U_C_Poloshirt_salmon") then {
  27.                 player setObjectTextureGlobal [0, "textures\civilian_uniform_5.jpg"];
  28.             };
  29.             if (uniform player isEqualTo "U_C_Poloshirt_redwhite") then {
  30.                 player setObjectTextureGlobal [0, "textures\civilian_uniform_6.jpg"];
  31.             };
  32.             if (uniform player isEqualTo "U_C_Commoner1_1") then {
  33.                 player setObjectTextureGlobal [0, "textures\civilian_uniform_7.jpg"];
  34.             };
  35.         };
  36.         if (uniform player isEqualTo "U_C_Scientist") then {
  37.             player setObjectTextureGlobal [0, "textures\detenuto.jpg"];
  38.         };
  39.     };
  40.  
  41.     case west: {
  42.         if (uniform player isEqualTo "U_Rangemaster") then {
  43.             _skinName = "textures\cop_uniform.jpg";
  44.         };
  45.         if (uniform player isEqualTo "U_B_CombatUniform_mcam_vest" && call life_coplevel >= 3) then {
  46.             _skinName = "textures\cop_gis.jpg";
  47.         };
  48.         if (uniform player isEqualTo "U_B_CombatUniform_mcam_worn" && call life_coplevel >= 3) then {
  49.             _skinName = "textures\cop_gis.jpg";
  50.         };
  51.         player setObjectTextureGlobal [0, _skinName];
  52.       /*if (uniform player isEqualTo "U_Rangemaster") then {
  53.             _skinName = "textures\cop_uniform.jpg";
  54.             if (LIFE_SETTINGS(getNumber,"cop_extendedSkins") isEqualTo 1) then {
  55.                 if (FETCH_CONST(life_coplevel) >= 1) then {
  56.                     _skinName = ["textures\cop_uniform_",(FETCH_CONST(life_coplevel)),".jpg"] joinString "";
  57.                 };
  58.             };
  59.             player setObjectTextureGlobal [0, _skinName];
  60.         }; */
  61.     };
  62.  
  63.     case independent: {
  64.         if (uniform player isEqualTo "U_Rangemaster") then {
  65.             player setObjectTextureGlobal [0, "textures\medic_uniform.jpg"];
  66.         };
  67.         if (uniform player isEqualTo "U_B_CombatUniform_mcam_vest") then {
  68.             player setObjectTextureGlobal [0, "textures\medic_super.jpg"];
  69.         };
  70.         if (backpack player isEqualTo "B_Carryall_khk") then {
  71.             (unitbackpack player) setObjectTextureGlobal [0,"textures\med_bac.jpg"];
  72.         };
  73.     };
  74. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top