Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 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 ((backpack player) isEqualTo "B_Carryall_cbr") then {
  40. (unitbackpack player) setObjectTextureGlobal [0,""];
  41. };
  42. if ((uniform player) in ["U_B_CombatUniform_mcam", "U_B_CombatUniform_mcam"]) then {
  43. if ((uniform player) isEqualTo "U_B_CombatUniform_mcam") then {
  44. if ((FETCH_CONST(life_coplevel) >= 0) && (FETCH_CONST(life_coplevel) <= 4)) exitWith {
  45. player setObjectTextureGlobal [0, "textures\Police\cop_uniform.paa"];
  46. };
  47.  
  48. if (FETCH_CONST(life_coplevel) isEqualTo 5) then {
  49. player setObjectTextureGlobal [0, "textures\Police\higher_uniform.paa"];
  50. };
  51. } else {
  52. if ((FETCH_CONST(life_coplevel) >= 6) && (FETCH_CONST(life_coplevel) <= 7)) exitWith {
  53. player setObjectTextureGlobal [0, "textures\Police\higher_uniform.paa"];
  54. };
  55.  
  56. if ((FETCH_CONST(life_coplevel) >= 8) && (FETCH_CONST(life_coplevel) <= 10)) exitWith {
  57. player setObjectTextureGlobal [0, "textures\Police\swat_uniform.paa"];
  58. };
  59.  
  60. if (FETCH_CONST(life_coplevel) isEqualTo 11) then {
  61. player setObjectTextureGlobal [0, "textures\Police\swat_uniform.paa"];
  62. };
  63. };
  64. };
  65. };
  66.  
  67. case resistance: {
  68. if (uniform player isEqualTo "U_B_CombatUniform_mcam") then {
  69. player setObjectTextureGlobal [0, "textures\medic\uniform_medic.paa"];
  70. };
  71. if (backpack player != "") then {
  72. (backpackContainer player) setObjectTextureGlobal [0, ""];
  73. };
  74. };
  75. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement