Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
surfaceinfo.c
Go to the documentation of this file.
1typedef int[] SurfaceInfo;
2
9{
10 protected void SurfaceInfo() {};
11 protected void ~SurfaceInfo() {};
12
16 proto static SurfaceInfo GetByName(string name);
17
22 proto static SurfaceInfo GetByFile(string name);
23
24 proto string GetName();
25 proto string GetEntryName();
26 proto string GetSurfaceType();
27
28 proto float GetRoughness();
29 proto float GetDustness();
31 proto float GetThickness();
32 proto float GetDeflection();
33 proto float GetTransparency();
34 proto float GetAudability();
35
36 proto bool IsLiquid();
37 proto bool IsStairs();
38 proto bool IsPassthrough();
39 proto bool IsSolid();
40
41 proto string GetSoundEnv();
42 proto string GetImpact();
43
45 proto int GetLiquidType();
46
49 proto int GetStepParticleId();
50 proto int GetWheelParticleId();
51};
52
64
70
75{
78
81
83 bool includeWater = false;
84
87
89 Object ignore = null;
90
92 RoadSurfaceDetection rsd = RoadSurfaceDetection.ABOVE;
93
94};
95
99/*sealed*/ class SurfaceDetectionResult
100{
102 float height = 0;
103
105 float normalX = 0;
106
108 //float normalY = 1;
109
111 float normalZ = 0;
112
115
117 bool aboveWater = false;
118
120 Object object = null;
121
122};
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
Parameters for detecting the surface.
Definition surfaceinfo.c:75
Object ignore
Object to ignore tracing against, SurfaceTraceType.Roadway only.
Definition surfaceinfo.c:89
SurfaceDetectionType type
Type of surface to detect.
Definition surfaceinfo.c:77
RoadSurfaceDetection rsd
See RoadSurfaceDetection, SurfaceTraceType.Roadway only.
Definition surfaceinfo.c:92
vector position
3D position to trace the surface from
Definition surfaceinfo.c:80
UseObjectsMode syncMode
See UseObjectsMode, SurfaceTraceType.Roadway only.
Definition surfaceinfo.c:86
bool includeWater
Include water in the surface detection, will return the water if it is higher than the surface.
Definition surfaceinfo.c:83
Output of surface detection.
bool aboveWater
If water was the returned surface.
float normalZ
Up normal - always set to 1, not necessary to expose.
SurfaceInfo surface
Returned SurfaceInfo, plain pointer.
float normalX
Right normal.
float height
Height position.
Unmanaged surface info handle.
Definition surfaceinfo.c:9
proto string GetSurfaceType()
proto int GetWheelParticleId()
proto string GetName()
proto string GetImpact()
proto float GetRoughness()
proto float GetDustness()
proto float GetThickness()
proto bool IsSolid()
void ~SurfaceInfo()
Definition surfaceinfo.c:11
static proto SurfaceInfo GetByFile(string name)
Warning: O(n) time complexity where n is the total number of loaded surfaces Note: Will load the surf...
proto bool IsPassthrough()
proto string GetEntryName()
static proto SurfaceInfo GetByName(string name)
Warning: O(n) time complexity where n is the total number of loaded surfaces Note: Will load the surf...
proto bool IsLiquid()
proto float GetTransparency()
proto int GetStepParticleId()
See 'ParticleList', if config entry not set, value is 'ParticleList.NONE', if config entry is set but...
proto float GetAudability()
proto bool IsStairs()
proto string GetSoundEnv()
proto float GetDeflection()
proto float GetBulletPenetrability()
proto int GetLiquidType()
See 'LiquidTypes' in 'constants.c'.
void SurfaceInfo()
Definition surfaceinfo.c:10
SurfaceDetectionType
Definition surfaceinfo.c:66
@ Scenery
Definition surfaceinfo.c:67
@ Roadway
Definition surfaceinfo.c:68
UseObjectsMode
Definition surfaceinfo.c:54
@ Wait
wait for the data to be ready
Definition surfaceinfo.c:56
@ NoWait
do not wait for the data, but refresh caches
Definition surfaceinfo.c:59
@ NoLock
only return the data we have, do not touch any caches (MT safe mode)
Definition surfaceinfo.c:62