Advertisement
Guest User

Untitled

a guest
Jun 24th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 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. case ( "U_BG_Guerrilla_6_1" ) {
  40. if ( call life_coplevel >= 2 ) then {
  41. _unit setObjectTextureGlobal [ 0, "textures\Cops\hivispatroluniform.paa" ];
  42. };
  43. };
  44. case ( "U_B_CombatUniform_mcam" ) {
  45. if ( call life_coplevel >= 6 ) then {
  46. _unit setObjectTextureGlobal [ 0, "textures\Cops\patroluniform.paa" ];
  47. };
  48. };
  49. case ( "B_Carryall_cbr" ) {
  50. if ( call life_coplevel >= 1 ) then {
  51. _unit setObjectTextureGlobal [ 0, "" ];
  52. };
  53. };
  54. case ( "U_Rangemaster" ) {
  55. if ( call life_coplevel == 1 ) then {
  56. _unit setObjectTextureGlobal [ 0, "textures\Cops\pcsouniform.paa" ];
  57. };
  58. };
  59. case ( "U_Rangemaster" ) {
  60. ( call life_coplevel >= 2 ) then {
  61. _unit setObjectTextureGlobal [ 0, "textures\Cops\visuniform.paa" ];
  62. };
  63. };
  64. };
  65.  
  66. case independent: {
  67. if (uniform player isEqualTo "U_B_CombatUniform_mcam") then {
  68. player setObjectTextureGlobal [0, "textures\Medic\MedicUni.paa"];
  69. };
  70. if ((backpack player) == "B_Carryall_cbr") then {
  71. (unitbackpack player) setObjectTextureGlobal [0,"textures\Medic\medicbackpack.paa"];
  72. };
  73. };
  74. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement