Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////airlift
- diag_log format ["############################# %1 #############################", missionName];
- if (!isNil "d_init_started") exitWith {};
- d_init_started = true;
- X_INIT = false;X_Server = false; X_Client = false; X_JIP = false;X_SPE = false;X_MP = isMultiplayer;
- #define __waitpl [] spawn {waitUntil {!isNull player};X_INIT = true}
- if (isServer) then {
- X_Server = true;
- if (!isDedicated) then {
- X_Client = true;
- X_SPE = true;
- __waitpl;
- } else {
- X_INIT = true;
- };
- } else {
- X_Client = true;
- if (isNull player) then {
- X_JIP = true;
- __waitpl;
- } else {
- X_INIT = true;
- };
- };
- if (isNil "x_funcs1_compiled") then {
- call compile preprocessFileLineNumbers "DomiLiftScript\DFR\x_functions1.sqf";
- call compile preprocessFileLineNumbers "DomiLiftScript\DFR\x_netinit.sqf";
- };
- // chopper varname, type (0 = lift chopper, 2 = normal chopper), marker name, unique number, marker type, marker color, marker text, chopper display name
- d_choppers = [
- ["ch1",0,"chopper1",301,"n_air","ColorWhite","1","Zaphir 1"], ["ch2",0,"chopper2",302,"n_air","ColorWhite","2","Zaphir 2"]
- ];
- d_helilift1_types =
- ["UO_Egt_Car_M2UP","UO_Egt_Car_Mk19","UO_Egt_Car_Util","UO_Egt_Armor_M113"];
- for "_i" from 0 to (count d_choppers - 1) do {
- _elem = d_choppers select _i;
- switch (_elem select 1) do {
- case 0: {_elem set [count _elem, d_helilift1_types]};
- };
- };
- d_chophud_on = true;
- d_show_chopper_welcome = true;
- if (isServer) then {
- // 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
- [[ch1,301,true],[ch2,302,true]] execVM "DomiLiftScript\DFR\x_helirespawn2.sqf";
- };
- if (!X_Client) exitWith {};
- ////airlift end
Add Comment
Please, Sign In to add comment