Guest User

Untitled

a guest
May 20th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. ////airlift
  2. diag_log format ["############################# %1 #############################", missionName];
  3.  
  4. if (!isNil "d_init_started") exitWith {};
  5. d_init_started = true;
  6.  
  7. X_INIT = false;X_Server = false; X_Client = false; X_JIP = false;X_SPE = false;X_MP = isMultiplayer;
  8.  
  9. #define __waitpl [] spawn {waitUntil {!isNull player};X_INIT = true}
  10. if (isServer) then {
  11. X_Server = true;
  12. if (!isDedicated) then {
  13. X_Client = true;
  14. X_SPE = true;
  15. __waitpl;
  16. } else {
  17. X_INIT = true;
  18. };
  19. } else {
  20. X_Client = true;
  21. if (isNull player) then {
  22. X_JIP = true;
  23. __waitpl;
  24. } else {
  25. X_INIT = true;
  26. };
  27. };
  28.  
  29. if (isNil "x_funcs1_compiled") then {
  30. call compile preprocessFileLineNumbers "DomiLiftScript\DFR\x_functions1.sqf";
  31. call compile preprocessFileLineNumbers "DomiLiftScript\DFR\x_netinit.sqf";
  32. };
  33.  
  34. // chopper varname, type (0 = lift chopper, 2 = normal chopper), marker name, unique number, marker type, marker color, marker text, chopper display name
  35. d_choppers = [
  36. ["ch1",0,"chopper1",301,"n_air","ColorWhite","1","Zaphir 1"], ["ch2",0,"chopper2",302,"n_air","ColorWhite","2","Zaphir 2"]
  37. ];
  38.  
  39. d_helilift1_types =
  40. ["UO_Egt_Car_M2UP","UO_Egt_Car_Mk19","UO_Egt_Car_Util","UO_Egt_Armor_M113"];
  41.  
  42. for "_i" from 0 to (count d_choppers - 1) do {
  43. _elem = d_choppers select _i;
  44. switch (_elem select 1) do {
  45. case 0: {_elem set [count _elem, d_helilift1_types]};
  46. };
  47. };
  48.  
  49. d_chophud_on = true;
  50. d_show_chopper_welcome = true;
  51.  
  52. if (isServer) then {
  53.  
  54. // editor varname, unique number, true = respawn only when the chopper is completely destroyed, false = respawn after some time when no crew is in or chopper is destroyed
  55. [[ch1,301,true],[ch2,302,true]] execVM "DomiLiftScript\DFR\x_helirespawn2.sqf";
  56.  
  57. };
  58. if (!X_Client) exitWith {};
  59. ////airlift end
Add Comment
Please, Sign In to add comment