Advertisement
Guest User

Untitled

a guest
Jan 7th, 2019
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 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_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. };
  37.  
  38. case west: {
  39. if ((uniform player isEqualTo "U_Rangemaster") && { FETCH_CONST(life_coplevel) >= 0 }) then {
  40. player setObjectTextureGlobal [0, "textures\cop\policepub_shirt.paa"];
  41. };
  42. if ((FETCH_CONST(life_coplevel) >= 1) && ((uniform player) == "U_B_CombatUniform_mcam_tshirt")) then {
  43. player setObjectTextureGlobal [0, "textures\cop\police_shirt.paa"];
  44. };
  45. if ((FETCH_CONST(life_coplevel) >= 5) && ((uniform player) == "U_B_CombatUniform_mcam_worn")) then {
  46. player setObjectTextureGlobal [0, "textures\cop\swat_shirt.paa"];
  47. };
  48. };
  49.  
  50. case independent: {
  51. if(uniform player == "U_Rangemaster") then {
  52. player setObjectTextureGlobal [0, "textures\medic\medic_uniform_hv.paa"];
  53. };
  54. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement