DayZ
1.24
Loading...
Searching...
No Matches
someMission.c
Go to the documentation of this file.
1
Mission
CreateMission
(
string
path
)
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
return
new
MissionServer;
9
10
#ifdef NO_GUI
11
return
new
MissionDummy
;
12
#endif
13
MissionMainMenu
m
;
14
if
(
path
.
Contains
(
"NoCutscene"
))
15
{
16
m
=
new
MissionMainMenu
();
17
m
.m_NoCutscene =
true
;
18
return
m
;
19
}
20
21
if
(
path
.
Contains
(
"intro"
))
22
{
23
m
=
new
MissionMainMenu
();
24
m
.m_NoCutscene =
false
;
25
return
m
;
26
}
27
else
28
{
29
if
(
path
==
""
)
30
return
new
MissionDummy
;
31
#ifndef NO_GUI_INGAME
32
return
new
MissionGameplay;
33
#else
34
return
new
MissionDummy
;
35
#endif
36
}
37
}
g_Game
DayZGame g_Game
Definition
DayZGame.c:3528
path
string path
Definition
OptionSelectorMultistate.c:121
Mission
Mission class.
Definition
gameplay.c:668
Param3
Definition
EntityAI.c:95
Print
proto void Print(void var)
Prints content of variable to console/log.
string::Contains
bool Contains(string sample)
Returns true if sample is substring of string.
Definition
EnString.c:286
CreateMission
Mission CreateMission(string path)
Definition
someMission.c:1
scripts
5_Mission
someMission.c
Generated by
1.10.0