lowheartrate

fn_Uniformscolor.sqf

Aug 1st, 2015
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 4.50 KB | None | 0 0
  1. #include <macro.h>
  2. /*
  3.     COP UNIFORM SCRIPT
  4.     Edited: by maximum for better handling of actual uniforms
  5.     Created for www.altisliferpg.com
  6. */
  7. #define FETCH_CONST(var) (call var)
  8.  
  9. // Medic Uniform(s)
  10. if(side player == independent) then {
  11.     if ((uniform player) == "U_B_CombatUniform_mcam") then {
  12.         player setObjectTextureGlobal [0, "textures\medic\medic_uniform.jpg"];
  13.     };
  14. };
  15.  
  16.  
  17.  
  18. // Civilian Clothing
  19. if(side player == civilian) then {
  20.     // Prisoner
  21.     if(side player == civilian && uniform player == "U_C_Poloshirt_blue") then {
  22.     player setObjectTextureGlobal [0, "textures\civilians\wolf.jpg"];
  23.     };
  24.    
  25.    
  26.  
  27.     // Black wolf
  28.     if(side player == civilian && uniform player == "U_C_Poloshirt_burgundy") then {
  29.     player setObjectTextureGlobal [0, "textures\civilians\cat.jpg"];
  30.     };
  31.    
  32.    
  33.    
  34.     if(side player == civilian && uniform player == "U_C_Poloshirt_stripped") then {
  35.     player setObjectTextureGlobal [0, "textures\civilians\cloud.jpg"];
  36.     };
  37.    
  38.    
  39.    
  40.     if(side player == civilian && uniform player == "U_C_Poloshirt_tricolour") then {
  41.     player setObjectTextureGlobal [0, "textures\civilians\hand.jpg"];
  42.     };
  43.    
  44.    
  45.    
  46.     if(side player == civilian && uniform player == "U_C_Poloshirt_salmon") then {
  47.     player setObjectTextureGlobal [0, "textures\civilians\pika.jpg"];
  48.     };
  49.    
  50.    
  51.    
  52.     if(side player == civilian && uniform player == "U_C_Poloshirt_redwhite") then {
  53.     player setObjectTextureGlobal [0, "textures\civilians\polcol.jpg"];
  54.     };
  55.    
  56.    
  57.    
  58.     if(side player == civilian && uniform player == "U_C_Commoner1_1") then {
  59.     player setObjectTextureGlobal [0, "textures\civilians\tiger.jpg"];
  60.     };
  61. };
  62.  
  63.  
  64.  
  65. // Police Uniforms
  66. if(side player == WEST) then {
  67.     // Trainee - Cadet cop uniform.
  68.     if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 1 OR FETCH_CONST(life_coplevel) == 2)) then {
  69.         player setObjectTextureGlobal [0, "textures\police\police.jpg"];
  70.     };
  71.  
  72.    
  73.    
  74.     // Patrol Officer uniform.
  75.     if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 3)) then {
  76.         player setObjectTextureGlobal [0, "textures\police\po.jpg"];
  77.     };
  78.    
  79.    
  80.     // Senior Patrol Officer uniform
  81.     if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 4)) then {
  82.         player setObjectTextureGlobal [0, "textures\police\spo.jpg"];
  83.     };
  84.    
  85.    
  86.    
  87.     // Sergeant
  88.     if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 5)) then {
  89.         player setObjectTextureGlobal [0, "textures\police\sergeant.jpg"];
  90.     };
  91.    
  92.    
  93.    
  94.     // Lieutenant
  95.     if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 6)) then {
  96.         player setObjectTextureGlobal [0, "textures\police\lt.jpg"];
  97.     };
  98.    
  99.    
  100.    
  101.     // Police Captain
  102.     if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 7)) then {
  103.         player setObjectTextureGlobal [0, "textures\police\captain.jpg"];
  104.     };
  105.    
  106.    
  107.    
  108.     // Police Assistant Chief  
  109.     if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 8)) then {
  110.         player setObjectTextureGlobal [0, "textures\police\police.jpg"];
  111.     };
  112.    
  113.  
  114.    
  115.     // Police Chief
  116.     if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 9)) then {
  117.         player setObjectTextureGlobal [0, "textures\police\ast_chief.jpg"];
  118.     };
  119.    
  120.    
  121.    
  122.     // Police Assistant Commissioner
  123.     if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 10)) then {
  124.         player setObjectTextureGlobal [0, "textures\police\ast_commissioner.jpg"];
  125.     };
  126.    
  127.    
  128.    
  129.     // Police Commissioner
  130.     if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 11)) then {
  131.         player setObjectTextureGlobal [0, "textures\police\commissioner.jpg"];
  132.     };
  133.    
  134.    
  135.     // SWAT Private
  136.     if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 12)) then {
  137.         player setObjectTextureGlobal [0, "textures\police\swat_private.jpg"];
  138.     };
  139.    
  140.    
  141.     // SWAT Sergeant
  142.     if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 13)) then {
  143.         player setObjectTextureGlobal [0, "textures\police\swat_sergeant.jpg"];
  144.     };
  145.    
  146.    
  147.     // SWAT Captain
  148.     if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 14)) then {
  149.         player setObjectTextureGlobal [0, "textures\police\swat_captain.jpg"];
  150.     };
  151.    
  152.    
  153.     // SWAT Vice Commander
  154.     if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 15)) then {
  155.         player setObjectTextureGlobal [0, "textures\police\swat_vice_commander.jpg"];
  156.     };
  157.    
  158.    
  159.     // SWAT Commander
  160.     if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 16)) then {
  161.         player setObjectTextureGlobal [0, "textures\police\swat_commander.jpg"];
  162.     };
  163. };
Advertisement
Add Comment
Please, Sign In to add comment