DayZ
1.24
Toggle main menu visibility
Main Page
Topics
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Modules
Loading...
Searching...
No Matches
Surface.c
Go to the documentation of this file.
1
class
Surface
2
{
3
static
float
GetParamFloat
(
string
surface_name
,
string
param_name
)
4
{
5
return
GetGame
().ConfigGetFloat(
"CfgSurfaces "
+
surface_name
+
" "
+
param_name
);
6
}
3
static
float
GetParamFloat
(
string
surface_name
,
string
param_name
) {
…
}
7
8
static
bool
AllowedWaterSurface
(
float
pHeight
,
string
pSurface
,
array<string>
pAllowedSurfaceList
)
9
{
10
if
(
pSurface
)
11
{
12
pSurface
.Replace(
"_ext"
,
""
);
13
pSurface
.Replace(
"_int"
,
""
);
14
}
15
16
bool
isSeaCheck
=
false
;
17
18
foreach
(
string
allowedSurface
:
pAllowedSurfaceList
)
19
{
20
if
(
pSurface
==
""
&&
allowedSurface
==
UAWaterType
.
SEA
)
21
isSeaCheck
=
pHeight
<=
g_Game
.SurfaceGetSeaLevel() + 0.001;
22
23
if
(
isSeaCheck
||
allowedSurface
==
pSurface
)
24
return
true
;
25
}
26
27
return
false
;
28
}
8
static
bool
AllowedWaterSurface
(
float
pHeight
,
string
pSurface
,
array<string>
pAllowedSurfaceList
) {
…
}
29
}
1
class
Surface
{
…
};
g_Game
DayZGame g_Game
Definition
DayZGame.c:3528
Param3
Definition
EntityAI.c:95
Surface
Definition
Surface.c:2
Surface::AllowedWaterSurface
static bool AllowedWaterSurface(float pHeight, string pSurface, array< string > pAllowedSurfaceList)
Definition
Surface.c:8
Surface::GetParamFloat
static float GetParamFloat(string surface_name, string param_name)
Definition
Surface.c:3
UAWaterType
Definition
ActionConstants.c:145
UAWaterType::SEA
const string SEA
Definition
ActionConstants.c:146
GetGame
proto native CGame GetGame()
scripts
4_World
Static
Surface.c
Generated by
1.10.0