Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
somemission.c
Go to the documentation of this file.
2 {
3  Print("Creating Mission: "+ path);
4 
5  // g_Game.SetMissionPath(path); Done from C++ now
6 
7  if (g_Game.IsMultiplayer() && g_Game.IsServer())
8  {
9  return new MissionServer;
10  }
11 
12 #ifdef NO_GUI
13  return new MissionDummy;
14 #endif
15  MissionMainMenu m;
16  if (path.Contains("NoCutscene"))
17  {
18  m = new MissionMainMenu();
19  m.m_NoCutscene = true;
20  return m;
21  }
22 
23  if (path.Contains("intro"))
24  {
25  m = new MissionMainMenu();
26  m.m_NoCutscene = false;
27  return m;
28  }
29  else
30  {
31  if( path == "" )
32  {
33  return new MissionDummy;
34  }
35 #ifndef NO_GUI_INGAME
36  return new MissionGameplay;
37 #else
38  return new MissionDummy;
39 #endif
40  }
41 }
Mission
Mission class.
Definition: gameplay.c:670
Print
proto void Print(void var)
Prints content of variable to console/log.
g_Game
DayZGame g_Game
Definition: dayzgame.c:3727
CreateMission
Mission CreateMission(string path)
Definition: somemission.c:1
path
string path
Definition: optionselectormultistate.c:135