Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
enworld.c File Reference

Go to the source code of this file.

Data Structures

class  OcclusionQuery
 Object that handles visibility on GPU. More...
class  TraceBox
class  TraceContact
 collision and tracing WARNING: Non-managed, needs manual delete call, should not be ref'd More...
class  TraceOBB
class  TraceParam
class  TraceSphere

Typedefs

typedef int[] hDecal
typedef int[] HLIGHT
 Light handle.
typedef int[] WorldHandle

Enumerations

enum  CameraType { PERSPECTIVE , ORTHOGRAPHIC }
enum  LightFlags { DYNAMIC , CASTSHADOW , CHEAP }
enum  LightType { POINT , SPOT , DIRECTIONAL , AMBIENT }
enum  PostProcessEffectType {
  None = -1 , UnderWater , SSAO , DepthOfField ,
  HBAO , RotBlur , GodRays , Rain ,
  Snowfall , FilmGrain , RadialBlur , ChromAber ,
  WetDistort , DynamicBlur , ColorGrading , Colors ,
  Glow , SMAA , FXAA , Median ,
  SunMask , GaussFilter , SSR , Distort ,
  Ghost
}
 Post-process effect type. More...
enum  TraceFlags {
  BONES , ENTS , WORLD , ONLY_PHYSICS ,
  WATER , PASSTRANSLUCENT , RAGDOLLS , VISTEST ,
  NOTRACE , TRANSPARENT_OCCLUDERS
}
enum  TraceShape { LINE , BOX , OBB , SPHERE }

Functions

proto HLIGHT AddLight (IEntity owner, LightType type, LightFlags flags, float radius, vector color)
 creates light
proto native bool AddPointToLandMarkDecal (hDecal lmDecal, vector point, vector normal, float alpha)
 add new point to decal, internally, new point is added when previous point is in some distance or the angle is more than some threshold
proto native int CanAddToLandMarkDecal (hDecal lmDecal, IEntity entity, string mat, vector newPoint)
 is it possible to add new point to landmark decal?
proto native int ClearLightFlags (HLIGHT light, LightFlags flags)
proto native hDecal CreateDecal (IEntity entity, vector origin, vector project, float nearclip, float angle, float size, string materialName, float lifetime, int flags)
 Creates single visual mark, e.g.
proto native hDecal CreateLandMarkDecal (IEntity entity, vector origin, vector normal, float edgeSize, float lifeTime, string materialName, hDecal prevDecal, float alpha)
 Creates continous visual mark, e.g.
proto native void FinalizeLandMarkDecal (hDecal lmDecal, bool addAlpha, float alphaDist)
 finalize landmark adding, e.g.
proto native IEntity FindEntityByID (IEntity worldEnt, int ID)
proto native IEntity FindEntityByName (IEntity worldEnt, string name)
proto native IEntity GetActiveEntity (IEntity worldEntity, int index)
 returns active entity
proto native void GetCamera (int cam, out vector mat[4])
 Returns current camera transformation.
proto native vector GetLastLandMarkPoint (hDecal lmDecal)
 return last landmark point or -65535.0 in all components
proto native int GetNumActiveEntities (IEntity worldEntity)
 returns number of active (simulated) Entities in the world
proto native float GetOceanHeight (float worldX, float worldZ)
 Get water ocean height at given point.
proto native vector GetOceanHeightAndDisplace (float worldX, float worldZ)
 Get water ocean height and displacement at given point, returns vector(displaceX, height, displaceZ).
proto native float GetSceneHDRMul (int camera)
 scene light multiplier (based on measured scene light levels) - pre-exposure of light
proto native float GetWorldTime ()
proto native bool IsBoxVisible (vector mins, vector maxs, int flags)
 tests if bbox is visible according to view-frustum and PVS
proto native bool IsLandMarkFinalized (hDecal lmDecal)
 return if landmark was finalized
proto native bool IsOcean ()
 Is ocean availabled.
proto native int P2PVisibilityEx (vector from, vector to, int flags)
 tests visibility
proto vector ProjectVector (int cam, IEntity ent, vector vec)
proto native void RemoveDecal (hDecal decal)
proto native bool RemoveLight (HLIGHT light)
 removes light
proto native void SetCamera (int cam, vector origin, vector angle)
 Changes camera position.
proto native void SetCameraEx (int cam, const vector mat[4])
 Changes camera matrix.
proto native void SetCameraFarPlane (int cam, float farplane)
proto native void SetCameraNearPlane (int cam, float nearplane)
proto native void SetCameraPostProcessEffect (int cam, int priority, PostProcessEffectType type, string materialPath)
 set postprocess effect to camera To disable effect in some prioroty ppEffect, just set effectName or name to NULL
proto native void SetCameraType (int cam, CameraType type)
proto native void SetCameraVerticalFOV (int cam, float fovy)
proto native WorldHandle SetCurrentWorld (WorldHandle world)
 Sets current world.
proto native void SetGlobalLandMarkParams (float minSegmentLength, float maxSegmentLength, float degAngle)
 set global parameters for landmark generation
proto native bool SetLightCone (HLIGHT light, float cone)
 Sets light cone in degrees (for LightType.SPOT).
proto native bool SetLightEx (HLIGHT light, float radius, vector color)
proto native int SetLightFlags (HLIGHT light, LightFlags flags)
proto native bool SetLightTexture (HLIGHT light, string cubemap)
 sets lookup texture for projection lights
proto native void SetListenerCamera (int camera)
 sets which camera will be a listener (for sound engine)
proto int SphereQuery (vector origin, float radius, out IEntity visents[], int ents, int fmask)
 finds all entities in a radius
class TraceContact TraceLineToEntity (IEntity ent, vector start, vector end, out TraceContact contact)
proto volatile float TraceMove (TraceParam param, out IEntity cent, out float plane[4], out int surfparm, func filtercallback)
 traces line start->end, return 0..1 if trace was sucessfull.
proto vector UnprojectVector (int cam, float x, float y, vector dir)
proto int VisEntities (vector origin, vector look, float angle, float radius, out IEntity ents[2], int maxents, int fmask)
 finds all visible entities (rought, according to a visibility.

Variables

int Content
float Fraction
int MaterialFlags
owned string MaterialName
owned string OriginalMaterialName
float Plane [4]
vector Point
int SurfaceID
int Surfparm
TraceParam TraceLineToEntity
int Triangle