intro.sqf 899 B

12345678910111213141516171819202122232425262728293031323334
  1. private [ "_dialog" ];
  2. if ( isNil "cinematic_camera_started" ) then { cinematic_camera_started = false };
  3. sleep 0.5;
  4. waitUntil { time > 0 };
  5. if (IA_liberation_debug) then {private _text = format ["[IA LIBERATION] [DEBUG] Intro started for: %1", (name player)];_text remoteExec ["diag_log",2];};
  6. [] spawn cinematic_camera;
  7. if ( GRLIB_introduction ) then {
  8. sleep 1;
  9. cutRsc ["intro1","PLAIN",1,true];
  10. sleep 5.5;
  11. cutRsc ["intro2","PLAIN",1,true];
  12. sleep 10;
  13. };
  14. showcaminfo = true;
  15. dostartgame = 0;
  16. howtoplay = 0;
  17. _dialog = createDialog "liberation_menu";
  18. waitUntil { dialog };
  19. waitUntil { dostartgame == 1 || howtoplay == 1 || !dialog };
  20. closeDialog 0;
  21. if ( howtoplay == 0 ) then {
  22. cinematic_camera_started = false;
  23. };
  24. introDone = true;
  25. if (IA_liberation_debug) then {private _text = format ["[IA LIBERATION] [DEBUG] Intro ended for: %1", (name player)];_text remoteExec ["diag_log",2];};