Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.55 KB | None | 0 0
  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_B_CombatUniform_mcam") then {
  15.                 player setObjectTextureGlobal [0, "textures\Civil\Mercenaires.jpg"];
  16.             };
  17.         };
  18.     };
  19.  
  20.     case west: {
  21.         if ((FETCH_CONST(life_coplevel) >= 1) && (uniform player == "U_Rangemaster")) then {
  22.             player setObjectTextureGlobal [0, "textures\cop_uniform.jpg"];
  23.         };
  24.         if ((FETCH_CONST(life_coplevel) >= 5) && ((uniform player) == "U_B_CombatUniform_mcam")) then {
  25.                 player setObjectTextureGlobal [0, "textures\Police\PoliceHautG.jpg"];
  26.         };
  27.         if ((FETCH_CONST(life_coplevel) >= 5) && ((uniform player) == "U_B_CombatUniform_mcam_worn")) then {
  28.                 player setObjectTextureGlobal [0, "textures\Police\GIPN.jpg"];
  29.         };
  30.         if ((backpack player) == "B_Kitbag_sgg") then {
  31.                 (unitbackpack player) setObjectTextureGlobal [0,"textures\Police\SacGIPN.png"];
  32.         };
  33.     };
  34.  
  35.     case independent: {
  36.         if (uniform player isEqualTo "U_B_CombatUniform_mcam") then {
  37.             player setObjectTextureGlobal [0, "textures\samu\medic_sapeur.jpg"];
  38.         };
  39.        
  40.         if (uniform player isEqualTo "U_Rangemaster") then {
  41.             player setObjectTextureGlobal [0, "textures\samu\medic_uniform.jpg"];
  42.         };
  43.     };
  44. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement