player2_dz

Untitled

Mar 3rd, 2015
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.00 KB | None | 0 0
  1. /*---------------------------------------------------------------------------
  2. Headless Client
  3. ---------------------------------------------------------------------------*/
  4. if (!hasInterface && !isDedicated && !isServer) exitWith {
  5.     p2d_headless = true;
  6.  
  7.     diag_log("Init.sqf: ZombZ Headless Client");
  8.  
  9.     //Make sure headless is in civillian slot
  10.     [] spawn { waitUntil{ uiSleep 5; ((format["%1", (side player)]) != "UNKNOWN")}; if ((format["%1", (side player)]) != "CIV") then { endMission "END1"; }; };
  11.    
  12.     //Wait for BIS Functions to load   
  13.     waitUntil {!isNil "BIS_fnc_init"};
  14.  
  15.     //Disable BIS Effects
  16.     BIS_Effects_Burn =                  {};
  17.     BIS_Effects_AircraftVapour =        {};
  18.     BIS_Effects_AirDestructionStage2 =  {};
  19.     BIS_Effects_Secondaries =           {};
  20.     BIS_Effects_AirDestruction =        {};
  21.  
  22.     /* AI Missions */
  23.     if (P2DZ_HC_HeliCrashes) then {
  24.       diag_log(format["P2DEBUG: %1 Executing AI: MissionSystem!", (getPlayerUID player)]);
  25.  
  26.       [] execVM "PATH TO DZMS INIT.SQF";
  27.     };
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment