Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 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_IG_Guerilla1_1") then {
  15. player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Uniform_1.paa"];
  16. };
  17. if (uniform player isEqualTo "U_B_CTRG_1") then {
  18. player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Uniform_2.paa"];
  19. };
  20. if (uniform player isEqualTo "U_O_SpecopsUniform_ocamo") then {
  21. player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Uniform_3.paa"];
  22. };
  23. if (uniform player isEqualTo "U_O_PilotCoveralls") then {
  24. player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Uniform_4.paa"];
  25. };
  26. if (uniform player isEqualTo "U_I_PilotCoveralls") then {
  27. player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Uniform_5.paa"];
  28. };
  29. if (uniform player isEqualTo "U_O_CombatUniform_oucamo") then {
  30. player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Uniform_6.paa"];
  31. };
  32. if (uniform player isEqualTo "U_O_OfficerUniform_ocamo") then {
  33. player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Uniform_7.paa"];
  34. };
  35. if (backpack player isEqualTo "B_FieldPack_ocamo") then {
  36. unitBackpack player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Rucksack_1.paa"];
  37. };
  38. if (backpack player isEqualTo "B_Carryall_ocamo_Exp") then {
  39. unitBackpack player setObjectTextureGlobal [0, "textures\Banditen\Kleidung\Banditen_Rucksack_2.paa"];
  40. };
  41. };
  42. };
  43.  
  44. case west: {
  45. if (uniform player isEqualTo "U_Rangemaster") then {
  46. player setObjectTextureGlobal [0, "textures\Polizei\Kleidung\Polizeiuniform_OA.jpg"];
  47. };
  48. if (uniform player isEqualTo "U_B_CombatUniform") then {
  49. _skinName = "textures\Polizei\Kleidung\Polizeiuniform_OA.jpg";
  50. if (LIFE_SETTINGS(getNumber,"cop_extendedSkins") isEqualTo 1) then {
  51. if (FETCH_CONST(life_coplevel) >= 2) then {
  52. _skinName = ["textures\Polizei\Kleidung\Polizeiuniform_",(FETCH_CONST(life_coplevel)),".jpg"] joinString "";
  53. //Polizeiuniform.jpg; Polizeiuniform_1.jpg;...;Polizeiuniform_10.jpg;Polizeiuniform_11.jpg
  54. };
  55. };
  56. player setObjectTextureGlobal [0, _skinName];
  57. };
  58. };
  59.  
  60. case independent: {
  61. if (uniform player isEqualTo "U_OG_Guerilla2_3") then {
  62. player setObjectTextureGlobal [0, "textures\Feuerwehr\Kleidung\fw_kleidung.paa"];
  63. };
  64. if (backpack player isEqualTo "B_Kitbag_cbr") then {
  65. unitBackpack player setObjectTextureGlobal [0, "textures\Feuerwehr\Kleidung\fw_rucksack.paa"];
  66. };
  67. };
  68.  
  69. case east: {
  70. if (uniform player isEqualTo "U_Rangemaster") then {
  71. player setObjectTextureGlobal [0, "textures\Security\Kleidung\gladius_rangemaster.paa"];
  72. };
  73. if (uniform player isEqualTo "U_B_CTRG_1") then {
  74. player setObjectTextureGlobal [0, "textures\Security\Kleidung\gladius_uniform.paa"];
  75. };
  76. if (uniform player isEqualTo "U_B_CTRG_3") then {
  77. player setObjectTextureGlobal [0, "textures\Security\Kleidung\gladius_uniform.paa"];
  78. };
  79. if (backpack player isEqualTo "B_Carryall_oucamo") then {
  80. unitBackpack player setObjectTextureGlobal [0, "textures\Security\Kleidung\gladius_backpack.paa"];
  81. };
  82. };
  83. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement