Advertisement
Krakers974

fn_playerSkins.sqf

Jul 21st, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.58 KB | None | 0 0
  1. #include "..\..\script_macros.hpp"
  2. /*
  3. File: fn_playerSkins.sqf
  4. Author: Daniel Stuart modifié par Gaston Labaffe avec l'aide de destorn et Heyoxe.
  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 (FETCH_CONST(life_coplevel) >= 1) then {
  40. player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_1.jpg"];
  41. };
  42. if (FETCH_CONST(life_coplevel) >= 2) then {
  43. player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_2.jpg"];
  44. };
  45. if (FETCH_CONST(life_coplevel) >= 3) then {
  46. player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_3.jpg"];
  47. };
  48. if (FETCH_CONST(life_coplevel) >= 4) then {
  49. player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_4.jpg"];
  50. };
  51. if (FETCH_CONST(life_coplevel) >= 5) then {
  52. player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_5.jpg"];
  53. };
  54. if (FETCH_CONST(life_coplevel) >= 6) then {
  55. player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_6.jpg"];
  56. };
  57. if (FETCH_CONST(life_coplevel) >= 7) then {
  58. player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_7.jpg"];
  59. };
  60. if (FETCH_CONST(life_coplevel) >= 8) then {
  61. player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_8.jpg"];
  62. };
  63. if (FETCH_CONST(life_coplevel) >= 9) then {
  64. player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_9.jpg"];
  65. };
  66. if (FETCH_CONST(life_coplevel) >= 10) then {
  67. player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_10.jpg"];
  68. };
  69. if (FETCH_CONST(life_coplevel) >= 11) then {
  70. player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_11.jpg"];
  71. };
  72. if (FETCH_CONST(life_coplevel) >= 12) then {
  73. player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_12.jpg"];
  74. };
  75. if (FETCH_CONST(life_coplevel) >= 13) then {
  76. player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_13.jpg"];
  77. };
  78. if (FETCH_CONST(life_coplevel) >= 14) then {
  79. player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_14.jpg"];
  80. };
  81. if (FETCH_CONST(life_coplevel) >= 15) then {
  82. player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_15.jpg"];
  83. };
  84. if (FETCH_CONST(life_coplevel) >= 16) then {
  85. player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_16.jpg"];
  86. };
  87. if (FETCH_CONST(life_coplevel) >= 17) then {
  88. player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_17.jpg"];
  89. };
  90. //if (uniform player isEqualTo "U_Rangemaster") then {
  91. // player setObjectTextureGlobal [0, "textures\gendarmerie\polo_gendarmerie_5.paa"];
  92. //};
  93. if (uniform player isEqualTo "U_B_CombatUniform_mcam_worn") then {
  94. player setObjectTextureGlobal [0, "textures\gendarmerie\uniforme_grand_froid.jpg"];
  95. if (FETCH_CONST(life_coplevel) >= 1) then { player setObjectTextureGlobal [1, "textures\galon\L1.jpg"];
  96. };
  97. if (FETCH_CONST(life_coplevel) >= 2) then { player setObjectTextureGlobal [1, "textures\galon\L2.jpg"];
  98. };
  99. if (FETCH_CONST(life_coplevel) >= 3) then { player setObjectTextureGlobal [1, "textures\galon\L3.jpg"];
  100. };
  101. if (FETCH_CONST(life_coplevel) >= 4) then { player setObjectTextureGlobal [1, "textures\galon\L4.jpg"];
  102. };
  103. if (FETCH_CONST(life_coplevel) >= 5) then { player setObjectTextureGlobal [1, "textures\galon\L5.jpg"];
  104. };
  105. if (FETCH_CONST(life_coplevel) >= 6) then { player setObjectTextureGlobal [1, "textures\galon\L6.jpg"];
  106. };
  107. if (FETCH_CONST(life_coplevel) >= 7) then { player setObjectTextureGlobal [1, "textures\galon\L7.jpg"];
  108. };
  109. if (FETCH_CONST(life_coplevel) >= 8) then { player setObjectTextureGlobal [1, "textures\galon\L8.jpg"];
  110. };
  111. if (FETCH_CONST(life_coplevel) >= 9) then { player setObjectTextureGlobal [1, "textures\galon\L9.jpg"];
  112. };
  113. if (FETCH_CONST(life_coplevel) >= 10) then { player setObjectTextureGlobal [1, "textures\galon\L10.jpg"];
  114. };
  115. if (FETCH_CONST(life_coplevel) >= 11) then { player setObjectTextureGlobal [1, "textures\galon\L11.jpg"];
  116. };
  117. if (FETCH_CONST(life_coplevel) >= 12) then { player setObjectTextureGlobal [1, "textures\galon\L12.jpg"];
  118. };
  119. if (FETCH_CONST(life_coplevel) >= 13) then { player setObjectTextureGlobal [1, "textures\galon\L13.jpg"];
  120. };
  121. if (FETCH_CONST(life_coplevel) >= 14) then { player setObjectTextureGlobal [1, "textures\galon\L14.jpg"];
  122. };
  123. if (FETCH_CONST(life_coplevel) >= 15) then { player setObjectTextureGlobal [1, "textures\galon\L15.jpg"];
  124. };
  125. if (FETCH_CONST(life_coplevel) >= 16) then { player setObjectTextureGlobal [1, "textures\galon\L16.jpg"];
  126. };
  127. if (FETCH_CONST(life_coplevel) >= 17) then { player setObjectTextureGlobal [1, "textures\galon\L17.jpg"];
  128. };
  129. };
  130. if (uniform player isEqualTo "U_B_CombatUniform_mcam") then {
  131. player setObjectTextureGlobal [0, "textures\gendarmerie\uniforme_polaire.jpg"];
  132. if (FETCH_CONST(life_coplevel) >= 1) then { player setObjectTextureGlobal [1, "textures\galon\L1.jpg"];
  133. };
  134. if (FETCH_CONST(life_coplevel) >= 2) then { player setObjectTextureGlobal [1, "textures\galon\L2.jpg"];
  135. };
  136. if (FETCH_CONST(life_coplevel) >= 3) then { player setObjectTextureGlobal [1, "textures\galon\L3.jpg"];
  137. };
  138. if (FETCH_CONST(life_coplevel) >= 4) then { player setObjectTextureGlobal [1, "textures\galon\L4.jpg"];
  139. };
  140. if (FETCH_CONST(life_coplevel) >= 5) then { player setObjectTextureGlobal [1, "textures\galon\L5.jpg"];
  141. };
  142. if (FETCH_CONST(life_coplevel) >= 6) then { player setObjectTextureGlobal [1, "textures\galon\L6.jpg"];
  143. };
  144. if (FETCH_CONST(life_coplevel) >= 7) then { player setObjectTextureGlobal [1, "textures\galon\L7.jpg"];
  145. };
  146. if (FETCH_CONST(life_coplevel) >= 8) then { player setObjectTextureGlobal [1, "textures\galon\L8.jpg"];
  147. };
  148. if (FETCH_CONST(life_coplevel) >= 9) then { player setObjectTextureGlobal [1, "textures\galon\L9.jpg"];
  149. };
  150. if (FETCH_CONST(life_coplevel) >= 10) then { player setObjectTextureGlobal [1, "textures\galon\L10.jpg"];
  151. };
  152. if (FETCH_CONST(life_coplevel) >= 11) then { player setObjectTextureGlobal [1, "textures\galon\L11.jpg"];
  153. };
  154. if (FETCH_CONST(life_coplevel) >= 12) then { player setObjectTextureGlobal [1, "textures\galon\L12.jpg"];
  155. };
  156. if (FETCH_CONST(life_coplevel) >= 13) then { player setObjectTextureGlobal [1, "textures\galon\L13.jpg"];
  157. };
  158. if (FETCH_CONST(life_coplevel) >= 14) then { player setObjectTextureGlobal [1, "textures\galon\L14.jpg"];
  159. };
  160. if (FETCH_CONST(life_coplevel) >= 15) then { player setObjectTextureGlobal [1, "textures\galon\L15.jpg"];
  161. };
  162. if (FETCH_CONST(life_coplevel) >= 16) then { player setObjectTextureGlobal [1, "textures\galon\L16.jpg"];
  163. };
  164. if (FETCH_CONST(life_coplevel) >= 17) then { player setObjectTextureGlobal [1, "textures\galon\L17.jpg"];
  165. };
  166. };
  167. if(backpack player != "") then {
  168. unitBackpack player setObjectTextureGlobal [0, ""];
  169. };
  170. };
  171.  
  172. case independent: {
  173. if (FETCH_CONST(life_mediclevel) >= 1) then {
  174. player setObjectTextureGlobal [0, "textures\pompier\polo_pompier_1.jpg"];
  175. };
  176. if (FETCH_CONST(life_mediclevel) >= 2) then {
  177. player setObjectTextureGlobal [0, "textures\pompier\polo_pompier_2.jpg"];
  178. };
  179. if (FETCH_CONST(life_mediclevel) >= 3) then {
  180. player setObjectTextureGlobal [0, "textures\pompier\polo_pompier_3.jpg"];
  181. };
  182. if (FETCH_CONST(life_mediclevel) >= 4) then {
  183. player setObjectTextureGlobal [0, "textures\pompier\polo_pompier_4.jpg"];
  184. };
  185. if (FETCH_CONST(life_mediclevel) >= 5) then {
  186. player setObjectTextureGlobal [0, "textures\pompier\polo_pompier_5.jpg"];
  187. };
  188. //if (uniform player isEqualTo "U_Rangemaster") then {
  189. // player setObjectTextureGlobal [0, "textures\medic_uniform.jpg"];
  190. //};
  191. if (uniform player isEqualTo "U_C_WorkerCoveralls") then {
  192. player setObjectTextureGlobal [0, "textures\pompier\sapeur_pompier.jpg"];
  193. };
  194. if(backpack player != "") then {
  195. unitBackpack player setObjectTextureGlobal [0, ""];
  196. };
  197. };
  198. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement