Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 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\skins\civil\clothing\polo1.jpg"];
  16. };
  17. if (uniform player isEqualTo "U_C_Poloshirt_burgundy") then {
  18. player setObjectTextureGlobal [0, "textures\skins\civil\clothing\polo2.jpg"];
  19. };
  20. if (uniform player isEqualTo "U_C_Poloshirt_stripped") then {
  21. player setObjectTextureGlobal [0, "textures\skins\civil\clothing\polo3.jpg"];
  22. };
  23. if (uniform player isEqualTo "U_C_Poloshirt_redwhite") then {
  24. player setObjectTextureGlobal [0, "textures\skins\civil\clothing\polo4.jpg"];
  25. };
  26. if (uniform player isEqualTo "U_C_Poloshirt_salmon") then {
  27. player setObjectTextureGlobal [0, "textures\skins\civil\clothing\polo5.jpg"];
  28. };
  29. if (uniform player isEqualTo "U_C_Poloshirt_tricolour") then {
  30. player setObjectTextureGlobal [0, "textures\skins\civil\clothing\polo6.jpg"];
  31. };
  32. };
  33. };
  34.  
  35. case west: {
  36. if (uniform player isEqualTo "U_Rangemaster") then {
  37. _skinName = "textures\skins\police\clothing\coplvl1.jpg";
  38. if (LIFE_SETTINGS(getNumber,"cop_extendedSkins") isEqualTo 1) then {
  39. if (FETCH_CONST(life_coplevel) >= 1) then {
  40. _skinName = ["textures\skins\police\clothing\coplevel",(FETCH_CONST(life_coplevel)),".jpg"] joinString "";
  41. };
  42. };
  43. player setObjectTextureGlobal [0, _skinName];
  44. };
  45. };
  46.  
  47.  
  48.  
  49. case independent: {
  50. /*if (uniform player isEqualTo "U_Rangemaster") then {
  51. player setObjectTextureGlobal [0, "textures\medic_uniform.jpg"];
  52. };*/
  53. };
  54. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement