DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
EnWorld.c
См. документацию.
6//----------------------------------------------
11
12typedef int[] WorldHandle;
13
14proto native float GetWorldTime();
15
20
21//proto native void SchedulePreload(vector pos, float radius);
22
23proto native IEntity FindEntityByName(IEntity worldEnt, string name);
24proto native IEntity FindEntityByID(IEntity worldEnt, int ID);
25
27proto native int GetNumActiveEntities(IEntity worldEntity);
29proto native IEntity GetActiveEntity(IEntity worldEntity, int index);
31
32//----------------------------------------------
37
43
45proto native void SetListenerCamera(int camera);
46
53proto native void SetCamera(int cam, vector origin, vector angle);
54
56proto native void SetCameraEx(int cam, const vector mat[4]);
57
59proto native void GetCamera(int cam, out vector mat[4]);
60
61proto native void SetCameraVerticalFOV(int cam, float fovy);
62proto native void SetCameraFarPlane(int cam, float farplane); //default 160000 units
63proto native void SetCameraNearPlane(int cam, float nearplane); //default 5 units
64
65proto native void SetCameraType(int cam, CameraType type);
66
99
107proto native void SetCameraPostProcessEffect(int cam, int priority, PostProcessEffectType type, string materialPath);
108
109//ent can be NULL for world-space coords
110proto vector ProjectVector(int cam, IEntity ent, vector vec);
111proto vector UnprojectVector(int cam, float x, float y, vector dir);
112
113proto vector ProjectWorldToViewport(vector posWS, float w, float h, int cam);
114proto vector ProjectViewportToWorld(float x, float y, float w, float h, out vector dir, int cam);
115
117
118//----------------------------------------------
123
125typedef int[] HLIGHT;
126
128{
129 POINT, //< point light, all directional light
130 SPOT, //< spot light, direction is determined by owner (entity)
133};
134
147
151proto HLIGHT AddLight(IEntity owner, LightType type, LightFlags flags, float radius, vector color);
153proto native bool RemoveLight(HLIGHT light);
154proto native bool SetLightEx(HLIGHT light, float radius, vector color);
156proto native bool SetLightTexture(HLIGHT light, string cubemap);
157proto native int SetLightFlags(HLIGHT light, LightFlags flags);
158proto native int ClearLightFlags(HLIGHT light, LightFlags flags);
160proto native bool SetLightCone(HLIGHT light, float cone);
161
165proto native float GetSceneHDRMul(int camera);
167
168
169
170//----------------------------------------------
175
177{
178 BONES, //< tests collision geometries around bones of animated objects
179 ENTS, //< tests entities
180 WORLD, //< tests world bounding box
182 WATER, //< tests collision with water surface
183 PASSTRANSLUCENT,//< Do not intersects with entities with EntityFlags.TRANSLUCENT set
184 RAGDOLLS, //< tests ragdolls
185 VISTEST, //< performs visibility test first. Not necessary for entities receiving EntityEvent.VISIBLE, because there is a certainty that a camera will see them
188};
189
197
213
214proto native bool TraceLineToEntity(IEntity ent, vector start, vector end, out TraceContact contact);
215
216//bool FilterCallback(Class target [, vector rayorigin, vector raydirection])
217
227
229{
230 float Radius;
231};
232
238
240{
242};
243
254proto volatile float TraceMove(TraceParam param, out IEntity cent, out float plane[4], out int surfparm, func filtercallback);
255
256
268proto native int P2PVisibilityEx(vector from, vector to,int flags);
269
271proto int SphereQuery(vector origin, float radius, out IEntity visents[], int ents, int fmask);
272
277proto native bool IsBoxVisible(vector mins, vector maxs, int flags);
278
288proto int VisEntities(vector origin, vector look, float angle, float radius, out IEntity ents[2], int maxents, int fmask);
289
294{
295 proto private void ~OcclusionQuery();
296
303 proto native int GetResult();
304
306 proto native void SetPosition(vector pos);
308 proto native void Destroy();
309};
310
312
313//----------------------------------------------
318typedef int[] hDecal;
319
332proto native hDecal CreateDecal(IEntity entity, vector origin, vector project, float nearclip, float angle, float size, string materialName, float lifetime, int flags);
333
334proto native void RemoveDecal(hDecal decal);
335
348proto native hDecal CreateLandMarkDecal(IEntity entity, vector origin, vector normal, float edgeSize, float lifeTime, string materialName, hDecal prevDecal, float alpha);
349
350
363proto native int CanAddToLandMarkDecal(hDecal lmDecal, IEntity entity, string mat, vector newPoint);
364
374proto native bool AddPointToLandMarkDecal(hDecal lmDecal, vector point, vector normal, float alpha);
375
383proto native void FinalizeLandMarkDecal(hDecal lmDecal, bool addAlpha, float alphaDist);
384
389proto native bool IsLandMarkFinalized(hDecal lmDecal);
390
395proto native vector GetLastLandMarkPoint(hDecal lmDecal);
396
403proto native void SetGlobalLandMarkParams(float minSegmentLength, float maxSegmentLength, float degAngle);
404
405
407
408
409//----------------------------------------------
414
418proto native bool IsOcean();
419
425proto native float GetOceanHeight(float worldX, float worldZ);
426
427
433proto native vector GetOceanHeightAndDisplace(float worldX, float worldZ);
434
435
436
438
439
440
442
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
Icon x
Icon y
void RemoveDecal()
WeatherPhenomenon Rain
Определения Weather.c:155
WeatherPhenomenon Snowfall
Определения Weather.c:156
Определения Colors.c:4
Определения EnEntity.c:165
TODO doc.
Определения EnScript.c:118
Определения EnWorld.c:294
Определения EnWorld.c:234
collision and tracing WARNING: Non-managed, needs manual delete call, should not be ref'd
Определения EnWorld.c:201
Определения EnWorld.c:240
Определения EnWorld.c:219
Определения EnWorld.c:229
Определения EnConvert.c:11
Определения EnConvert.c:119
proto native void SetCamera(int cam, vector origin, vector angle)
proto native void SetCameraEx(int cam, const vector mat[4])
Changes camera matrix.
proto native void SetCameraFarPlane(int cam, float farplane)
proto vector ProjectViewportToWorld(float x, float y, float w, float h, out vector dir, int cam)
proto vector UnprojectVector(int cam, float x, float y, vector dir)
proto vector ProjectWorldToViewport(vector posWS, float w, float h, int cam)
proto native void SetCameraNearPlane(int cam, float nearplane)
proto native void SetCameraVerticalFOV(int cam, float fovy)
proto native void SetListenerCamera(int camera)
sets which camera will be a listener (for sound engine)
proto vector ProjectVector(int cam, IEntity ent, vector vec)
PostProcessEffectType
Post-process effect type.
Определения EnWorld.c:72
@ FXAA
Определения EnWorld.c:91
@ GaussFilter
Определения EnWorld.c:94
@ ColorGrading
Определения EnWorld.c:87
@ DynamicBlur
Определения EnWorld.c:86
@ DepthOfField
Определения EnWorld.c:76
@ HBAO
Определения EnWorld.c:77
@ RotBlur
Определения EnWorld.c:78
@ Distort
Определения EnWorld.c:96
@ SunMask
Определения EnWorld.c:93
@ RadialBlur
Определения EnWorld.c:83
@ SSR
Определения EnWorld.c:95
@ ChromAber
Определения EnWorld.c:84
@ SMAA
Определения EnWorld.c:90
@ WetDistort
Определения EnWorld.c:85
@ Ghost
Определения EnWorld.c:97
@ None
Определения EnWorld.c:73
@ Glow
Определения EnWorld.c:89
@ GodRays
Определения EnWorld.c:79
@ FilmGrain
Определения EnWorld.c:82
@ UnderWater
Определения EnWorld.c:74
@ Median
Определения EnWorld.c:92
@ SSAO
Определения EnWorld.c:75
proto native void SetCameraType(int cam, CameraType type)
proto native void GetCamera(int cam, out vector mat[4])
Returns current camera transformation.
proto native void SetCameraPostProcessEffect(int cam, int priority, PostProcessEffectType type, string materialPath)
CameraType
Определения EnWorld.c:39
@ PERSPECTIVE
Определения EnWorld.c:40
@ ORTHOGRAPHIC
Определения EnWorld.c:41
@ SPHERE
Определения EnDebug.c:119
@ LINE
Определения EnDebug.c:118
proto native hDecal CreateDecal(IEntity entity, vector origin, vector project, float nearclip, float angle, float size, string materialName, float lifetime, int flags)
proto native void FinalizeLandMarkDecal(hDecal lmDecal, bool addAlpha, float alphaDist)
proto native bool AddPointToLandMarkDecal(hDecal lmDecal, vector point, vector normal, float alpha)
proto native bool IsLandMarkFinalized(hDecal lmDecal)
proto native hDecal CreateLandMarkDecal(IEntity entity, vector origin, vector normal, float edgeSize, float lifeTime, string materialName, hDecal prevDecal, float alpha)
proto native void SetGlobalLandMarkParams(float minSegmentLength, float maxSegmentLength, float degAngle)
proto native int CanAddToLandMarkDecal(hDecal lmDecal, IEntity entity, string mat, vector newPoint)
int[] hDecal
Определения EnWorld.c:318
proto native vector GetLastLandMarkPoint(hDecal lmDecal)
@ WATER
Used by tracing methods. Traceable only with flag TraceFlags.WATER.
Определения EnEntity.c:136
proto native int ClearLightFlags(HLIGHT light, LightFlags flags)
proto native bool RemoveLight(HLIGHT light)
removes light
int[] HLIGHT
Light handle.
Определения EnWorld.c:125
proto native int SetLightFlags(HLIGHT light, LightFlags flags)
proto native bool SetLightCone(HLIGHT light, float cone)
Sets light cone in degrees (for LightType.SPOT).
proto native bool SetLightTexture(HLIGHT light, string cubemap)
sets lookup texture for projection lights
proto native float GetSceneHDRMul(int camera)
proto native bool SetLightEx(HLIGHT light, float radius, vector color)
LightFlags
Определения EnWorld.c:136
@ DYNAMIC
Dynamic objects are included in the query.
Определения EnWorld.c:142
@ CASTSHADOW
Определения EnWorld.c:143
@ CHEAP
for cheaper dynamic lights, like muzzle flashes (might use cheaper rendering method)
Определения EnWorld.c:145
proto HLIGHT AddLight(IEntity owner, LightType type, LightFlags flags, float radius, vector color)
LightType
Определения EnWorld.c:128
@ AMBIENT
Определения EnWorld.c:132
@ SPOT
Определения EnWorld.c:130
@ POINT
Определения EnWorld.c:129
@ DIRECTIONAL
Определения EnWorld.c:131
proto native int GetResult()
int LayerMask
Определения EnWorld.c:222
vector Mat[3]
Определения EnWorld.c:241
vector End
Определения EnWorld.c:221
int Triangle
Определения EnWorld.c:206
owned string OriginalMaterialName
Определения EnWorld.c:209
proto native bool IsOcean()
int Surfparm
Определения EnWorld.c:204
TraceFlags Flags
Определения EnWorld.c:223
proto native void Destroy()
Destroys the object.
proto native float GetOceanHeight(float worldX, float worldZ)
float Radius
Определения EnWorld.c:230
float Fraction
Определения EnWorld.c:202
int SurfaceID
Определения EnWorld.c:207
IEntity Exclude
Определения EnWorld.c:224
vector Mins
Определения EnWorld.c:235
vector Point
Определения EnWorld.c:211
float Plane[4]
Определения EnWorld.c:210
int MaterialFlags
Определения EnWorld.c:205
proto native vector GetOceanHeightAndDisplace(float worldX, float worldZ)
int Content
Определения EnWorld.c:203
vector Start
Определения EnWorld.c:220
owned string MaterialName
Определения EnWorld.c:208
proto native void SetPosition(vector pos)
Sets world position.
vector Maxs
Определения EnWorld.c:236
void ~OcclusionQuery()
@ WORLD
4_World
Определения EnProfiler.c:30
proto native IEntity FindEntityByName(IEntity worldEnt, string name)
proto native IEntity GetActiveEntity(IEntity worldEntity, int index)
returns active entity
int[] WorldHandle
Определения EnWorld.c:12
proto native IEntity FindEntityByID(IEntity worldEnt, int ID)
proto native int GetNumActiveEntities(IEntity worldEntity)
returns number of active (simulated) Entities in the world
proto native float GetWorldTime()
proto native WorldHandle SetCurrentWorld(WorldHandle world)
proto volatile float TraceMove(TraceParam param, out IEntity cent, out float plane[4], out int surfparm, func filtercallback)
TraceParam TraceLineToEntity
proto int SphereQuery(vector origin, float radius, out IEntity visents[], int ents, int fmask)
finds all entities in a radius
proto int VisEntities(vector origin, vector look, float angle, float radius, out IEntity ents[2], int maxents, int fmask)
proto native bool IsBoxVisible(vector mins, vector maxs, int flags)
TraceShape
Определения EnWorld.c:191
@ BOX
Определения EnWorld.c:193
@ OBB
Определения EnWorld.c:194
TraceFlags
Определения EnWorld.c:177
@ TRANSPARENT_OCCLUDERS
Определения EnWorld.c:187
@ ONLY_PHYSICS
Определения EnWorld.c:181
@ PASSTRANSLUCENT
Определения EnWorld.c:183
@ ENTS
Определения EnWorld.c:179
@ VISTEST
Определения EnWorld.c:185
@ NOTRACE
Определения EnWorld.c:186
@ RAGDOLLS
Определения EnWorld.c:184
@ BONES
Определения EnWorld.c:178
proto native int P2PVisibilityEx(vector from, vector to, int flags)