DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
World.c
Go to the documentation of this file.
2{
3 //proto private void ~World();
4 //proto private void World();
5
6 proto void CheckSoundObstruction(EntityAI source, bool inSource, out float obstruction, out float occlusion);
7
8 proto native void GetPlayerList(out array<Man> players);
9
22 proto void GetDate(out int year, out int month, out int day, out int hour, out int minute);
23
40 proto native void SetDate(int year, int month, int day, int hour, int minute);
41 proto native float GetLatitude();
42 proto native float GetLongitude();
43 proto native float GetMoonIntensity();
44 proto native float GetSunOrMoon();
45 proto native bool IsNight();
46
47 proto native float GetEyeAccom();
48 proto native void SetEyeAccom(float eyeAccom);
49
50 proto native void StartFpsBenchmark(int sectorsCount, float preloadDistance, float fpsLimitRed, float fpsLimitGreen, float fpsLimitBlue, float minX, float minY, float maxX, float maxY);
51 proto native void StartFpsBenchmarkWithMask(float preloadDistance, float fpsLimitRed, float fpsLimitGreen, float fpsLimitBlue);
52 proto native void StartFpsBenchmarkViews(string xmlFileName, float preloadDistance);
53 proto native void SetBuldozerWaterEnabled(bool enable);
58 proto native void SetPreferredViewDistance(float distance);
59
60 proto native void SetViewDistance(float distance);
61
62 proto native void SetObjectViewDistance(float distance);
63
64 proto native void SetExplicitVolumeFactor_EnvSounds2D(float factor, float fadeTime);
65
66
72 proto native void AddEnvShootingSource(vector position, float shootingValDecrease);
73
74 proto int GetWorldSize();
75
87 proto void GetGridCoords(vector pos, float gridSize, out int gridX, out int gridZ);
88
92 proto native void LoadNewLightingCfg(string path);
93
97 proto native void LoadUserLightingCfg(string path, string name);
98
102 proto native void SetUserLightingLerp(float val);
103
104
108 proto native AIWorld GetAIWorld();
109
110 proto native void MarkObjectForPathgraphUpdate(Object object);
112
113
126 proto native Material GetMaterial(string materialName);
127
135 proto native void SetCameraPostProcessEffect(int cam, int ppEffect, string effectName, string materialName);
136
137 void SetAperture(float invDiameter)
138 {
139 if (invDiameter <= 0)
140 {
141 SetEyeAccom(-1);
142 }
143 else
144 {
145 float apertureArea = 1.0 / invDiameter;
146 SetEyeAccom(apertureArea * apertureArea);
147 }
148 }
149
153 proto native bool Is3rdPersonDisabled();
154
158 proto native bool IsCrosshairDisabled();
159
164
168 proto native int GetPingWarningThreshold();
169
173 proto native int GetPingCriticalThreshold();
174
178 proto native float GetServerFpsWarningThreshold();
179
183 proto native float GetServerFpsCriticalThreshold();
184
189 proto native void DisableTransmitVoN(bool disable);
190
196 proto native bool DisableReceiveVoN(bool disable);
197
201 proto native bool IsDisabledTransmitingVoN();
202
206 proto native bool IsDisabledReceivingVoN();
207
213 proto void SetVoiceOn(bool listening, bool toggled = false);
214
224 proto native void FlattenGrassSphere(float x, float z, float radius, float centerLerp01, float timeDown01, float maxHeight01);
225
238 proto native void FlattenGrassEllipse(float x, float z, float sideX, float sideZ, float offset, float angleRAD, float centerLerp01, float timeDown01, float maxHeight01);
239
250 proto native void FlattenGrassBox(float x, float z, float side, float angleRAD, float centerLerp01, float timeDown01, float maxHeight01);
251
264 proto native void FlattenGrassRect(float x, float z, float sideX, float sideZ, float offset, float angleRAD, float centerLerp01, float timeDown01, float maxHeight01);
265};
Icon x
string name
TODO doc.
Definition EnScript.c:118
Definition World.c:2
proto native void SetCameraPostProcessEffect(int cam, int ppEffect, string effectName, string materialName)
proto native float GetServerFpsCriticalThreshold()
proto native void SetObjectViewDistance(float distance)
proto native void LoadNewLightingCfg(string path)
proto native float GetSunOrMoon()
proto native void SetBuldozerWaterEnabled(bool enable)
proto native void FlattenGrassEllipse(float x, float z, float sideX, float sideZ, float offset, float angleRAD, float centerLerp01, float timeDown01, float maxHeight01)
proto native void SetViewDistance(float distance)
proto native float GetLatitude()
proto native void StartFpsBenchmarkWithMask(float preloadDistance, float fpsLimitRed, float fpsLimitGreen, float fpsLimitBlue)
proto native void GetPlayerList(out array< Man > players)
proto native void SetEyeAccom(float eyeAccom)
proto native void StartFpsBenchmarkViews(string xmlFileName, float preloadDistance)
proto void SetVoiceOn(bool listening, bool toggled=false)
proto native bool DisableReceiveVoN(bool disable)
proto int GetWorldSize()
proto native void FlattenGrassBox(float x, float z, float side, float angleRAD, float centerLerp01, float timeDown01, float maxHeight01)
proto native AIWorld GetAIWorld()
proto native float GetEyeAccom()
proto native void FlattenGrassSphere(float x, float z, float radius, float centerLerp01, float timeDown01, float maxHeight01)
proto native bool IsDisabledReceivingVoN()
proto native void StartFpsBenchmark(int sectorsCount, float preloadDistance, float fpsLimitRed, float fpsLimitGreen, float fpsLimitBlue, float minX, float minY, float maxX, float maxY)
proto native bool Is3rdPersonDisabled()
proto void GetDate(out int year, out int month, out int day, out int hour, out int minute)
Get actual ingame world time.
proto native void ProcessMarkedObjectsForPathgraphUpdate()
proto native void SetDate(int year, int month, int day, int hour, int minute)
Sets actual ingame world time.
proto native void DisableTransmitVoN(bool disable)
proto native bool IsCrosshairDisabled()
proto native int GetPingCriticalThreshold()
proto native void SetUserLightingLerp(float val)
proto void GetGridCoords(vector pos, float gridSize, out int gridX, out int gridZ)
Translates world coordinates to a grid coordinates(map grid)
proto native float GetLongitude()
proto native bool IsDisabledTransmitingVoN()
proto native float GetMoonIntensity()
proto native bool IsNight()
proto native void SetPreferredViewDistance(float distance)
Sets preferred view distance, which persists between game sessions.
proto void CheckSoundObstruction(EntityAI source, bool inSource, out float obstruction, out float occlusion)
proto native int GetPingWarningThreshold()
proto native void MarkObjectForPathgraphUpdate(Object object)
void SetAperture(float invDiameter)
Definition World.c:137
proto native Material GetMaterial(string materialName)
proto native bool IsMouseAndKeyboardEnabledOnServer()
proto native void FlattenGrassRect(float x, float z, float sideX, float sideZ, float offset, float angleRAD, float centerLerp01, float timeDown01, float maxHeight01)
proto native void LoadUserLightingCfg(string path, string name)
proto native void SetExplicitVolumeFactor_EnvSounds2D(float factor, float fadeTime)
proto native void AddEnvShootingSource(vector position, float shootingValDecrease)
Affects env sound controller value 'Shooting'.
proto native float GetServerFpsWarningThreshold()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.