DayZ 1.27
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
114
115//----------------------------------------------
120
122typedef int[] HLIGHT;
123
125{
126 POINT, //< point light, all directional light
127 SPOT, //< spot light, direction is determined by owner (entity)
130};
131
144
148proto HLIGHT AddLight(IEntity owner, LightType type, LightFlags flags, float radius, vector color);
150proto native bool RemoveLight(HLIGHT light);
151proto native bool SetLightEx(HLIGHT light, float radius, vector color);
153proto native bool SetLightTexture(HLIGHT light, string cubemap);
154proto native int SetLightFlags(HLIGHT light, LightFlags flags);
155proto native int ClearLightFlags(HLIGHT light, LightFlags flags);
157proto native bool SetLightCone(HLIGHT light, float cone);
158
162proto native float GetSceneHDRMul(int camera);
164
165
166
167//----------------------------------------------
172
174{
175 BONES, //< tests collision geometries around bones of animated objects
176 ENTS, //< tests entities
177 WORLD, //< tests world bounding box
179 WATER, //< tests collision with water surface
180 PASSTRANSLUCENT,//< Do not intersects with entities with EntityFlags.TRANSLUCENT set
181 RAGDOLLS, //< tests ragdolls
182 VISTEST, //< performs visibility test first. Not necessary for entities receiving EntityEvent.VISIBLE, because there is a certainty that a camera will see them
185};
186
194
210
211proto native bool TraceLineToEntity(IEntity ent, vector start, vector end, out TraceContact contact);
212
213//bool FilterCallback(Class target [, vector rayorigin, vector raydirection])
214
224
226{
227 float Radius;
228};
229
235
237{
239};
240
251proto volatile float TraceMove(TraceParam param, out IEntity cent, out float plane[4], out int surfparm, func filtercallback);
252
253
265proto native int P2PVisibilityEx(vector from, vector to,int flags);
266
268proto int SphereQuery(vector origin, float radius, out IEntity visents[], int ents, int fmask);
269
274proto native bool IsBoxVisible(vector mins, vector maxs, int flags);
275
285proto int VisEntities(vector origin, vector look, float angle, float radius, out IEntity ents[2], int maxents, int fmask);
286
291{
292 proto private void ~OcclusionQuery();
293
300 proto native int GetResult();
301
303 proto native void SetPosition(vector pos);
305 proto native void Destroy();
306};
307
309
310//----------------------------------------------
315typedef int[] hDecal;
316
329proto native hDecal CreateDecal(IEntity entity, vector origin, vector project, float nearclip, float angle, float size, string materialName, float lifetime, int flags);
330
331proto native void RemoveDecal(hDecal decal);
332
345proto native hDecal CreateLandMarkDecal(IEntity entity, vector origin, vector normal, float edgeSize, float lifeTime, string materialName, hDecal prevDecal, float alpha);
346
347
360proto native int CanAddToLandMarkDecal(hDecal lmDecal, IEntity entity, string mat, vector newPoint);
361
371proto native bool AddPointToLandMarkDecal(hDecal lmDecal, vector point, vector normal, float alpha);
372
380proto native void FinalizeLandMarkDecal(hDecal lmDecal, bool addAlpha, float alphaDist);
381
386proto native bool IsLandMarkFinalized(hDecal lmDecal);
387
392proto native vector GetLastLandMarkPoint(hDecal lmDecal);
393
400proto native void SetGlobalLandMarkParams(float minSegmentLength, float maxSegmentLength, float degAngle);
401
402
404
405
406//----------------------------------------------
411
415proto native bool IsOcean();
416
422proto native float GetOceanHeight(float worldX, float worldZ);
423
424
430proto native vector GetOceanHeightAndDisplace(float worldX, float worldZ);
431
432
433
435
436
437
439
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
Icon x
Icon y
void RemoveDecal()
WeatherPhenomenon Rain
Определения Weather.c:152
WeatherPhenomenon Snowfall
Определения Weather.c:153
Определения Colors.c:4
Определения EnEntity.c:165
TODO doc.
Определения EnScript.c:118
Определения EnWorld.c:291
Определения EnWorld.c:231
collision and tracing WARNING: Non-managed, needs manual delete call, should not be ref'd
Определения EnWorld.c:198
Определения EnWorld.c:237
Определения EnWorld.c:216
Определения EnWorld.c:226
Определения EnConvert.c:11
Определения EnConvert.c:106
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 UnprojectVector(int cam, float x, float y, vector dir)
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:315
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:122
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:133
@ DYNAMIC
Dynamic objects are included in the query.
Определения EnWorld.c:139
@ CASTSHADOW
Определения EnWorld.c:140
@ CHEAP
for cheaper dynamic lights, like muzzle flashes (might use cheaper rendering method)
Определения EnWorld.c:142
proto HLIGHT AddLight(IEntity owner, LightType type, LightFlags flags, float radius, vector color)
LightType
Определения EnWorld.c:125
@ AMBIENT
Определения EnWorld.c:129
@ SPOT
Определения EnWorld.c:127
@ POINT
Определения EnWorld.c:126
@ DIRECTIONAL
Определения EnWorld.c:128
proto native int GetResult()
int LayerMask
Определения EnWorld.c:219
vector Mat[3]
Определения EnWorld.c:238
vector End
Определения EnWorld.c:218
int Triangle
Определения EnWorld.c:203
owned string OriginalMaterialName
Определения EnWorld.c:206
proto native bool IsOcean()
int Surfparm
Определения EnWorld.c:201
TraceFlags Flags
Определения EnWorld.c:220
proto native void Destroy()
Destroys the object.
proto native float GetOceanHeight(float worldX, float worldZ)
float Radius
Определения EnWorld.c:227
float Fraction
Определения EnWorld.c:199
int SurfaceID
Определения EnWorld.c:204
IEntity Exclude
Определения EnWorld.c:221
vector Mins
Определения EnWorld.c:232
vector Point
Определения EnWorld.c:208
float Plane[4]
Определения EnWorld.c:207
int MaterialFlags
Определения EnWorld.c:202
proto native vector GetOceanHeightAndDisplace(float worldX, float worldZ)
int Content
Определения EnWorld.c:200
vector Start
Определения EnWorld.c:217
owned string MaterialName
Определения EnWorld.c:205
proto native void SetPosition(vector pos)
Sets world position.
vector Maxs
Определения EnWorld.c:233
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:188
@ BOX
Определения EnWorld.c:190
@ OBB
Определения EnWorld.c:191
TraceFlags
Определения EnWorld.c:174
@ TRANSPARENT_OCCLUDERS
Определения EnWorld.c:184
@ ONLY_PHYSICS
Определения EnWorld.c:178
@ PASSTRANSLUCENT
Определения EnWorld.c:180
@ ENTS
Определения EnWorld.c:176
@ VISTEST
Определения EnWorld.c:182
@ NOTRACE
Определения EnWorld.c:183
@ RAGDOLLS
Определения EnWorld.c:181
@ BONES
Определения EnWorld.c:175
proto native int P2PVisibilityEx(vector from, vector to, int flags)