Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 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. if (uniform player isEqualTo "U_Rangemaster") then {
  36. player setObjectTextureGlobal [0, "textures\admin\uniform.jpg"];
  37. };
  38. };
  39. };
  40.  
  41. case west: {
  42.  
  43. // Cadet rank skin
  44. if (uniform player isEqualTo "U_Rangemaster") then {
  45. player setObjectTextureGlobal [0, "textures\cop\clothing\cop_uniform.jpg"];
  46. };
  47.  
  48. // Officer rank skin
  49. if (uniform player isEqualTo "U_B_CombatUniform_mcam_worn") then {
  50. player setObjectTextureGlobal [0, "textures\cop\clothing\cop_officer.jpg"];
  51. };
  52. if (uniform player isEqualTo "U_Rangemaster") then {
  53. player setObjectTextureGlobal [0, "textures\admin\uniform.jpg"];
  54.  
  55. // Hide backpack
  56. if (backpack player isEqualTo "B_Carryall_cbr") then {
  57. backpackContainer player setObjectTextureGlobal [0, ""];
  58. };
  59.  
  60. };
  61.  
  62. case independent: {
  63.  
  64. //Ambulance Skin
  65. if (uniform player isEqualTo "U_Rangemaster") then {
  66. player setObjectTextureGlobal [0, "textures\medic\clothing\medic_uniform.paa"];
  67.  
  68. };
  69. if (uniform player isEqualTo "U_B_CombatUniform_mcam_worn") then {
  70. player setObjectTextureGlobal [0, "textures\medic\clothing\Medic_CTRG3.paa"];
  71.  
  72. };
  73. if (uniform player isEqualTo "U_OG_Guerilla2_3") then {
  74. player setObjectTextureGlobal [0, "textures\medic\clothing\Medic_Guerilla.paa"];
  75.  
  76. };
  77. // Hide backpack
  78. if (backpack player isEqualTo "B_Carryall_cbr") then {
  79. backpackContainer player setObjectTextureGlobal [0, ""];
  80. };
  81. if (uniform player isEqualTo "U_Rangemaster") then {
  82. player setObjectTextureGlobal [0, "textures\admin\uniform.jpg"];
  83.  
  84. };
  85. if (uniform player isEqualTo "") then {
  86. player setObjectTextureGlobal [0, "textures\towing\clothing\Tow-overall.jpg"];
  87. };
  88.  
  89. };
  90. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement