Advertisement
DarkSilencer

Untitled

Feb 21st, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 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. switch(playerSide) do {
  10. case civilian: {
  11. if(EQUAL(LIFE_SETTINGS(getNumber,"civ_skins"),1)) then {
  12. if(uniform player == "U_C_Poloshirt_blue") then {
  13. player setObjectTextureGlobal [0, "textures\civilian_uniform_1.jpg"];
  14. };
  15. if(uniform player == "U_C_Poloshirt_burgundy") then {
  16. player setObjectTextureGlobal [0, "textures\civilian_uniform_2.jpg"];
  17. };
  18. if(uniform player == "U_C_Poloshirt_stripped") then {
  19. player setObjectTextureGlobal [0, "textures\civilian_uniform_3.jpg"];
  20. };
  21. if(uniform player == "U_C_Poloshirt_tricolour") then {
  22. player setObjectTextureGlobal [0, "textures\civilian_uniform_4.jpg"];
  23. };
  24. if(uniform player == "U_C_Poloshirt_salmon") then {
  25. player setObjectTextureGlobal [0, "textures\civilian_uniform_5.jpg"];
  26. };
  27. if(uniform player == "U_C_Poloshirt_redwhite") then {
  28. player setObjectTextureGlobal [0, "textures\civilian_uniform_6.jpg"];
  29. };
  30. if(uniform player == "U_C_Commoner1_1") then {
  31. player setObjectTextureGlobal [0, "textures\civilian_uniform_7.jpg"];
  32. };
  33. };
  34. };
  35. case west: {
  36. if(uniform player == "U_B_CombatUniform_mcam") then {
  37. player setObjectTextureGlobal [0, "textures\Uniforms\Police\Uniform_Police.paa"];
  38. };
  39. if(backpack player != "") then
  40. {
  41. [[unitBackpack player,0,""],"life_fnc_setTexture",true,false] spawn life_fnc_MP;
  42. };
  43. };
  44. case independent: {
  45. if(uniform player == "U_B_CombatUniform_mcam") then {
  46. player setObjectTextureGlobal [0, "textures\Uniforms\Medic\Uniform_Medic.paa"];
  47. };
  48. if(backpack player != "") then
  49. {
  50. [[unitBackpack player,0,""],"life_fnc_setTexture",true,false] spawn life_fnc_MP;
  51. };
  52. };
  53. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement