DayZ Enforce
Script API
Classes | Typedefs | Enumerations | Functions | Variables
proto.h File Reference

Go to the source code of this file.

Classes

class   ScriptModule
  Module containing compiled scripts. More...
 
class   AnimEvent
 
class   SoundEvent
 
class   _entity
 
class   Widget
 
class   TextWidget
 
class   MultilineTextWidget
 
class   RichTextWidget
 
class   HtmlWidget
 
class   RenderTargetWidget
 
class   RTTextureWidget
 
class   ImageWidget
 
class   MultilineEditBoxWidget
 
class   UIWidget
 
class   EditBoxWidget
 
class   SliderWidget
 
class   SimpleProgressBarWidget
 
class   ProgressBarWidget
 
class   ButtonWidget
 
class   XComboBoxWidget
 
class   CheckBoxWidget
 
class   BaseListboxWidget
 
class   SimpleListboxWidget
 
class   TextListboxWidget
 
class   ScriptedWidgetEventHandler
 
class   Shape
 
class   TraceContact
 
class   BoneMask
 
class   VehicleWheelParams
 
class   WheelContactInfo
 
class   Contact
 
class   PacketInputAdapter
 
class   OcclusionQuery
 
class   PhysicsDragTool
 
class   array< class T >
 
class   set< class T >
 
class   map< class TKey, class TValue >
  Associative array template
usage: More...
 

Typedefs

typedef int[]  TypeID
 
typedef TypeID  WidgetType
 
typedef TypeID  EventType
 
typedef int[]  dGeom
 
typedef int[]  dJoint
 
typedef int[]  dBlock
 
typedef int[]  dMaterial
 
typedef int[]  FindFileHandle
 
typedef array< string >  TStringArray
 
typedef array< float >  TFloatArray
 
typedef array< int >  TIntArray
 
typedef array< bool >  TBoolArray
 
typedef array< class >  TClassArray
 
typedef array< vector >  TVectorArray
 
typedef set< string >  TStringSet
 
typedef set< float >  TFloatSet
 
typedef set< int >  TIntSet
 
typedef set< class >  TClassSet
 
typedef map< int, float >  TIntFloatMap
 
typedef map< int, int >  TIntIntMap
 
typedef map< int, string >  TIntStringMap
 
typedef map< int, class >  TIntClassMap
 
typedef map< int, typename >  TIntTypenameMap
 
typedef map< int, vector >  TIntVectorMap
 
typedef map< string, float >  TStringFloatMap
 
typedef map< string, int >  TStringIntMap
 
typedef map< string, string >  TStringStringMap
 
typedef map< string, class >  TStringClassMap
 
typedef map< string, typename >  TStringTypenameMap
 
typedef map< string, vector >  TStringVectorMap
 
typedef map< class, float >  TClassFloatMap
 
typedef map< class, int >  TClassIntMap
 
typedef map< class, string >  TClassStringMap
 
typedef map< class, class >  TClassClassMap
 
typedef map< class, typename >  TClassTypenameMap
 
typedef map< class, vector >  TClassVectorMap
 
typedef map< typename, float >  TTypeNameFloatMap
 
typedef map< typename, int >  TTypeNameIntMap
 
typedef map< typename, string >  TTypeNameStringMap
 
typedef map< typename, class >  TTypeNameClassMap
 
typedef map< typename, typename >  TTypeNameTypenameMap
 
typedef map< typename, vector >  TTypeNameVectorMap
 

Enumerations

enum   WidgetType {
  TextWidgetTypeID, MultilineTextWidgetTypeID, MultilineEditBoxWidgetTypeID, RichTextWidgetTypeID,
  RenderTargetWidgetTypeID, ImageWidgetTypeID, ConsoleWidgetTypeID, VideoWidgetTypeID,
  RTTextureWidgetTypeID, FrameWidgetTypeID, EmbededWidgetTypeID, ButtonWidgetTypeID,
  CheckBoxWidgetTypeID, WindowWidgetTypeID, ComboBoxWidgetTypeID, SimpleProgressBarWidgetTypeID,
  ProgressBarWidgetTypeID, SliderWidgetTypeID, BaseListboxWidgetTypeID, TextListboxWidgetTypeID,
  GenericListboxWidgetTypeID, EditBoxWidgetWidgetTypeID, MultilineEditBoxWidgetTypeID
}
 
enum   WidgetFlag {
  WF_SOURCEALPHA, WF_BLEND, WF_ADDITIVE, WF_VISIBLE,
  WF_NOWRAP, WF_CENTER, WF_VCENTER, WF_HEXACTPOS,
  WF_VEXACTPOS, WF_EXACTPOS, WF_HEXACTSIZE, WF_VEXACTSIZE,
  WF_EXACTSIZE, WF_NOFILTER, WF_RALIGN, WF_STRETCH,
  WF_FLIPU, WF_FLIPV, WF_CUSTOMUV, WF_IGNOREPOINTER,
  WF_DISABLED, WF_NOFOCUS, WF_CLIPCHILDREN, WF_RENDER_ALWAYS,
  WF_NOCLEAR, WF_DRAGGABLE
}
 
enum   ControlID {
  CID_NONE = 0, CID_CONTROLS = 1, CID_SELECT = CID_CONTROLS, CID_BACK,
  CID_LEFT, CID_RIGHT, CID_UP, CID_DOWN,
  CID_MENU, CID_DRAG, CID_COUNT
}
 

Functions

proto ScriptModule  LoadScript (ScriptModule parentModule, string scriptFile, bool listing)
  Do load script and create ScriptModule for it. More...
 
proto  Type (string var)
  Returns internal type representation. Can be used in runtime, or cached in variables and used for faster inheritance checking. More...
 
proto class  Spawn (typename type)
  Dynamic variant to 'new' keyword. It creates new instance of class. More...
 
proto bool  IsInherited (class ent, typename type)
  Returns true when instance is of the type, or inherited one. More...
 
proto bool  IsTypeInherited (typename clType, typename type)
  Returns true when 'clType' is the same as 'type', or inherited one. More...
 
proto string  ClassName (class ent)
  Returns name of class-type. More...
 
proto string  TypeName (typename type)
 
proto int  GetValue (class ent, string varname, int index, out void result)
  Dynamic read of variable value by its name. More...
 
proto int  SetValue (class ent, string varname, int index, void input)
  Dynamic write to variable by its name. More...
 
proto int  SetVar (out void var, string value)
  Sets variable value by value in string. More...
 
proto void  GetHourMinuteSecond (out int hour, out int minute, out int second)
  Returns world time. More...
 
proto void  GetYearMonthDay (out int year, out int month, out int day)
  Returns world date. More...
 
proto void  GetHourMinuteSecondUTC (out int hour, out int minute, out int second)
  Returns UTC world time. More...
 
proto void  GetYearMonthDayUTC (out int year, out int month, out int day)
  Returns UTC world date. More...
 
proto void  Watch (void var, int flags)
  Debug tool for watching certain variable. Invokes debugger whenever is variable used. More...
 
proto string  tostr (int ascii)
  Converts ASCII code to string. More...
 
proto string  itoa (int number)
  Converts integer to string. More...
 
proto int  atoi (string str)
  Converts string to integer. More...
 
proto string  ftoa (float number)
  Converts float to string. More...
 
proto float  atof (string str)
  Converts string to float. More...
 
proto string  substr (string s, int from, int len)
  Substring of 's' from 'from' position 'len' number of characters. More...
 
proto int  strrep (inout string s, string sample, string replace)
  Replace all occurrances of 'sample' in 's' by 'replace'. More...
 
proto int  strlower (string s)
  Changes string to lowercase. Returns length. More...
 
proto int  strupper (string s)
  Changes string to uppercase. Returns length. More...
 
proto int  strlen (string s)
  Returns length of string. More...
 
proto int  strstr (string s1, string sample)
  Finds 'sample' in 's1'. Returns -1 when not found. More...
 
proto int  strstroff (string s1, int offset, string sample)
  Finds 'sample' in 's1' from 'offset' position. Returns -1 when not found. More...
 
proto string  trim (string str)
  Returns trimmed string with removed leading and trailing whitespaces. More...
 
proto int  triminplace (string str)
  Removes leading and trailing whitespaces in string. Returns length. More...
 
proto float  pow (float v, float power)
  Return power of v ^ power. More...
 
proto int  rand (int min, int max)
  Returns a random int number between and min [inclusive] and max [exclusive]. More...
 
int  random (int min, int max)
  Returns a random int number between and min [inclusive] and max [inclusive]. More...
 
float  frandom (float min, float max)
  Returns a random float number between and min [inclusive] and max [inclusive]. More...
 
float  frandom01 ()
  Returns a random float number between and min [inclusive] and max [inclusive]. More...
 
proto float  frand (float min, float max)
  Returns a random float number between and min[inclusive] and max[exclusive]. More...
 
proto int  randomize (int seed)
  Sets the seed for the random number generator. More...
 
proto float  FixAngle (float ang)
  Normalizes the angle (0...360) More...
 
proto float  fabs (float a)
  Returns absolute value. More...
 
proto int  abs (int a)
  Returns absolute value. More...
 
proto float  sqrt (float val)
  Returns square root. More...
 
proto float  sin (float angle)
  Returns sinus of angle in radians. More...
 
proto float  cos (float angle)
  Returns cosinus of angle in radians. More...
 
proto float  tan (float deg)
  Returns tangent of angle in radians. More...
 
proto float  asin (float s)
  Returns angle in radians from sinus. More...
 
proto float  acos (float c)
  Returns angle in radians from cosinus. More...
 
proto float  atan2 (float y, float x)
  Returns angle in radians from tangent. More...
 
proto float  round (float f)
  Returns mathematical round of value. More...
 
float  clamp (float value, float min, float max)
 
proto float  floor (float f)
  Returns floor of value. More...
 
proto float  ceil (float f)
  Returns ceil of value. More...
 
proto void  Sort (void param_array[], int num)
  Sorts static array of integers(ascendically) / floats(ascendically) / strings(alphabetically) More...
 
proto void  MemoryValidation (bool enable)
  Switches memory validation (huge slowdown! Use with care only for certain section of code!) More...
 
proto int  ParseStringEx (inout string input, string token)
  Parses one token from input string. Result is put into token string, and type of token is returned. Input string is left-truncated by the resulting token length. More...
 
proto int  ParseString (string input, out string tokens[])
  Parses string into array of tokens returns number of tokens. More...
 
proto int  KillThread (class owner, string name)
  Kills thread. More...
 
proto void  Idle ()
 
proto string  ThreadFunction (class owner, string name, int backtrace, out int linenumber)
  Debug function. Returns current function on stack of the thread. More...
 
string  Vector2String (vector v)
  Vector to string. More...
 
string  Vector2StringParse (vector v)
  Vector to parseable string. More...
 
vector  String2Vector (string s)
  Returns a vector from a string. More...
 
string  itoal (int num, int len)
  Integer to string with fixed length, padded with zeroes. More...
 
float  DiffAngle (float yaw, float a)
  Return relative difference between angles. More...
 
vector  GetRelAngles (vector angs)
  Returns relative angles between -180 and 180, not 0 to 360. More...
 
bool  not (bool var)
 
proto float  VectorNormalize (inout vector vec)
  Normalizes vector. Returns length. More...
 
proto float  VectorLength (vector vec)
  Returns length of vector (magnitude) More...
 
float  Vector3Distance (vector v1, vector v2)
  Returns the distance between tips of two 3D vectors. More...
 
proto float  VectorLengthSq (vector vec)
  Returns squared length (magnitudeSqr) More...
 
proto vector  Vector2Angles (vector vec)
  Returns angles of vector. More...
 
proto float  Vector2Yaw (vector vec)
  Returns yaw of vector. More...
 
proto vector  Yaw2Vector (float yaw)
  Returns vector of yaw. More...
 
proto vector  VVector2Angles (vector vec)
  Converts vector to spherical coordinates with radius = 1. More...
 
proto vector  Angles2Vector (vector ang)
  Converts spherical coordinates to unit length vector. More...
 
proto void  YawPitchRollMatrix (vector ang, out vector mat[3])
  Creates rotation matrix from angles. More...
 
proto void  AroundVectorMatrix (vector vec, float degree, out vector mat[3])
 
proto void  DirectionAndUpMatrix (vector dir, vector up, out vector mat[4])
  Creates rotation matrix from direction and up vector. More...
 
proto vector  VectorMatrixMultiply4 (vector mat[4], vector vec)
  Transforms position. More...
 
proto vector  VectorMatrixMultiply3 (vector mat[3], vector vec)
  Transforms vector. More...
 
proto vector  VectorMatrixInvMultiply4 (vector mat[4], vector vec)
  Invert-transforms position. More...
 
proto vector  VectorMatrixInvMultiply3 (vector mat[3], vector vec)
  Invert-transforms vector. More...
 
proto void  MatrixMultiply4 (vector mat0[4], vector mat1[4], out vector res[4])
  Transforms matrix. More...
 
proto void  MatrixMultiply3 (vector mat0[3], vector mat1[3], out vector res[3])
  Transforms rotation matrix. More...
 
proto void  MatrixInvMultiply4 (vector mat0[4], vector mat1[4], out vector res[4])
  Invert-transforms matrix. More...
 
proto void  MatrixInvMultiply3 (vector mat0[3], vector mat1[3], out vector res[3])
  Invert-transforms rotation matrix. More...
 
void  MatrixIdentity (out vector mat[4])
  Creates identity matrix. More...
 
void  ScaleMatrix (float scale, out vector mat[3])
  Creates scale matrix. More...
 
proto vector  MatrixAngles (vector mat[3])
  Returns angles of rotation matrix. More...
 
void  QuatIdentity (out float q[4])
  Creates identity quaternion. More...
 
void  QuatCopy (float s[4], out float d[4])
  Copies quaternion. More...
 
proto void  MatrixQuat (vector mat[3], out float d[4])
  Converts rotation matrix to quaternion. More...
 
proto void  QuatLerp (out float qout[4], float q1[4], float q2[4], float frac)
  Linear interpolation between q1 and q2 with weight 'frac' (0...1) More...
 
proto void  QuatMatrix (float q[4], out vector mat[3])
 
proto void  QuatMultiply (out float qout[4], float q1[4], float q2[4])
  Multiplies quaternions. More...
 
int  CheckBoundBox (vector mins1, vector maxs1, vector mins2, vector maxs2)
  Returns 1, when bounding boxes intersects. More...
 
vector  Perpend (vector vec)
  Returns perpendicular vector. Perpendicular vector is computed as cross product between input vector and up vector (0, 1, 0). More...
 
proto vector  Vector (float x, float y, float z)
  Vector constructor from components. More...
 
proto int  UpdateEntity (_entity ent)
 
proto int  GetFlags (_entity ent)
  Returns Entity flags. More...
 
proto int  SetFlags (_entity ent, int flag)
  Sets Entity flags. It's OR operation, not rewrite. Returns previous flags. More...
 
proto int  ClearFlags (_entity ent, int flag)
  Clear Entity flags. Returns cleared flags. More...
 
proto int  GetEventMask (_entity ent)
  Returns current event mask. More...
 
proto void  SetEventMask (_entity ent, int e)
  Sets event mask. More...
 
proto int  ClearEventMask (_entity ent, int e)
  Clears event mask. More...
 
proto vector  GetOrigin (_entity ent)
  Returns origin of Entity. More...
 
proto vector  GetAngles (_entity ent)
  Returns orientation of Entity in world space. More...
 
proto vector  GetLocalAngles (_entity ent)
  Returns local orientation when it's in hierarchy. More...
 
proto void  SetAngles (_entity ent, vector angles)
  Sets angles for entity. More...
 
proto void  SetOrigin (_entity ent, vector orig)
  Sets origin for entity. More...
 
proto void  SetMatrix (_entity ent, vector mat[4])
  Sets entity matrix. More...
 
proto vector  GetVelocity (_entity ent)
  Returns linear velocity. More...
 
proto void  SetVelocity (_entity ent, vector vel)
 
proto vector  GetMatrix (_entity ent, int axis)
  Returns one row of Entity matrix. More...
 
proto void  GetMatrix4 (_entity ent, out vector mat[])
  Returns matrix of Entity. It returns only so much vectors as array is big. More...
 
proto void  GetBoundBox (_entity ent, out vector mins, out vector maxs)
  Returns local bounding box of model on Entity. More...
 
proto void  GetCBoundBox (_entity ent, out vector mins, out vector maxs)
  Returns quantized world-bound-box of Entity. More...
 
proto void  Throw (_entity ent, _entity actor, int e, void extra)
 
proto Widget  CreateWidget (WidgetType type, int left, int top, int width, int height, int flag, int color, int sort)
 
proto Widget  CreateWidgetEx (Widget parent, WidgetType type, int left, int top, int width, int height, int flag, int color, int sort)
 
proto Widget  CreateWidgets (string layout, Widget parent)
 
proto Widget  GetWidgetUnderCursor ()
 
proto void  ReportMouse (int mousex, int mousey, Widget rootWidget)
 
proto void  SetGUIWidget (_entity ent, int index, Widget w)
 
proto void  SetCursorWidget (Widget cursor)
 
proto void  ShowCursorWidget (bool show)
 
proto bool  LoadWidgetImageSet (string filename)
 
proto void  LoadWidgetStyles (string filename)
 
proto int  LoadWidgetImage (Widget w, int num, string name)
 
proto int  UnloadWidgetImage (Widget w, int num)
 
proto void  SetWidgetImage (Widget w, int num)
 
proto bool  ReloadTexture (string path)
 
proto int  PlayVideo (Widget w, int cmd)
 
proto void  SetWidgetWorld (Widget w, _entity wrldEntity, int camera)
 
proto bool  SetActiveWindow (Widget w, bool resetFocus)
 
proto void  SetFocus (Widget w)
 
proto void  SetModal (Widget w)
 
proto Widget  GetFocus ()
 
class Shape  AddDShape (int type, int color, int flags, vector p1, vector p2)
 
proto private void  ~Shape ()
  don't call destructor directly. Use Destroy() instead More...
 
proto void  SetMatrix (vector mat[4])
 
proto void  SetColor (int color)
 
proto void  SetFlags (int flags)
 
proto void  Destroy ()
 
proto Shape  AddDLines (int color, int flags, vector p[], int num)
 
proto Shape  AddDTris (int color, int flags, vector p[], int num)
 
proto Shape  AddDSphere (int color, int flags, vector origin, float radius)
 
proto Shape  AddDCylinder (int color, int flags, vector origin, float radius, float length)
 
Shape  AddDArrow (vector from, vector to, float size, int color, int flags)
 
Shape  AddDBridgeArrow (vector from, vector to, float size, int color, int flags)
 
void  Matrix2Shape (vector mat[4])
 
proto float  GetWorldTime ()
 
proto void  SetListenerCamera (int camera)
 
proto void  SetCamera (vector origin, vector angle)
 
proto void  SetCameraEx (int cam, const vector mat[4])
 
proto void  GetCamera (int cam, out vector mat[4])
 
proto void  SetCameraVerticalFOV (int cam, float fovy)
 
proto void  SetCameraFarPlane (int cam, float farplane)
 
proto void  SetCameraNearPlane (int cam, float nearplane)
 
proto void  SetCameraType (int cam, int type)
 
proto vector  ProjectVector (int cam, class ent, vector vec)
 
proto vector  UnprojectVector (int cam, float x, float y, vector dir)
 
proto void  AddNamedEntity (_entity ent, void name)
 
proto void  RemoveNamedEntity (_entity ent, string name)
 
proto _entity  FindNamedEntity (_entity worldEnt, string name)
 
proto _entity  FindEntityByID (_entity worldEnt, int ID)
 
proto int  SetCurrentMap (int mapIndex)
 
class TraceContact  TraceLineToEntity (_entity ent, vector start, vector end, out TraceContact contact)
 
proto float  TraceLine (_entity ent, vector start, vector end, out class cent, out float plane[4], out int content, out int surfparm)
 
proto float  TraceLineEx (vector start, vector end, vector mins, vector maxs, out _entity cent, out float plane[4], out int content, out int surfparm, int flags, func filtercallback)
 
proto float  TraceLineExEx (vector start, vector end, vector mins, vector maxs, out _entity cent, out float plane[4], out int content, out int surfparm, int flags, func filtercallback, int layerMask)
 
proto int  P2PVisibilityEx (vector from, vector to, int flags)
 
proto int  SphereQuery (vector origin, float radius, out _entity visents[], int ents, int fmask)
 
proto bool  IsBoxVisible (vector mins, vector maxs, int flags)
 
proto int  VisEntities (vector origin, vector look, float angle, float radius, out _entity ents[2], int maxents, int fmask)
 
vector  ClipLine (vector start, vector end, vector norm, float d)
 
proto float  IntersectRaySphere (vector raybase, vector raycos, vector center, float radius)
 
proto float  IntersectRayBox (vector start, vector end, vector mins, vector maxs)
 
proto vobject  GetObject (string name)
 
proto void  ReleaseObject (vobject object, int flag)
 
proto void  SelectObject (_entity ent, vobject object)
 
proto int  GetObjectMaterials (vobject object, string materials[])
 
proto void  CreateModel (_entity ent, vector mins, vector maxs)
 
proto void  RemoveModel (_entity ent)
 
proto vobject  CreateXOB (int nsurfaces, int nverts[], int numindices[], string shaders[])
 
proto void  UpdateVertsEx (_entity ent, int surf, vector verts[], float uv[])
 
proto void  UpdateIndices (vobject obj, int surf, int indices[])
 
proto int  BumpFrame (_entity ent, float speed, int loop)
 
proto int  BumpFrameEx (_entity ent, float speed, int loop, vector lin, vector ang)
 
proto void  SetBone (_entity ent, int bone, vector angles, vector trans, float scale)
 
proto bool  SetBoneMatrix (_entity ent, int bone, vector mat[4])
 
proto void  SetBoneGlobal (_entity ent, int bone, vector mat[4])
 
proto bool  GetBoneMatrix (_entity ent, int bone, vector mat[4])
 
proto bool  GetBoneLocalMatrix (_entity ent, int bone, vector mat[4])
 
proto void  SetFrame (_entity ent, int slot, float frame)
 
class BoneMask  SetAnimSlot (_entity ent, int slot, vobject anim, float blendin, float blendout, BoneMask mask, int fps, int flags)
 
proto void  ChangeAnimSlotMask (_entity ent, int slot, float blendin, BoneMask mask)
 
proto void  ChangeAnimSlotFPS (_entity ent, int slot, int fps)
 
proto void  SetAnimMask (_entity ent, int mask)
 
proto int  ClearAnimMask (_entity ent, int mask)
 
proto int  IsAnimSlotPlaying (_entity ent, int mask)
 
proto bool  SetMorphState (_entity ent, string morph, float value)
 
proto int  GetNumAnimFrames (vobject anim)
 
proto string  vtoa (vobject vobj)
 
proto int  GetParticleCount (_entity ent)
 
proto int  GetParticleEmitors (_entity ent, out string emitors[], int max)
 
proto void  SetParticleParm (_entity ent, int emitor, int parameter, void value)
 
proto void  GetParticleParm (_entity ent, int emitor, int parameter, out void value)
 
proto void  GetParticleParmOriginal (_entity ent, int emitor, int parameter, out void value)
 
proto void  ResetParticlePosition (_entity ent)
 
proto int  dGetNumDynamicBodies (_entity worldEnt)
 
proto _entity  dGetDynamicBody (_entity worldEnt, int index)
 
proto void  dSetInteractionLayer (_entity worldEntity, int mask1, int mask2, bool enable)
 
proto void  dSetGravity (_entity worldEntity, vector g)
 
proto bool  dBodyIsSet (_entity ent)
 
proto void  dBodyInteractionLayer (_entity ent, int mask)
 
proto int  dBodyGetInteractionLayer (_entity ent)
 
proto void  dBodyActive (_entity ent, bool activeState)
 
proto void  dBodyDynamic (_entity ent, bool dynamic)
 
proto bool  dBodyIsDynamic (_entity ent)
 
proto bool  dBodyIsActive (_entity ent)
 
proto bool  dBodyEnableGravity (_entity ent, bool enable)
 
proto void  dBodySetDamping (_entity ent, float linearDamping, float angularDamping)
 
proto void  dBodySetSleepingTreshold (class body, float linearTreshold, float angularTreshold)
 
proto void  dBodySetLinearFactor (class body, vector linearFactor)
 
proto vector  dBodyGetCenterOfMass (class body)
 
void  SetAtmosphericDrag (_entity worldEnt, float atmDrg)
 
proto bool  dBodyCreateStatic (_entity ent, int layerMask)
 
proto bool  dBodyCreateDynamic (_entity ent, vector center, int layerMask)
 
proto bool  dBodyCreateVehicle (_entity ent, vector center, float mass, int layerMask)
 
proto void  dVehicleAddWheel (_entity ent, vector offset, vector suspensionDir, vector axleDir, float wheelRadius, VehicleWheelParams params, string wheelMat)
 
proto void  dVehicleApplyEngineForce (_entity ent, int wheel, float force)
 
proto void  dVehicleSetBrake (_entity ent, int wheel, float brake)
 
proto void  dVehicleSetSteering (_entity ent, int wheel, float steering)
 
proto float  dVehicleGetSteering (_entity ent, int wheel)
 
proto float  dVehicleGetWheelAngle (_entity ent, int wheel)
 
proto float  dVehicleGetWheelAngularVelocity (_entity ent, int wheel)
 
proto float  dVehicleGetWheelSuspensionLength (_entity ent, int wheel)
 
proto vector  dVehicleGetWheelEndPosition (_entity ent, int wheel)
 
proto _entity  dVehicleHasWheelContact (_entity ent, int wheel)
 
proto bool  dVehicleGetWheelContact (int wheel, WheelContactInfo info)
 
proto dJoint  dJointCreateHinge (_entity ent1, _entity ent2, vector point1, vector axis1, vector point2, vector axis2, bool block, float breakThreshold)
 
proto dJoint  dJointCreateHinge2 (_entity ent1, _entity ent2, vector matrix1[4], vector matrix2[4], bool block, float breakThreshold)
 
proto dJoint  dJointCreateSlider (_entity ent1, _entity ent2, vector matrix1[4], vector matrix2[4], bool block, float breakThreshold)
 
proto dJoint  dJointCreateBallSocket (_entity ent1, _entity ent2, vector point1, vector point2, bool block, float breakThreshold)
 
proto dJoint  dJointCreateFixed (_entity ent1, _entity ent2, vector point1, vector point2, bool block, float breakThreshold)
 
proto dJoint  dJointCreateConeTwist (_entity ent1, _entity ent2, vector matrix1[4], vector matrix2[4], bool block, float breakThreshold)
 
proto dJoint  dJointCreate6DOF (_entity ent1, _entity ent2, vector matrix1[4], vector matrix2[4], bool block, float breakThreshold)
 
proto dJoint  dJointCreate6DOFSpring (_entity ent1, _entity ent2, vector matrix1[4], vector matrix2[4], bool block, float breakThreshold)
 
proto void  dJointDestroy (dJoint joint)
 
proto void  dJointHingeSetLimits (dJoint joint, float low, float high, float softness, float biasFactor, float relaxationFactor)
 
proto void  dJointHingeSetAxis (dJoint joint, vector axis)
 
proto void  dJointHingeSetMotorTargetAngle (dJoint joint, float angle, float dt, float maxImpulse)
 
proto void  dJointConeTwistSetAngularOnly (dJoint joint, bool angularOnly)
 
proto void  dJointConeTwistSetLimit (dJoint joint, int limitIndex, float limitValue)
 
proto void  dJointConeTwistSetLimits (dJoint joint, float _swingSpan1, float _swingSpan2, float _twistSpan, float _softness, float _biasFactor, float _relaxationFactor)
 
proto void  dJoint6DOFSetLinearLimits (dJoint joint, vector linearLower, vector linearUpper)
 
proto void  dJoint6DOFSetAngularLimits (dJoint joint, vector angularLower, vector angularUpper)
 
proto void  dJoint6DOFSetLimit (dJoint joint, int axis, float lo, float hi)
 
proto void  dJoint6DOFSpringSetSpring (dJoint joint, int axis, float stiffness, float damping)
 
proto void  dJointSliderSetLinearLimits (dJoint joint, float lowerLimit, float upperLimit)
 
proto void  dJointSliderSetAngularLimits (dJoint joint, float lowerLimit, float upperLimit)
 
proto void  dJointSliderSetDirLinear (dJoint joint, float softness, float restitution, float damping)
 
proto void  dJointSliderSetDirAngular (dJoint joint, float softness, float restitution, float damping)
 
proto void  dJointSliderSetLimLinear (dJoint joint, float softness, float restitution, float damping)
 
proto void  dJointSliderSetLimAngular (dJoint joint, float softness, float restitution, float damping)
 
proto void  dJointSliderSetOrthoLinear (dJoint joint, float softness, float restitution, float damping)
 
proto void  dJointSliderSetOrthoAngular (dJoint joint, float softness, float restitution, float damping)
 
proto void  dJointSliderSetLinearMotor (dJoint joint, float velocity, float force)
 
proto void  dJointSliderSetAngularMotor (dJoint joint, float velocity, float force)
 
proto float  dJointSliderGetLinearPos (dJoint joint)
 
proto float  dJointSliderGetAngularPos (dJoint joint)
 
proto void  dBodyDestroy (_entity ent)
 
proto dBlock  dBodyCollisionBlock (_entity ent1, _entity ent2)
 
proto void  dBodyRemoveBlock (_entity worldEntity, dBlock block)
 
proto void  dBodySetInertiaTensorV (_entity body, vector v)
 
proto void  dBodySetInertiaTensorM (_entity body, vector m[3])
 
proto float  dBodyGetMass (_entity ent)
 
proto void  dBodySetMass (_entity body, float mass)
 
proto void  dBodyApplyImpulseAt (_entity body, vector impulse, vector pos)
 
proto void  dBodyApplyImpulse (_entity body, vector impulse)
 
proto void  dBodyApplyForce (_entity body, vector force)
 
proto void  dBodyApplyForceAt (_entity body, vector pos, vector force)
 
proto void  dBodyApplyTorque (_entity body, vector torque)
 
proto vector  dBodyGetAngularVelocity (_entity body)
 
proto void  dBodySetAngularVelocity (_entity body, vector angvel)
 
proto void  dBodySetTargetMatrix (_entity body, vector matrix[4], float timeslice)
 
proto float  dBodyGetKineticEnergy (_entity body)
 
proto vector  dBodyGetVelocityAt (_entity body, vector globalpos)
 
class Contact  WriteBool (bool value)
 
proto vector  GetNormalImpulse ()
 
proto float  GetRelativeVelocityBefore (vector vel)
 
proto float  GetRelativeVelocityAfter (vector vel)
 
proto void  WriteInt (int value)
 
proto void  WriteFloat (float value)
 
proto void  WriteString (string value)
 
proto void  WriteVector (vector value)
 
proto void  WriteMatrixAsQuaternionVector (vector mat[4])
 
proto void  WriteIntAsByte (int value)
 
proto void  WriteIntAsUByte (int value)
 
proto void  WriteIntAsHalf (int value)
 
proto void  WriteIntAsUHalf (int value)
 
proto void  WriteFloatAsByte (float value, float min, float max)
 
proto void  WriteFloatAsHalf (float value, float min, float max)
 
proto bool  ReadBool ()
 
proto int  ReadInt ()
 
proto float  ReadFloat ()
 
proto string  ReadString ()
 
proto vector  ReadVector ()
 
proto void  ReadMatrixAsQuaternionVector (vector mat[4])
 
proto int  ReadIntAsByte ()
 
proto int  ReadIntAsUByte ()
 
proto int  ReadIntAsHalf ()
 
proto int  ReadIntAsUHalf ()
 
proto float  ReadFloatAsByte (float min, float max)
 
proto float  ReadFloatAsHalf (float min, float max)
 
  BeginParse (string filename)
 
proto int  ParseLine (tparse tp, int num, string tokens[])
 
proto void  EndParse (tparse file)
 
proto bool  FileExist (string name)
 
proto FileHandle  OpenFile (string name, int mode)
  Opens File. More...
 
proto int  ReadFile (FileHandle file, void param_array, int length)
  ??? More...
 
proto void  CloseFile (FileHandle file)
  Close the File. More...
 
proto void  FPrint (FileHandle file, void var)
  Write to file. More...
 
proto void  FPrintln (FileHandle file, void var)
  Write to file and add new line. More...
 
proto int  FGets (FileHandle file, string var)
  Get line from file, every next call of this function returns next line. More...
 
proto FindFileHandle  FindFile (string pattern, out string fileName, out int fileAttributes, int flags)
 
proto bool  FindNextFile (FindFileHandle handle, out string fileName, out int fileAttributes)
 
proto void  CloseFindFile (FindFileHandle handle)
 
proto bool  MakeDirectory (string name)
 
proto bool  DeleteFile (string name)
  delete file. Works only on "$profile:" and "$saves:" locations More...
 
proto bool  CopyFile (string sourceName, string destName)
  copy file. destName must be "$profile:" or "$saves:" location More...
 
proto int  TickCount (int prev)
 
proto int  KeyState (int key)
 
proto void  ClearKey (int key)
 
proto int  MouseState (int index)
 
proto void  GetMousePos (out int x, out int y)
 
proto void  GetScreenSize (out int x, out int y)
 
proto void  Print (void var)
 
proto void  DumpStack ()
  Prints current call stack (stack trace) More...
 
proto void  DPrint (string var)
 
proto int  GetDefKey (string name)
 
proto int  DefKeyState (int defkey, bool clear)
 
string  String (string s)
 
proto string  ToString (void var, bool type=false, bool name=false)
  Return string representation of variable. More...
 
void  PrintString (string s)
 
proto void  DiagRegisterMenu (int id, string name, string parent)
 
proto void  DiagUnregister (int id)
 
proto void  DiagRegister (int id, string shortcut, string name, string parent, string values)
 
proto void  DiagRegisterBool (int id, string shortcut, string name, string parent, bool reverse=false)
 
proto bool  DiagBool (int id, bool reverse=false)
 
proto int  DiagGetValue (int id)
 
proto void  DiagSetValue (int id, int value)
 
proto void  Error2 (string title, string err)
 
proto void  reversearray (void param_array)
 
proto void  copyarray (void destArray, void srcArray)
 
class OcclusionQuery  GetAddons (string addonNames[])
 
proto private void  ~OcclusionQuery ()
 
proto int  GetResult ()
 
proto void  SetPosition (vector pos)
 
proto int  GetPlugins (string pluginNames[])
 
void  Error (string err)
 
float  CorrectAngle (float yaw, float a, float speed)
 
int  VectortoRGBA (vector vec, float h)
 
int  ARGB (int a, int r, int g, int b)
 
int  ARGBF (float fa, float fr, float fg, float fb)
  Converts <0.0, 1.0> ARGB into color. More...
 
int  AWHITE (int a)
 
int  LerpARGB (int c1, int c2)
 
void  strsplit (string param, string sample, TStringArray output)
 
SkyDome API
proto int  LoadSkyPresets (string presetsFile)
 
proto int  InitSky (string presetName)
 
proto int  SetSkyPreset (string presetName, float stormy, float dayTime)
 
proto int  LerpSkyPreset (string presetName1, string presetName2, float dayTime, float stormy1, float stormy2, float lerpVal)
 
proto int  LerpSkyPreset3 (string presetName1, string presetName2, string presetName3, float dayTime, float stormy1, float stormy2, float stormy3, float w1, float w2, float w3)
 
proto void  SetSkyUserPlanets (bool enabled)
 
proto bool  SetSkyPlanet (int index, float azimuthDeg, float zenithDeg)
 
proto bool  SetSkyPlanetSize (int index, float angleDeg)
 
proto void  SetStarsObserverTime (int year, int month, int day, int hour, int minute, float sec, int offsetSec)
 
proto void  SetStarsObserverPosition (float latitudeDeg, float longitudeDeg)
 
proto void  SetRealStarAutoUpdate (bool update)
 
proto void  SetNightLayerRotMatrix (vector mat[3])
 
proto void  SetStarsRotMatrix (vector mat[3])
 

Variables

const vector  UpVec = "0 1 0"
 
const vector  ZeroVec = "0 0 0"
 
const float  M_PI = 3.14159265358979
 
const float  M_PI2 = 6.28318530717958
 
const float  M_PI_HALF = 1.570796326794
 
const float  RAD2DEG = 57.2957795130823208768
 
const float  DEG2RAD = 0.01745329251994329577
 
float  Fraction
 
int  Content
 
int  Surfparm
 
int  ShaderFlags
 
int  Triangle
 
int  SurfaceID
 
string  Shader
 
string  OriginalMaterial
 
float  Plane [4]
 
vector  Point
 
class VehicleWheelParams  SetAnimSlot
 
dMaterial  Material1
 
dMaterial  Material2
 
int  MaterialIndex1
 
int  MaterialIndex2
 
float  Impulse
 
float  RelativeNormalVelocityBefore
 
float  RelativeNormalVelocityAfter
 
vector Normal vector Position vector  RelativeVelocityBefore
 
vector  RelativeVelocityAfter
 
class PhysicsDragTool  GetAddons []
 

Materials API

typedef int[]  Material
 
proto bool  SetMaterialParam (Material material, string propertyName, void value)
 
proto void  ResetMaterialParam (Material material, string propertyName)
 

Decals API

typedef int[]  hDecal
 
proto hDecal  CreateDecal (_entity entity, vector origin, vector project, float nearclip, float angle, float size, string materialName, float lifetime, int flags)
 
proto void  RemoveDecal (hDecal decal)
 
proto hDecal  CreateLandMarkDecal (_entity entity, vector origin, vector normal, float edgeSize, float lifeTime, string materialName, hDecal prevDecal, float alpha)
 
proto int  CanAddToLandMarkDecal (hDecal lmDecal, _entity entity, string mat, vector newPoint)
 
proto bool  AddPointToLandMarkDecal (hDecal lmDecal, vector point, vector normal, float alpha)
 
proto void  FinalizeLandMarkDecal (hDecal lmDecal, bool addAlpha, float alphaDist)
 
proto bool  IsLandMarkFinalized (hDecal lmDecal)
 
proto vector  GetLastLandMarkPoint (hDecal lmDecal)
 
proto void  SetGlobalLandMarkParams (float minSegmentLength, float maxSegmentLength, float degAngle)
 

Typedef Documentation

typedef int [] TypeID
typedef TypeID WidgetType
typedef TypeID EventType
typedef int [] dGeom
typedef int [] dJoint
typedef int [] dBlock
typedef int [] dMaterial
typedef int [] Material
typedef int [] hDecal
typedef array<string> TStringArray
typedef array<float> TFloatArray
typedef array<int> TIntArray
typedef array<bool> TBoolArray
typedef array<class> TClassArray
typedef array<vector> TVectorArray
typedef set<string> TStringSet
typedef set<float> TFloatSet
typedef set<int> TIntSet
typedef set<class> TClassSet
typedef map<int, float> TIntFloatMap
typedef map<int, int> TIntIntMap
typedef map<int, string> TIntStringMap
typedef map<int, class> TIntClassMap
typedef map<int, typename> TIntTypenameMap
typedef map<int, vector> TIntVectorMap
typedef map<string, float> TStringFloatMap
typedef map<string, int> TStringIntMap
typedef map<string, string> TStringStringMap
typedef map<string, class> TStringClassMap
typedef map<string, typename> TStringTypenameMap
typedef map<string, vector> TStringVectorMap
typedef map<class, float> TClassFloatMap
typedef map<class, int> TClassIntMap
typedef map<class, string> TClassStringMap
typedef map<class, class> TClassClassMap
typedef map<class, typename> TClassTypenameMap
typedef map<class, vector> TClassVectorMap
typedef map<typename, float> TTypeNameFloatMap
typedef map<typename, int> TTypeNameIntMap
typedef map<typename, string> TTypeNameStringMap
typedef map<typename, class> TTypeNameClassMap
typedef map<typename, typename> TTypeNameTypenameMap
typedef map<typename, vector> TTypeNameVectorMap

Enumeration Type Documentation

enum WidgetType
Enumerator
TextWidgetTypeID 

Single-line text. See enf::TextWidget.

MultilineTextWidgetTypeID 

Multi-line text. See enf::MultilineTextWidget.

MultilineEditBoxWidgetTypeID 

Multi-line edit box. See enf::MultilineTextWidget.

RichTextWidgetTypeID 

Multi-line text with images in text. See enf::RichTextWidget.

RenderTargetWidgetTypeID 

Render target for enf::BaseWorld. See enf::RenderTargetWidget.

ImageWidgetTypeID 

Picture, or multiple picture. See enf::ImageWidget.

ConsoleWidgetTypeID 

Console. See enf::ConsoleWidget.

VideoWidgetTypeID 

Video player. See enf::VideoWidget.

RTTextureWidgetTypeID 

Texture used as render target for children widgets. See enf::RTTextureWidget.

FrameWidgetTypeID 

Dummy frame, used as hierarchy node and clipper.

EmbededWidgetTypeID 

Dummy frame, used for embedding another layout and as hierarchy node and clipper.

ButtonWidgetTypeID 
CheckBoxWidgetTypeID 
WindowWidgetTypeID 
ComboBoxWidgetTypeID 
SimpleProgressBarWidgetTypeID 
ProgressBarWidgetTypeID 
SliderWidgetTypeID 
BaseListboxWidgetTypeID 
TextListboxWidgetTypeID 
GenericListboxWidgetTypeID 
EditBoxWidgetWidgetTypeID 
MultilineEditBoxWidgetTypeID 

Multi-line edit box. See enf::MultilineTextWidget.

enum WidgetFlag
Enumerator
WF_SOURCEALPHA 
WF_BLEND 
WF_ADDITIVE 
WF_VISIBLE 
WF_NOWRAP 
WF_CENTER 
WF_VCENTER 
WF_HEXACTPOS 
WF_VEXACTPOS 
WF_EXACTPOS 
WF_HEXACTSIZE 
WF_VEXACTSIZE 
WF_EXACTSIZE 
WF_NOFILTER 
WF_RALIGN 
WF_STRETCH 
WF_FLIPU 
WF_FLIPV 
WF_CUSTOMUV 
WF_IGNOREPOINTER 
WF_DISABLED 
WF_NOFOCUS 
WF_CLIPCHILDREN 
WF_RENDER_ALWAYS 
WF_NOCLEAR 
WF_DRAGGABLE 
enum ControlID
Enumerator
CID_NONE 
CID_CONTROLS 
CID_SELECT 
CID_BACK 
CID_LEFT 
CID_RIGHT 
CID_UP 
CID_DOWN 
CID_MENU 
CID_DRAG 
CID_COUNT 

Function Documentation

proto ScriptModule LoadScript ( ScriptModule  parentModule,
string  scriptFile,
bool  listing 
)

Do load script and create ScriptModule for it.

Parameters
parentModule Module
scriptFile Script path
listing ??
Returns
ScriptModule Loaded scripted module
1 ???
proto Type ( string  var )

Returns internal type representation. Can be used in runtime, or cached in variables and used for faster inheritance checking.

Parameters
var Variable
Returns
typename Type of class
1 ???

Referenced by ScriptConsole::AddSqfDebugWatcher(), AgentBase::AgentBase(), ActionEat::ApplyModifiers(), ActionSkinning::CanDo(), ActionDigTile::CanDo(), ActionDigSoil::CanDo(), ItemBase::CanRepair(), DayZIntroScene::CreateCharacter(), ComponentsBank::CreateComponent(), DisplayStatus::Debug(), GardenBase::DigSoil(), DisplayElement::DisplayElement(), EN5C_PlantBase::EN5C_PlantBase(), EN5C_DiggedSoil::Fertilize(), ModuleConfigViewer::GetConfig(), ModuleBase::GetModuleType(), UIPopupScript::GetSceneEditor(), EN5C_PlantBase::Harvest(), HudDebugWinCharDebug::HudDebugWinCharDebug(), ItemBase::IDToName(), ScriptConsole::Init(), InventoryMenu::Init(), MessageReceiverBase::MessageReceiverBase(), MissionBase::MissionBase(), MissionGameplay::MissionGameplay(), ModifierBase::ModifierBase(), ItemBase::NameToID(), NotifierBase::NotifierBase(), ScriptConsole::OnClick(), ActionSkinning::OnComplete(), ModuleSceneEditor::OnInit(), InventoryManager::OnPerformCombination(), PlayerBase::OnRPC(), OnSqfDebugWatcherResult(), PlayerBase::OnSqfPlayerInit(), MissionGameplay::OnUpdate(), PlayerBase::PerformRecipe(), GardenBase::PlantSeed(), PlayerBase::PlayerBase(), HudDebug::RefreshByLocalProfile(), ModuleManager::RegisterModule(), ScriptConsole::RemoveLastSqfDebugWatcher(), ModuleRepairing::Repair(), ItemBase::Repair(), SceneEditorMenu::SceneEditorMenu(), ScriptConsole::ScriptConsole(), DispatcherCaller::SendLogAtClient(), HudDebugWinCharNotifiers::SetNotifiers(), PlayerBase::ShavePlayer(), InventoryManager::ShowActionMenuCombine(), ModuleSkinning::SkinComplete(), PlayerBase::SpawnItem(), ToggleSceneEditor(), MissionServer::UpdatePlayersStats(), and PlayerBase::WashHands().

proto class Spawn ( typename type  )

Dynamic variant to 'new' keyword. It creates new instance of class.

Parameters
type Class type
Returns
volatile instance of class
1 ???

Referenced by ComponentsBank::CreateComponent(), and ModuleManager::RegisterModule().

proto bool IsInherited ( class ent  ,
typename type   
)

Returns true when instance is of the type, or inherited one.

Parameters
ent Class
type Class type
Returns
bool true when 'clType' is the same as 'type', or inherited one.
1 ???

Referenced by ActionEat::ApplyModifiers(), ActionPackTent::Can(), ActionToggleTentOpen::Can(), ActionTurnOnTorch::CanDo(), ActionDisinfectPlant::CanDo(), ActionWaterPlant::CanDo(), ActionActivateTrap::CanDo(), ActionFertilizeSoil::CanDo(), ActionFillObject::CanDo(), ActionFoldObject::CanDo(), ActionHarvestCrops::CanDo(), ActionPackTent::CanDo(), ActionRemovePlant::CanDo(), ActionToggleTentOpen::CanDo(), ActionDigSoil::CanDo(), ActionWaterPlantBit::CanDo(), ActionFertilizeSoilBit::CanDo(), ActionDisinfectPlantBit::CanDo(), CanShowItemInInventory(), TentBase::EEItemAttached(), TentBase::EEItemDetached(), InventoryManager::GetCombinationFlags(), GardenBase::GetGardenSlotsCount(), InventoryManager::GetItemQuantity(), InventoryManager::GetItemQuantityText(), InventoryManager::HasItemQuantity(), InventoryView::InitAttachmentGrid(), InventoryMenu::InitContainers(), InventoryView::InitIconGrid(), InventoryViewHands::InitIconGrid(), ActionFillObject::OnComplete(), ActionWaterPlant::OnComplete(), ActionActivateTrap::OnComplete(), ActionDisinfectPlant::OnComplete(), ActionFertilizeSoil::OnComplete(), ActionTurnOnTorch::OnComplete(), ActionPackTent::OnComplete(), ActionFoldObject::OnComplete(), ActionRemovePlant::OnComplete(), ActionHarvestCrops::OnComplete(), ActionToggleTentOpen::OnComplete(), ActionDigSoil::OnComplete(), ActionDisinfectPlantBit::OnComplete(), ActionPlantSeed::OnComplete(), ActionWaterPlantBit::OnComplete(), ActionFertilizeSoilBit::OnComplete(), ItemBase::OnInventoryEnter(), ItemBase::OnInventoryExit(), InventoryView::OnItemDraggingOver(), InventoryView::OnItemDropReceived(), MissionGameplay::OnItemUsed(), InventoryManager::OnPerformCombination(), ActionTurnOnRoadFlare::OnStart(), InventoryView::SetHeaderCountText(), InventoryManager::ShowTooltip(), ModuleSkinning::SkinComplete(), PlayerBase::SpawnItem(), InventoryManager::TakeAsOwned(), UpdateItemInfoQuantity(), and InventoryContainerVicinity::UpdateItems().

proto bool IsTypeInherited ( typename clType  ,
typename type   
)

Returns true when 'clType' is the same as 'type', or inherited one.

Parameters
clType Class type
type Class type
Returns
bool true when 'clType' is the same as 'type', or inherited one.
1 ???
proto string ClassName ( class ent  )
proto string TypeName ( typename type  )

Referenced by GetModule().

proto int GetValue ( class ent  ,
string  varname,
int  index,
out void  result 
)

Dynamic read of variable value by its name.

Parameters
ent When ent == NULL, it's for global variable, otherwise it's class member
index Is index when variable is array
[out] result Variable must be of the same type!
Returns
int true when success
1 float count = 0;
2 
3 bool success = GetValue(myClass, "m_Counter", 0, count);
4 Print(count);
5 Print(success);
6 
7 >> count = 5
8 >> success = 1
proto int SetValue ( class ent  ,
string  varname,
int  index,
void  input 
)

Dynamic write to variable by its name.

Parameters
ent when ent == NULL, it's for global variable, otherwise it's class member
varname
index Is index when variable is array
input Input variable must be of the same type!
Returns
int Returns true(1) when success
1 Print(myClass.m_Counter);
2 
3 >> m_Counter = 0
4 
5 bool success = SetValue(myClass, "m_Counter", 0, 5.0);
6 
7 Print(myClass.m_Counter);
8 Print(success);
9 
10 >> m_Counter = 5
11 >> success = 1
proto int SetVar ( out void  var,
string  value 
)

Sets variable value by value in string.

Parameters
[out] var
value
Returns
int
1 ???
proto void GetHourMinuteSecond ( out int  hour,
out int  minute,
out int  second 
)

Returns world time.

Parameters
[out] hour int Hour
[out] minute int Minute
[out] second int Second
Returns
void
1 int hour = 0;
2 int minute = 0;
3 int second = 0;
4 
5 GetHourMinuteSecondUTC(hour, minute, second);
6 
7 Print(hour);
8 Print(minute);
9 Print(second);
10 
11 >> hour = 16
12 >> minute = 38
13 >> second = 7

Referenced by Debug::GetDate().

proto void GetYearMonthDay ( out int  year,
out int  month,
out int  day 
)

Returns world date.

Parameters
[out] year int Year
[out] month int Month
[out] day int Day
Returns
void
1 int year = 0;
2 int month = 0;
3 int day = 0;
4 
5 GetYearMonthDay(year, month, day);
6 
7 Print(year);
8 Print(month);
9 Print(day);
10 
11 >> year = 2015
12 >> month = 3
13 >> day = 24

Referenced by Debug::GetDate().

proto void GetHourMinuteSecondUTC ( out int  hour,
out int  minute,
out int  second 
)

Returns UTC world time.

Parameters
[out] hour int Hour
[out] minute int Minute
[out] second int Second
Returns
void
1 int hour = 0;
2 int minute = 0;
3 int second = 0;
4 
5 GetHourMinuteSecondUTC(hour, minute, second);
6 
7 Print(hour);
8 Print(minute);
9 Print(second);
10 
11 >> hour = 15
12 >> minute = 38
13 >> second = 7
proto void GetYearMonthDayUTC ( out int  year,
out int  month,
out int  day 
)

Returns UTC world date.

Parameters
[out] year int Year
[out] month int Month
[out] day int Day
Returns
void
1 int year = 0;
2 int month = 0;
3 int day = 0;
4 
5 GetYearMonthDayUTC(year, month, day);
6 
7 Print(year);
8 Print(month);
9 Print(day);
10 
11 >> year = 2015
12 >> month = 3
13 >> day = 24
proto void Watch ( void  var,
int  flags 
)

Debug tool for watching certain variable. Invokes debugger whenever is variable used.

Parameters
var Certain variable for watching
flags = 1 means it will break even when not modified
Returns
void
proto string tostr ( int  ascii )

Converts ASCII code to string.

Parameters
ascii ASCII code for convert to string.
Returns
string - Converted int.
1 int ascii = 77;
2 string str = tostr(ascii);
3 Print(str);
4 
5 >> str = 'M'

Referenced by PlayerNameHandler::OnKeyPress().

proto string itoa ( int  number )

Converts integer to string.

Parameters
number Integer for convert to string.
Returns
string - Converted int.
1 string str = itoa(56);
2 Print(str);
3 
4 >> str = '56'

Referenced by ContextMenu::Add(), ScriptConsole::AddSqfDebugWatcher(), FoodManager::ChangeFoodStage(), ContextMenu::Clear(), array< class T >::Debug(), IngameHud::DisplayNotifier(), EN5C_SeedPackBase::EmptySeedPack(), ComponentElectricDevice::Event_OnAwake(), SqfDebugWatcher::Execute(), InventoryGrid::GenerateQuickBarBackgroundTiles(), ModuleExperience::GetExpParamNumber(), ModuleExperience::GetExpParamString(), InventoryManager::GetItemQuantityText(), ModuleExperience::GetLevel(), LogTemplates::GetTemplate(), ActionMenu::Init(), IngameHud::Init(), EnConvert::IntToStringLen(), itoal(), ModuleLocalProfile::LoadConfigFile(), Component::LogErrorBadCompType(), MapTemplateBenchmark(), InventoryGrid::OnDoubleClick(), InventoryGrid::OnDrag(), InventoryGrid::OnDraggingOver(), InventoryGrid::OnDropReceived(), MissionGameplay::OnMissionFinish(), InventoryGrid::OnMouseButtonDown(), InventoryGrid::OnMouseEnter(), ComponentElectricDevice::PlugCordIntoSocket(), ComponentElectricDevice::PlugInDevice(), InventoryMenu::RefreshPlayerStatus(), LogTemplates::RegisterLogTamplate(), ContextMenu::Remove(), ModuleRepairing::Repair(), InventoryView::SetHeaderCountText(), ContextMenu::Show(), ScriptConsole::ShowItemButtons(), Trap_LandMine::Trap_LandMine(), Trap_TripWire::Trap_TripWire(), TrapBase::TrapBase(), ComponentElectricDevice::UnplugCordFromSocket(), ComponentElectricDevice::UnplugDevice(), UpdateItemInfoQuantity(), UpdateItemInfoWeight(), ComponentElectricDevice::UpdateSelections(), and ItemTrigger::ZombieDie().

proto int atoi ( string  str )

Converts string to integer.

Parameters
str String for convert to int.
Returns
int - Converted string.
1 int i = atoi("56.6");
2 Print(i);
3 
4 >> i = 56

Referenced by DayZIntroScene::DayZIntroScene(), ModuleLocalProfileUI::GetItemQuantity(), ModuleLocalProfile::GetParameterBool(), ModuleLocalProfile::GetParameterInt(), ScriptConsole::OnChange(), InventoryMenu::RefreshPlayerStatus(), and ModuleLifespan::UpdateLifespanLevelParam().

proto string ftoa ( float  number )
proto float atof ( string  str )

Converts string to float.

Parameters
str String for convert to float.
Returns
float - Converted string in float.
1 float f = atof("56.6");
2 Print(f);
3 
4 >> f = 56.6

Referenced by ModuleLocalProfileUI::GetItemDamage(), ModuleLocalProfile::GetParameterFloat(), ScriptConsole::OnChange(), ScriptConsole::OnClick(), ScriptConsole::SaveProfileSpawnDistance(), String2Vector(), and EnConvert::StringToVector().

proto string substr ( string  s,
int  from,
int  len 
)

Substring of 's' from 'from' position 'len' number of characters.

Parameters
s Origin string
from Position in s
len Count of characters
Returns
string - Substring of s
1 string str = "Hello World";
2 string strSub = substr(str, 2, 5);
3 Print(strSub);
4 
5 >> strSub = llo W

Referenced by Chat::Add(), ScriptConsole::ChangeFilter(), ModuleConfigViewer::ContainsFirstClass(), ModuleConfigViewer::GetBaseClassPathCombined(), ModuleConfigViewer::GetOnlyChildPath(), ModuleLocalProfile::IsTextArray(), ModuleLocalProfile::ParseTextToArray(), ModuleLocalProfile::ParseTextToParameter(), EnString::Split(), and strsplit().

proto int strrep ( inout string  s,
string  sample,
string  replace 
)

Replace all occurrances of 'sample' in 's' by 'replace'.

Parameters
s Origin string
sample string to search in s
replace string which replace sample in s
Returns
int - number of occurrances of 'sample' in 's'
1 string test = "If the length of the C string in source is less than num, only the content up to the terminating null-character is copied.";
2 Print(test);
3 int count = strrep(test, "the", "*");
4 Print(count);
5 Print(test);
6 
7 >> string test = 'If the length of the C string in source is less than num, only the content up to the terminating null-character is copied.';
8 >> int count = 4
9 >> string test = 'If * length of * C string in source is less than num, only * content up to * terminating null-character is copied.'

Referenced by ModuleLocalHistoryBase::AddNewLine(), EnfReadNote(), ModuleLocalHistoryBase::GetAllLines(), and Consumable_Paper::OnRPC().

proto int strlower ( string  s )

Changes string to lowercase. Returns length.

Parameters
[out] s string to change
Returns
int - Length of string s
1 string str = "Hello World";
2 int i = strlower(str);
3 Print(str);
4 Print(i);
5 
6 >> str = hello world
7 >> i = 11

Referenced by ScriptConsole::ChangeFilter(), CGame::IsKindOf(), and CGame::ObjectIsKindOf().

proto int strupper ( string  s )

Changes string to uppercase. Returns length.

Parameters
[out] s string to change
Returns
int - Length of changed string
1 string str = "Hello World";
2 int i = strupper(str);
3 Print(str);
4 Print(i);
5 
6 >> str = HELLO WORLD
7 >> i = 11

Referenced by ContextMenu::Add(), InventoryView::CreateLayout(), and InventoryViewHands::CreateLayout().

proto int strlen ( string  s )
proto int strstr ( string  s1,
string  sample 
)

Finds 'sample' in 's1'. Returns -1 when not found.

Parameters
s1 string Origin string
sample string Finding string
Returns
int - Returns position where sample starts, or -1 when sample not found
1 Print ( strstr( "Hello World", "H" ) );
2 Print ( strstr( "Hello World", "W" ) );
3 Print ( strstr( "Hello World", "Q" ) );
4 
5 >> 0
6 >> 6
7 >> -1

Referenced by ScriptConsole::ChangeFilter(), ModuleConfigViewer::ContainsFirstClass(), CreateMission(), PlayerNameHandler::OnKeyPress(), ModuleLocalProfile::ParseTextToArray(), and ModuleLocalProfile::ParseTextToParameter().

proto int strstroff ( string  s1,
int  offset,
string  sample 
)

Finds 'sample' in 's1' from 'offset' position. Returns -1 when not found.

Parameters
s1 string Origin string
offset int Start from position
sample string Finding string expression
Returns
int - Length of string s
1 Print ( strstroff ( "Hello World", 3, "H" ) );
2 Print ( strstroff ( "Hello World", 3, "W" ) );
3 Print ( strstroff ( "Hello World", 3, "Q" ) );
4 
5 >> -1
6 >> 6
7 >> -1

Referenced by ModuleConfigViewer::GetBaseClassPathCombined(), ModuleLocalProfile::ParseTextToArray(), EnString::Split(), and strsplit().

proto string trim ( string  str )

Returns trimmed string with removed leading and trailing whitespaces.

Parameters
str string Origin string
Returns
string - Trimmed string
1 Print(" Hello World ");
2 Print(trim(" Hello World "));
3 
4 >> ' Hello World '
5 >> 'Hello World'

Referenced by ScriptConsole::ChangeFilter(), ScriptConsole::ExpandHierarchy(), ModuleConfigViewer::GetOnlyChildPath(), ScriptConsole::Init(), PlayerNameHandler::OnChange(), PlayerNameHandler::OnFocusLost(), and ModuleLocalProfile::ParseTextToParameter().

proto int triminplace ( string  str )

Removes leading and trailing whitespaces in string. Returns length.

Parameters
str string Origin string
Returns
int - Count of chars
1 string str = " Hello World ";
2 int i = triminplace(str);
3 Print(str);
4 Print(i);
5 
6 >> str = 'Hello World'
7 >> i = 11
proto float pow ( float  v,
float  power 
)

Return power of v ^ power.

Parameters
v float Value
power float Power
Returns
float - Angle in radians
1 Print( pow(2, 4) ); // (2*2*2*2)=16
2 
3 >> 16

Referenced by frandom(), and EnMath::RandomFloat().

proto int rand ( int  min,
int  max 
)

Returns a random int number between and min [inclusive] and max [exclusive].

Parameters
min int Range starts [inclusive]
max int Range ends [exclusive]
Returns
int - Random number in range
1 Print(rand(0,1)); // only 0
2 Print(rand(0,2)); // 0 or 1
3 
4 >> 0
5 >> 1

Referenced by DayZIntroScene::AnimateCharacter(), DayZIntroScene::DayZIntroScene(), DisplayStatus::DebugRandValues(), EN5C_FishingRod_Base::FishPull(), AgentBase::GetInitialCount(), DayZIntroScene::InitCharacterAnimations(), MapTemplateBenchmark(), random(), EnMath::RandomInclMax(), CharacterMenu::RandomSelectComboBox(), and Trap_FishNet::Trap_FishNet().

int random ( int  min,
int  max 
)

Returns a random int number between and min [inclusive] and max [inclusive].

Parameters
min int Range starts [inclusive]
max int Range ends [inclusive]
Returns
int - Random number in range
1 Print(random(0,1)); // 0 or 1
2 Print(random(0,2)); // 0, 1, 2
3 
4 >> 1
5 >> 2

References rand().

Referenced by frandom(), array< class T >::GetRandomIndex(), NotifierBase::OnTick(), EnMath::RandomFloat(), TrapSpawnBase::SpawnCatch(), and Trap_RabbitSnare::Trap_RabbitSnare().

float frandom ( float  min,
float  max 
)

Returns a random float number between and min [inclusive] and max [inclusive].

Parameters
min float Range starts [inclusive]
max float Range ends [inclusive]
Returns
float - Random number in range
1 Print(frandom(0,1)); // 0.0 .. 1.0
2 Print(frandom(1,2)); // 1.0 .. 2.0
3 
4 >> 0.3
5 >> 2.0

References pow(), and random().

Referenced by frandom01().

float frandom01 ( )

Returns a random float number between and min [inclusive] and max [inclusive].

Returns
float - Random number in range 0.0 .. 1.0
1 Print(frandom()); // 0.0 .. 1.0
2 
3 >> 0.3
4 >> 1.0

References frandom().

proto float frand ( float  min,
float  max 
)

Returns a random float number between and min[inclusive] and max[exclusive].

Parameters
min float Range starts [inclusive]
max float Range ends [exclusive]
Returns
float - Random number in range
1 Print(frand(0,1));
2 Print(frand(0,2));
3 
4 >> 0.597561
5 >> 1.936456

Referenced by PlayerBase::DropItem(), ModuleSkinning::SkinComplete(), TrapSpawnBase::SpawnCatch(), and TrapBase::StartDeactivate().

proto int randomize ( int  seed )

Sets the seed for the random number generator.

Parameters
seed int New seed for the random number generator
Returns
int - Returns new seed
1 Print(randomize(5));
2 
3 >> 5

Referenced by DayZGame::OnAfterCreate().

proto float FixAngle ( float  ang )

Normalizes the angle (0...360)

Parameters
ang float Angle for normalizing
Returns
float - Normalized angle
1 Print(FixAngle(390));
2 Print(FixAngle(-90));
3 
4 >> 30
5 >> 270

Referenced by CorrectAngle(), EnMath3D::DiffAngle(), and DiffAngle().

proto float fabs ( float  a )

Returns absolute value.

Parameters
a float Value
Returns
float - Absolute value
1 Print(fabs(-12.5));
2 
3 >> 12.5

Referenced by CorrectAngle(), EnMath3D::DiffAngle(), DiffAngle(), Trigger::GetRadius(), and AnimatorTimer::Tick().

proto int abs ( int  a )

Returns absolute value.

Parameters
a int Value
Returns
int - Absolute value
1 Print(fabs(-12));
2 
3 >> 12

Referenced by IngameHud::DisplayNotifier(), GetTemperatureColor(), and AutoHeightSpacer::Update().

proto float sqrt ( float  val )

Returns square root.

Parameters
val float Value
Returns
float - Square of value
1 Print(sqrt(25));
2 
3 >> 5

Referenced by StaminaCalc::OnTick(), Hyperthermia::OnTick(), Environment::ProcessEnvironmentEffect(), and ModuleRepairing::Repair().

proto float sin ( float  angle )

Returns sinus of angle in radians.

Parameters
angle float Angle in radians
Returns
float - Sinus of angle
1 Print(sin(0.785398)); // (45)
2 
3 >> 0.707107

Referenced by Object::GetDirection(), and AnimatorTimer::Tick().

proto float cos ( float  angle )

Returns cosinus of angle in radians.

Parameters
angle float Angle in radians
Returns
float - Cosinus of angle
1 Print(cos(0.785398)); // (45)
2 
3 >> 0.707107

Referenced by Object::GetDirection().

proto float tan ( float  deg )

Returns tangent of angle in radians.

Parameters
deg float Angle in radians
Returns
float - Tangens of angle
1 Print(tan(0.785398)); // (45)
2 
3 >> 1
proto float asin ( float  s )

Returns angle in radians from sinus.

Parameters
s float Sinus
Returns
float - Angle in radians
1 Print(asin(0.707107)); // (sinus 45)
2 
3 >> 0.785398
proto float acos ( float  c )

Returns angle in radians from cosinus.

Parameters
c float Cosinus
Returns
float - Angle in radians
1 Print( acos(0.707107) ); // (cosinus 45)
2 
3 >> 0.785398
proto float atan2 ( float  y,
float  x 
)

Returns angle in radians from tangent.

Parameters
y float Tangent
x float Tangent
Returns
float - Angle in radians
1 Print ( atan2(1, 1) );
2 
3 >> 0.785398

Referenced by DayZIntroScene::DayZIntroScene().

proto float round ( float  f )
float clamp ( float  value,
float  min,
float  max 
)
proto float floor ( float  f )

Returns floor of value.

Parameters
f float Value
Returns
int - Floor of value
1 Print( floor(5.3) );
2 Print( floor(5.8) );
3 
4 >> 5
5 >> 5

Referenced by ItemBase::QuantitySplit().

proto float ceil ( float  f )

Returns ceil of value.

Parameters
f float Value
Returns
int - Ceil of value
1 Print( ceil(5.3) );
2 Print( ceil(5.8) );
3 
4 >> 6
5 >> 6

Referenced by BookMenu::NextPrevPage().

proto void Sort ( void  param_array[],
int  num 
)

Sorts static array of integers(ascendically) / floats(ascendically) / strings(alphabetically)

Parameters
param_array array Array to sort
num int How many items will be sorted in array
Returns
void
1 string arrStr[3] = {"Dog", "Car", "Apple"};
2 Sort(arrStr, 2)
3 for ( int x = 0; x < 3; x++ )
4 {
5  Print( arrStr[x] );
6 }
7 
8 >> 'Car'
9 >> 'Dog'
10 >> 'Apple'

Referenced by InventoryMenu::RefreshPlayerStatus().

proto void MemoryValidation ( bool  enable )

Switches memory validation (huge slowdown! Use with care only for certain section of code!)

Parameters
enable bool Enable
Returns
void
1 ???
proto int ParseStringEx ( inout string  input,
string  token 
)

Parses one token from input string. Result is put into token string, and type of token is returned. Input string is left-truncated by the resulting token length.

Parameters
[in,out] input string String for parse\ Output is without founded token
[out] token string Founded string token
Returns
int Type of token
Token types:
 0 - error, no token
 1 - defined token (special characters etc. . / * )
 2 - quoted string. Quotes are removed -> TODO
 3 - alphabetic string
 4 - number
 5 - end of line -> TODO
1 string input = "Hello*World";
2 string token1;
3 string token2;
4 
5 int result1 = ParseStringEx(input, token1);
6 int result2 = ParseStringEx(input, token2);
7 
8 Print( String( "Token1 = '" + token1 + "' Type = " + itoa(result1) ) );
9 Print( String( "Token2 = '" + token2 + "' Type = " + itoa(result2) ) );
10 Print( input );
11 
12 >> 'Toke1 = 'Hello' Type = 3'
13 >> 'Toke1 = '*' Type = 1'
proto int ParseString ( string  input,
out string  tokens[] 
)

Parses string into array of tokens returns number of tokens.

Parameters
input string String for parse
[out] tokens array[] Parsed string in array
Returns
int Number of tokens
1 string token[2];
2 int result = ParseString("Hello World", token);
3 
4 for( int i = 0; i < 2; i++ )
5 {
6  Print(token[i]);
7 }
8 
9 >> 'Hello'
10 >> 'World'

Referenced by String2Vector(), and EnConvert::StringToVector().

proto int KillThread ( class owner  ,
string  name 
)

Kills thread.

Parameters
owner Can be NULL for global threads.
name Name of the first function on stack
Returns
int ???
1 ???
proto void Idle ( )

Yiels execution to other threads and then it continues. Obsolete...

proto string ThreadFunction ( class owner  ,
string  name,
int  backtrace,
out int  linenumber 
)

Debug function. Returns current function on stack of the thread.

Parameters
owner Can be NULL for global threads
name Name of the first function on stack
backtrace ???
linenumber ???
Returns
string ???
1 ???
string Vector2String ( vector  v )

Vector to string.

Parameters
v vector Vector
Returns
string Converted vector as string
1 vector v = "1 0 1";
2 Print(Vector2String(v));
3 
4 >> '<1,0,1>'

References ftoa().

string Vector2StringParse ( vector  v )

Vector to parseable string.

Parameters
v vector Vector
Returns
string Converted vector as parsed string
1 vector v = "1 0 1";
2 Print(Vector2String(v));
3 
4 >> '1 0 1'

References ftoa().

vector String2Vector ( string  s )

Returns a vector from a string.

Parameters
s string Vector in string format
Returns
vector Converted s as vector
1 vector v = String2Vector("1 0 1");
2 Print(v);
3 
4 >> v = <1,0,1>

References atof(), and ParseString().

Referenced by ScriptConsole::OnClick(), and OnRPCFreeCameraSend().

string itoal ( int  num,
int  len 
)

Integer to string with fixed length, padded with zeroes.

Parameters
num int integer to convert
len int fixed length
Returns
vector Converted s as vector
1 string s = itoal(123, 5);
2 Print(s);
3 
4 >> s = '00123'

References itoa(), and strlen().

Referenced by ModuleConfigViewer::GetConfigRecursive(), and Debug::GetDate().

float DiffAngle ( float  yaw,
float  a 
)

Return relative difference between angles.

Parameters
yaw float Angle1
a float Angle2
Returns
float Difference between angles (Angle1 - Angle2)
1 Print( DiffAngle(-45, 45) );
2 Print( DiffAngle(90, 80) );
3 
4 >> -90
5 >> 10

References fabs(), and FixAngle().

vector GetRelAngles ( vector  angs )

Returns relative angles between -180 and 180, not 0 to 360.

Parameters
angs float Angle1
Returns
float Relative angles
1 vector angles = "-45 190 160";
2 Print( GetRelAngles(angles) );
3 
4 >> <-45,-170,160>
bool not ( bool  var )
proto float VectorNormalize ( inout vector  vec )

Normalizes vector. Returns length.

Parameters
[in,out] vec vector Vector to normalizing
Returns
float Length of origin vector
1 vector vec = "1 0 1";
2 float length = VectorNormalize(vec);
3 Print( vec );
4 Print( length );
5 
6 >> vec = <0.707107,0,0.707107>
7 >> length = 1.41421

Referenced by AddDArrow(), and AddDBridgeArrow().

proto float VectorLength ( vector  vec )

Returns length of vector (magnitude)

Parameters
vec vector Vector to calculate length
Returns
float Length of vector
1 vector vec = "1 0 1";
2 float length = VectorLength(vec);
3 Print( length );
4 
5 >> length = 1.41421

Referenced by Trigger::GetRadius(), and Vector3Distance().

float Vector3Distance ( vector  v1,
vector  v2 
)

Returns the distance between tips of two 3D vectors.

Parameters
v1 vector 3D Vector 1
v1 vector 3D Vector 2
Returns
float Distance
1 float dist = Vector3Distance( "1 2 3", "4 5 6" );
2 Print( dist );
3 
4 >> dist = 5.19615

References VectorLength().

Referenced by PlayerBase::OnCheckPlugRange().

proto float VectorLengthSq ( vector  vec )

Returns squared length (magnitudeSqr)

Parameters
vec vector Vector to calculate length
Returns
float Length of vector
1 vector vec = "1 1 0";
2 float length = VectorLength(vec);
3 Print( length );
4 
5 >> length = 2

Referenced by InventoryGrid::UpdateItems(), and InventoryGrid::UpdateQuickbarItems().

proto vector Vector2Angles ( vector  vec )

Returns angles of vector.

Parameters
vec vector Vector to convert angles
Returns
vector Angles of vector
1 Print( Vector2Angles("0 1 0") );
2 Print( Vector2Angles("0.7 0.7 0") );
3 
4 >> <-0,90,0>
5 >> <-0,45,0>
proto float Vector2Yaw ( vector  vec )

Returns yaw of vector.

Parameters
vec vector Vector to convert yaw
Returns
float Yaw of vector
1 Print( Vector2Yaw("0 1 0") );
2 Print( Vector2Yaw("0.7 0.7 0") );
3 
4 >> 90
5 >> 45
proto vector Yaw2Vector ( float  yaw )

Returns vector of yaw.

Parameters
yaw float Value of yaw
Returns
vector Yaw converted in vector
1 Print( Yaw2Vector(90) );
2 Print( Yaw2Vector(45) );
3 
4 >> <0,1,0>
5 >> <0.707107,0.707107,0>
proto vector VVector2Angles ( vector  vec )

Converts vector to spherical coordinates with radius = 1.

Parameters
vec vector which will be converted to spherical coordinates
Returns
vector containing polar angle as x component and azimuthal angle as y component
1 Print( VVector2Angles("1 0 1") );
2 Print( VVector2Angles("1 1 1") );
3 
4 >> <45,0,360>
5 >> <35.2644,0,324.736>
proto vector Angles2Vector ( vector  ang )

Converts spherical coordinates to unit length vector.

Parameters
ang vector which contains spherical coordinates - x component is polar angle and y component is azimuthal angle
Returns
vector containing polar angle as x component and azimuthal angle as y component
1 Print( Angles2Vector("45 0 0") );
2 Print( Angles2Vector("15 60 0") );
3 
4 >> <0.707107,0,0.707107>
5 >> <0.482963,0.836516,0.258819>
proto void YawPitchRollMatrix ( vector  ang,
out vector  mat[3] 
)

Creates rotation matrix from angles.

Parameters
ang vector which contains angles
[out] mat vector created rotation matrix
1  vector mat[3];
2 YawPitchRollMatrix( "70 15 45", mat );
3 Print( mat );
4 
5 >> <0.330366,0.0885213,-0.939693>,<0.458809,0.854988,0.241845>,<0.824835,-0.511037,0.241845>
proto void AroundVectorMatrix ( vector  vec,
float  degree,
out vector  mat[3] 
)
proto void DirectionAndUpMatrix ( vector  dir,
vector  up,
out vector  mat[4] 
)

Creates rotation matrix from direction and up vector.

Parameters
dir vector direction vector
up vector up vector
[out] mat vector[4] created rotation matrix
1 vector mat[4];
2 vector dir = "1 0 1";
3 vector up = "0 1 0";
4 DirectionAndUpMatrix( dir, up, mat );
5 Print( mat );
6 
7 >> <0.707107,0,-0.707107>,<0,1,0>,<0.707107,0,0.707107>,<0,0,0>

Referenced by DayZIntroScene::DayZIntroScene().

proto vector VectorMatrixMultiply4 ( vector  mat[4],
vector  vec 
)

Transforms position.

Parameters
mat vector[4] transformation matrix
vec vector position to transform
Returns
vector transformed position
1 vector mat[4] = { "1 0 0 0", "0 1 0 0", "0 0 1 1", "3 1 2 1" }; // translation matrix
2 vector pos = "1 1 1";
3 Print( VectorMatrixMultiply4(mat, pos) );
4 
5 >> <4,2,3>

Referenced by DayZIntroScene::DayZIntroScene(), and CharacterMenu::DefaultCharacterScreen().

proto vector VectorMatrixMultiply3 ( vector  mat[3],
vector  vec 
)

Transforms vector.

Parameters
mat vector[3] transformation matrix
vec vector vector to transform
Returns
vector transformed vector
1 vector mat[3] = { "2 0 0", "0 3 0", "0 0 1" }; // scale matrix
2 vector vec = "1 1 1";
3 Print( VectorMatrixMultiply3(mat, vec) );
4 
5 >> <2,3,1>
proto vector VectorMatrixInvMultiply4 ( vector  mat[4],
vector  vec 
)

Invert-transforms position.

Parameters
mat vector[4] transformation matrix
vec vector position to transform
Returns
vector transformed position
1 vector mat[4] = { "1 0 0 0", "0 1 0 0", "0 0 1 1", "3 1 2 1" }; // translation matrix
2 vector pos = "1 1 1";
3 Print( VectorMatrixInvMultiply4(mat, pos) );
4 
5 >> <-2,0,-1>
proto vector VectorMatrixInvMultiply3 ( vector  mat[3],
vector  vec 
)

Invert-transforms vector.

Parameters
mat vector[3] transformation matrix
vec vector vector to transform
Returns
vector transformed vector
1 vector mat[3] = { "1.5 2.5 0", "0.1 1.3 0", "0 0 1" }; // rotation matrix
2 vector vec = "1 1 1";
3 Print( VectorMatrixInvMultiply3(mat, vec) );
4 
5 >> <4,1.4,1>
proto void MatrixMultiply4 ( vector  mat0[4],
vector  mat1[4],
out vector  res[4] 
)

Transforms matrix.

Parameters
mat0 vector[4] first matrix
mat1 vector[4] second matrix
[out] res vector[4] result of first and second matrix multiplication
1 vector mat0[4] = { "2 0 0 0", "0 3 0 0", "0 1 0 0", "0 0 0 1" }; // scale matrix
2 vector mat1[4] = { "1 0 0 0", "0 1 0 0", "0 1 0 0", "2 4 1 3" }; // translation matrix
3 vector res[4];
4 MatrixMultiply4(mat0, mat1, res)
5 Print( res );
6 
7 >> <2,0,0>,<0,3,0>,<0,3,0>,<4,13,0>
proto void MatrixMultiply3 ( vector  mat0[3],
vector  mat1[3],
out vector  res[3] 
)

Transforms rotation matrix.

Parameters
mat0 vector[3] first matrix
mat1 vector[3] second matrix
[out] res vector[3] result of first and second matrix multiplication
1 vector mat0[3] = { "1.5 2.5 0", "0.1 1.3 0", "0 0 1" }; // rotation matrix
2 vector mat1[3] = { "1 0.4 0", "0 1 0", "0 1.3 2.7" }; // rotation matrix
3 vector res[3];
4 MatrixMultiply3(mat0, mat1, res)
5 Print( res );
6 
7 >> <1.54,3.02,0>,<0.1,1.3,0>,<0.13,1.69,2.7>
proto void MatrixInvMultiply4 ( vector  mat0[4],
vector  mat1[4],
out vector  res[4] 
)

Invert-transforms matrix.

Parameters
mat0 vector[4] first matrix
mat1 vector[4] second matrix
[out] res vector[4] inverse result of first and second matrix multiplication
1 vector mat0[4] = { "2 0 0 0", "0 3 0 0", "0 1 0 0", "0 0 0 1" }; // scale matrix
2 vector mat1[4] = { "1 0 0 0", "0 1 0 0", "0 1 0 0", "2 4 1 3" }; // translation matrix
3 vector res[4];
4 MatrixInvMultiply4(mat0, mat1, res)
5 Print( res );
6 
7 >> <2,0,0>,<0,3,1>,<0,3,1>,<4,12,4>
proto void MatrixInvMultiply3 ( vector  mat0[3],
vector  mat1[3],
out vector  res[3] 
)

Invert-transforms rotation matrix.

Parameters
mat0 vector[3] first matrix
mat1 vector[3] second matrix
[out] res vector[3] result of first and second matrix multiplication
1 vector mat0[3] = { "1.5 2.5 0", "0.1 1.3 0", "0 0 1" }; // rotation matrix
2 vector mat1[3] = { "1 0.4 0", "0 1 0", "0 1.3 2.7" }; // rotation matrix
3 vector res[3];
4 MatrixInvMultiply3(mat0, mat1, res)
5 Print( res );
6 
7 >> <2.5,0.62,0>,<2.5,1.3,0>,<3.25,1.69,2.7>
void MatrixIdentity ( out vector  mat[4] )

Creates identity matrix.

Parameters
[out] mat created identity matrix
1  vector mat[4];
2 MatrixIdentity( mat );
3 Print( mat );
4 
5 >> <1,0,0>,<0,1,0>,<0,0,1>,<0,0,0>

References ZeroVec.

Referenced by DayZIntroScene::DayZIntroScene().

void ScaleMatrix ( float  scale,
out vector  mat[3] 
)

Creates scale matrix.

Parameters
scale scale coeficient
[out] mat created scale matrix
1  vector mat[3];
2 ScaleMatrix( 2.5, mat );
3 Print( mat );
4 
5 >> <2.5,0,0>,<0,2.5,0>,<0,0,2.5>
proto vector MatrixAngles ( vector  mat[3] )

Returns angles of rotation matrix.

Parameters
mat vector[3] rotation matrix
Returns
vector roll, pitch, yaw angles
1 vector mat[3];
2 RollPitchYawMatrix( "70 15 45", mat );
3 vector ang = MatrixAngles( mat );
4 Print( ang );
5 
6 >> <70,15,-45>
void QuatIdentity ( out float  q[4] )

Creates identity quaternion.

Parameters
[out] q float[4] created identity quaternion
1 float q[4];
2 QuatIdentity( q );
3 Print( q );
4 
5 >> {0,0,0,1}
void QuatCopy ( float  s[4],
out float  d[4] 
)

Copies quaternion.

Parameters
s float[4] quaternion to copy
[out] d float[4] created quaternion copy
1 float s[4] = { 2, 3, 4, 1 };
2 float d[4];
3 QuatCopy( s, d );
4 Print( d );
5 
6 >> {2,3,4,1}
proto void MatrixQuat ( vector  mat[3],
out float  d[4] 
)

Converts rotation matrix to quaternion.

Parameters
mat vector[3] rotation matrix
[out] d float[4] created quaternion copy
1 vector mat[3];
2 RollPitchYawMatrix( "70 15 45", mat );
3 float d[4];
4 MatrixQuat( mat, d );
5 Print( d );
6 
7 >> {0.241626,0.566299,-0.118838,0.778973}
proto void QuatLerp ( out float  qout[4],
float  q1[4],
float  q2[4],
float  frac 
)

Linear interpolation between q1 and q2 with weight 'frac' (0...1)

Parameters
[out] qout float[4] result quaternion
q1 float[4] first quaternion
q2 float[4] second quaternion
frac float interpolation weight
1 float q1[4] = { 1, 1, 1, 1 };
2 float q2[4] = { 2, 2, 2, 1 };
3 float qout[4];
4 QuatLerp( qout, q1, q2, 0.5 );
5 Print( qout );
6 
7 >> {1.5,1.5,1.5,1}
proto void QuatMatrix ( float  q[4],
out vector  mat[3] 
)
proto void QuatMultiply ( out float  qout[4],
float  q1[4],
float  q2[4] 
)

Multiplies quaternions.

Parameters
[out] qout float[4] result quaternion
q1 float[4] first quaternion
q2 float[4] second quaternion
1 float q1[4] = { 1, 2, 3, 1 };
2 float q2[4] = { 2, 2, 2, 1 };
3 float qout[4];
4 QuatMultiply( qout, q1, q2 );
5 Print( qout );
6 
7 >> {2,4,6,1}
int CheckBoundBox ( vector  mins1,
vector  maxs1,
vector  mins2,
vector  maxs2 
)

Returns 1, when bounding boxes intersects.

Parameters
mins1 vector minimum point of first bounding box
maxs1 vector maximum point of first bounding box
mins2 vector minimum point of second bounding box
maxs2 vector maximum point of second bounding box
Returns
int 1 if boundig boxes intersects, otherwise 0
1 vector mins1 = "1 1 1";
2 vector maxs1 = "3 3 3";
3 vector mins2 = "2 2 2";
4 vector maxs2 = "4 4 4";
5 Print( CheckBoundBox(mins1, maxs1, mins2, maxs2) );
6 
7 >> 1
vector Perpend ( vector  vec )

Returns perpendicular vector. Perpendicular vector is computed as cross product between input vector and up vector (0, 1, 0).

Parameters
vec vector input vector
Returns
vector perpendicular vector
1 Print( Perpend("1 0 0") );
2 
3 >> <0,0,1>

References UpVec.

Referenced by AddDArrow(), and AddDBridgeArrow().

proto vector Vector ( float  x,
float  y,
float  z 
)
proto int UpdateEntity ( _entity  ent )
proto int GetFlags ( _entity  ent )

Returns Entity flags.

Parameters
ent _entity entity which flags will be returned
Returns
int entity flags
Entity flags:
TFL_VISIBLE               - will be rendered
TFL_SOLID                 - can be traced/collided
TFL_DEF                   - TFL_VISIBLE|TFL_SOLID
TFL_ONGROUND              - read only hint from physics

TFL_USER1                 - user flags for quick filtering  (i.e. VisEntities())
[...]
TFL_USER6

TFL_TRANSLUCENT           - passable when tracing with TRACE_PASSTRANSLUCENT
TFL_TRANSPARENT_OCCLUDER  - marks foliage (see-through plants is used)
TFL_WATER                 - collides when tracing with TRACE_WATER
TFL_ACTIVE                - Simulated - automaticly calls Update and is part of Active set
TFL_STATIC                - non-animated static geometry (engine optimization)
1 Man player = g_Game.GetPlayer();
2 Print( GetFlags(player) );
3 
4 >> 1610612745
proto int SetFlags ( _entity  ent,
int  flag 
)

Sets Entity flags. It's OR operation, not rewrite. Returns previous flags.

Parameters
ent _entity entity which flags will be set
flag int flags to be set
Returns
int previous flags
1 Man player = g_Game.GetPlayer();
2 SetFlags( player, TFL_VISIBLE|TFL_SOLID );
3 Print( GetFlags(player) );
4 
5 >> 1610612747

Referenced by BaseBuildingBase::BaseBuildingBase(), Car::Car(), Man::Man(), EntityAI::SetSynchDirty(), and Trigger::Trigger().

proto int ClearFlags ( _entity  ent,
int  flag 
)

Clear Entity flags. Returns cleared flags.

Parameters
ent _entity entity which flags will be cleared
flag int flags to be set
Returns
int cleared flags
1 Man player = g_Game.GetPlayer();
2 ClearFlags( player, TFL_VISIBLE|TFL_SOLID );
3 Print( GetFlags(player) );
4 
5 >> 1610612744
proto int GetEventMask ( _entity  ent )

Returns current event mask.

Parameters
ent _entity entity which event mask will be returned
Returns
int current event mask
1 Man player = g_Game.GetPlayer();
2 Print( GetEventMask(player) );
3 
4 >> 0
proto void SetEventMask ( _entity  ent,
int  e 
)

Sets event mask.

Parameters
ent _entity entity which event mask will be set
1 Man player = g_Game.GetPlayer();
2 Print( GetEventMask(player) );
3 SetEventMask( player, EV_VISIBLE );
4 Print( GetEventMask(player) );
5 
6 >> 0
7 >> 128

Referenced by BaseBuildingBase::BaseBuildingBase(), ComponentEntityDebug::DebugDrawBBox(), ComponentEntityDebug::DebugDrawDirection(), ItemBase::ItemBase(), PlayerBase::PlayerBase(), SurvivorPartsFemaleWhite::SurvivorPartsFemaleWhite(), Trigger::Trigger(), and ZombieEngine::ZombieEngine().

proto int ClearEventMask ( _entity  ent,
int  e 
)

Clears event mask.

Parameters
ent _entity entity which event mask will be set
event int event mask
Returns
int event mask
1 Man player = g_Game.GetPlayer();
2 SetEventMask( player, EV_VISIBLE );
3 Print( GetEventMask(player) );
4 ClearEventMask( player, EV_ALL );
5 Print( GetEventMask(player) );
6 
7 >> 128
8 >> 0
proto vector GetOrigin ( _entity  ent )

Returns origin of Entity.

Parameters
ent _entity entity which origin will be returned
Returns
vector entity origin
1 Man player = g_Game.GetPlayer();
2 Print( GetOrigin(player) );
3 
4 >> <2577.02,15.6837,2924.27>

Referenced by SurvivorPartsFemaleWhite::EOnInit().

proto vector GetAngles ( _entity  ent )

Returns orientation of Entity in world space.

Parameters
ent _entity entity which orientation will be returned
Returns
vector entity orientation
1 Man player = g_Game.GetPlayer();
2 Print( GetAngles(player) );
3 
4 >> <180,-76.5987,180>
proto vector GetLocalAngles ( _entity  ent )

Returns local orientation when it's in hierarchy.

Parameters
ent _entity entity which local orientation will be returned
Returns
vector local orientation
1 Man player = g_Game.GetPlayer();
2 Print( GetLocalAngles(player) );
3 
4 >> <180,-57.2585,180>
proto void SetAngles ( _entity  ent,
vector  angles 
)

Sets angles for entity.

Parameters
ent _entity entity which angles will be set
angles vector angles to be set
1 Man player = g_Game.GetPlayer();
2 SetAngles( player, "180 50 180" );
3 Print( GetAngles(player) );
4 
5 >> <-180,50,-180>
proto void SetOrigin ( _entity  ent,
vector  orig 
)

Sets origin for entity.

Parameters
ent _entity entity which origin will be set
orig vector origin to be set
1 Man player = g_Game.GetPlayer();
2 SetOrigin( player, "2550 10 2900" );
3 Print( GetOrigin(player) );
4 
5 >> <2550,10,2900>
proto void SetMatrix ( _entity  ent,
vector  mat[4] 
)

Sets entity matrix.

Parameters
ent _entity entity which origin will be set
mat vector[4] matrix to be set
1 vector mat[4];
2 MatrixIdentity( mat )
3 
4 Man player = g_Game.GetPlayer();
5 SetMatrix( player, mat );
6 
7 vector outmat[4];
8 GetMatrix4( player, outmat );
9 Print( outmat );
10 
11 >> <1,0,0>,<0,1,0>,<0,0,1>,<0,0,0>
proto vector GetVelocity ( _entity  ent )

Returns linear velocity.

Parameters
ent _entity entity which origin will be set
mat vector[4] matrix to be set
Returns
vector linear velocity
1 Man player = g_Game.GetPlayer();
2 Print( GetVelocity(player) );
3 
4 >> <0,0,0>
proto void SetVelocity ( _entity  ent,
vector  vel 
)
proto vector GetMatrix ( _entity  ent,
int  axis 
)

Returns one row of Entity matrix.

Parameters
ent _entity entity which matrix will be returned
axis int matrix axis. Can be 0..3
Returns
vector axis row of Entity matrix
1 Man player = g_Game.GetPlayer();
2 Print( GetMatrix(player, 0) );
3 Print( GetMatrix(player, 1) );
4 Print( GetMatrix(player, 2) );
5 Print( GetMatrix(player, 3) );
6 
7 >> <-0.386781,0,0.922171>
8 >> <0,1,0>
9 >> <-0.922171,0,-0.386782>
10 >> <2551.34,15.6439,2856.72>

Referenced by PhysicsDragTool::HandleDragging().

proto void GetMatrix4 ( _entity  ent,
out vector  mat[] 
)

Returns matrix of Entity. It returns only so much vectors as array is big.

Parameters
ent _entity entity which matrix will be returned
axis int matrix axis. Can be 0..3
1 Man player = g_Game.GetPlayer();
2 
3 vector mat[4];
4 GetMatrix4(player, mat);
5 Print( mat );
6 
7 >> <0.989879,-0,0.141916>,<0,1,0>,<-0.141916,0,0.989879>,<2545.08,15.6754,2867.49>

Referenced by ComponentEntityDebug::Event_OnFrame(), and Trigger::SetExtents().

proto void GetBoundBox ( _entity  ent,
out vector  mins,
out vector  maxs 
)

Returns local bounding box of model on Entity.

Parameters
ent _entity entity which bounding box will be returned
[out] mins vector minimum point of bounding box
[out] maxs vector maximum point of bounding box
1 Man player = g_Game.GetPlayer();
2 
3 vector mins, maxs;
4 GetBoundBox( player, mins, maxs );
5 
6 Print( mins );
7 Print( maxs );
8 
9 >> <0,0,0>
10 >> <0,0,0>
proto void GetCBoundBox ( _entity  ent,
out vector  mins,
out vector  maxs 
)

Returns quantized world-bound-box of Entity.

Parameters
ent _entity entity which bounding box will be returned
[out] mins vector minimum point of bounding box
[out] maxs vector maximum point of bounding box
1 Man player = g_Game.GetPlayer();
2 
3 vector mins, maxs;
4 GetCBoundBox( player, mins, maxs );
5 
6 Print( mins );
7 Print( maxs );
8 
9 >> <2547.2,15.5478,2852.85>
10 >> <2548.8,17.5478,2855.05>
proto void Throw ( _entity  ent,
_entity  actor,
int  e,
void  extra 
)
proto Widget CreateWidget ( WidgetType  type,
int  left,
int  top,
int  width,
int  height,
int  flag,
int  color,
int  sort 
)
proto Widget CreateWidgetEx ( Widget  parent,
WidgetType  type,
int  left,
int  top,
int  width,
int  height,
int  flag,
int  color,
int  sort 
)
proto Widget CreateWidgets ( string  layout,
Widget  parent 
)
proto Widget GetWidgetUnderCursor ( )
proto void ReportMouse ( int  mousex,
int  mousey,
Widget  rootWidget 
)
proto void SetGUIWidget ( _entity  ent,
int  index,
Widget  w 
)
proto void SetCursorWidget ( Widget  cursor )
proto void ShowCursorWidget ( bool  show )
proto bool LoadWidgetImageSet ( string  filename )

Referenced by InitGUI().

proto void LoadWidgetStyles ( string  filename )

Referenced by InitGUI().

proto int LoadWidgetImage ( Widget  w,
int  num,
string  name 
)
proto int UnloadWidgetImage ( Widget  w,
int  num 
)
proto void SetWidgetImage ( Widget  w,
int  num 
)
proto bool ReloadTexture ( string  path )
proto int PlayVideo ( Widget  w,
int  cmd 
)
proto void SetWidgetWorld ( Widget  w,
_entity  wrldEntity,
int  camera 
)
proto bool SetActiveWindow ( Widget  w,
bool  resetFocus 
)
proto void SetFocus ( Widget  w )
proto void SetModal ( Widget  w )
proto Widget GetFocus ( )
class Shape AddDShape ( int  type,
int  color,
int  flags,
vector  p1,
vector  p2 
)
proto private void AddDShape::~Shape ( )

don't call destructor directly. Use Destroy() instead

proto void AddDShape::SetMatrix ( vector  mat[4] )
proto void AddDShape::SetColor ( int  color )
proto void AddDShape::SetFlags ( int  flags )
proto void Destroy ( )
proto Shape AddDLines ( int  color,
int  flags,
vector  p[],
int  num 
)
proto Shape AddDTris ( int  color,
int  flags,
vector  p[],
int  num 
)
proto Shape AddDSphere ( int  color,
int  flags,
vector  origin,
float  radius 
)
proto Shape AddDCylinder ( int  color,
int  flags,
vector  origin,
float  radius,
float  length 
)
Shape AddDArrow ( vector  from,
vector  to,
float  size,
int  color,
int  flags 
)

References AddDLines(), Perpend(), and VectorNormalize().

Referenced by Debug::DrawArrow().

Shape AddDBridgeArrow ( vector  from,
vector  to,
float  size,
int  color,
int  flags 
)
void Matrix2Shape ( vector  mat[4] )

References AddDShape().

proto float GetWorldTime ( )
proto void SetListenerCamera ( int  camera )
proto void SetCamera ( vector  origin,
vector  angle 
)
proto void SetCameraEx ( int  cam,
const vector  mat[4] 
)
proto void GetCamera ( int  cam,
out vector  mat[4] 
)
proto void SetCameraVerticalFOV ( int  cam,
float  fovy 
)
proto void SetCameraFarPlane ( int  cam,
float  farplane 
)
proto void SetCameraNearPlane ( int  cam,
float  nearplane 
)
proto void SetCameraType ( int  cam,
int  type 
)
proto vector ProjectVector ( int  cam,
class ent  ,
vector  vec 
)
proto vector UnprojectVector ( int  cam,
float  x,
float  y,
vector  dir 
)
proto void AddNamedEntity ( _entity  ent,
void  name 
)
proto void RemoveNamedEntity ( _entity  ent,
string  name 
)
proto _entity FindNamedEntity ( _entity  worldEnt,
string  name 
)
proto _entity FindEntityByID ( _entity  worldEnt,
int  ID 
)
proto int SetCurrentMap ( int  mapIndex )
class TraceContact TraceLineToEntity ( _entity  ent,
vector  start,
vector  end,
out TraceContact  contact 
)
proto float TraceLine ( _entity  ent,
vector  start,
vector  end,
out class  cent,
out float  plane[4],
out int  content,
out int  surfparm 
)
proto float TraceLineEx ( vector  start,
vector  end,
vector  mins,
vector  maxs,
out _entity  cent,
out float  plane[4],
out int  content,
out int  surfparm,
int  flags,
func  filtercallback 
)
proto float TraceLineExEx ( vector  start,
vector  end,
vector  mins,
vector  maxs,
out _entity  cent,
out float  plane[4],
out int  content,
out int  surfparm,
int  flags,
func  filtercallback,
int  layerMask 
)
proto int P2PVisibilityEx ( vector  from,
vector  to,
int  flags 
)
proto int SphereQuery ( vector  origin,
float  radius,
out _entity  visents[],
int  ents,
int  fmask 
)
proto bool IsBoxVisible ( vector  mins,
vector  maxs,
int  flags 
)
proto int VisEntities ( vector  origin,
vector  look,
float  angle,
float  radius,
out _entity  ents[2],
int  maxents,
int  fmask 
)
vector ClipLine ( vector  start,
vector  end,
vector  norm,
float  d 
)
proto float IntersectRaySphere ( vector  raybase,
vector  raycos,
vector  center,
float  radius 
)
proto float IntersectRayBox ( vector  start,
vector  end,
vector  mins,
vector  maxs 
)
proto vobject GetObject ( string  name )
proto void ReleaseObject ( vobject  object,
int  flag 
)
proto void SelectObject ( _entity  ent,
vobject  object 
)
proto int GetObjectMaterials ( vobject  object,
string  materials[] 
)
proto void CreateModel ( _entity  ent,
vector  mins,
vector  maxs 
)
proto void RemoveModel ( _entity  ent )
proto vobject CreateXOB ( int  nsurfaces,
int  nverts[],
int  numindices[],
string  shaders[] 
)
proto void UpdateVertsEx ( _entity  ent,
int  surf,
vector  verts[],
float  uv[] 
)
proto void UpdateIndices ( vobject  obj,
int  surf,
int  indices[] 
)
proto int BumpFrame ( _entity  ent,
float  speed,
int  loop 
)
proto int BumpFrameEx ( _entity  ent,
float  speed,
int  loop,
vector  lin,
vector  ang 
)
proto void SetBone ( _entity  ent,
int  bone,
vector  angles,
vector  trans,
float  scale 
)
proto bool SetBoneMatrix ( _entity  ent,
int  bone,
vector  mat[4] 
)
proto void SetBoneGlobal ( _entity  ent,
int  bone,
vector  mat[4] 
)
proto bool GetBoneMatrix ( _entity  ent,
int  bone,
vector  mat[4] 
)
proto bool GetBoneLocalMatrix ( _entity  ent,
int  bone,
vector  mat[4] 
)
proto void SetFrame ( _entity  ent,
int  slot,
float  frame 
)
class BoneMask SetAnimSlot ( _entity  ent,
int  slot,
vobject  anim,
float  blendin,
float  blendout,
BoneMask  mask,
int  fps,
int  flags 
)
proto void ChangeAnimSlotMask ( _entity  ent,
int  slot,
float  blendin,
BoneMask  mask 
)
proto void ChangeAnimSlotFPS ( _entity  ent,
int  slot,
int  fps 
)
proto void SetAnimMask ( _entity  ent,
int  mask 
)
proto int ClearAnimMask ( _entity  ent,
int  mask 
)
proto int IsAnimSlotPlaying ( _entity  ent,
int  mask 
)
proto bool SetMorphState ( _entity  ent,
string  morph,
float  value 
)
proto int GetNumAnimFrames ( vobject  anim )
proto string vtoa ( vobject  vobj )
proto int GetParticleCount ( _entity  ent )
proto int GetParticleEmitors ( _entity  ent,
out string  emitors[],
int  max 
)
proto void SetParticleParm ( _entity  ent,
int  emitor,
int  parameter,
void  value 
)
proto void GetParticleParm ( _entity  ent,
int  emitor,
int  parameter,
out void  value 
)
proto void GetParticleParmOriginal ( _entity  ent,
int  emitor,
int  parameter,
out void  value 
)
proto void ResetParticlePosition ( _entity  ent )
proto int dGetNumDynamicBodies ( _entity  worldEnt )

Referenced by SetAtmosphericDrag().

proto _entity dGetDynamicBody ( _entity  worldEnt,
int  index 
)

Referenced by SetAtmosphericDrag().

proto void dSetInteractionLayer ( _entity  worldEntity,
int  mask1,
int  mask2,
bool  enable 
)
proto void dSetGravity ( _entity  worldEntity,
vector  g 
)
proto bool dBodyIsSet ( _entity  ent )
proto void dBodyInteractionLayer ( _entity  ent,
int  mask 
)
proto int dBodyGetInteractionLayer ( _entity  ent )
proto void dBodyActive ( _entity  ent,
bool  activeState 
)
proto void dBodyDynamic ( _entity  ent,
bool  dynamic 
)
proto bool dBodyIsDynamic ( _entity  ent )
proto bool dBodyIsActive ( _entity  ent )
proto bool dBodyEnableGravity ( _entity  ent,
bool  enable 
)
proto void dBodySetDamping ( _entity  ent,
float  linearDamping,
float  angularDamping 
)

Referenced by SetAtmosphericDrag().

proto void dBodySetSleepingTreshold ( class body  ,
float  linearTreshold,
float  angularTreshold 
)
proto void dBodySetLinearFactor ( class body  ,
vector  linearFactor 
)
proto vector dBodyGetCenterOfMass ( class body  )
void SetAtmosphericDrag ( _entity  worldEnt,
float  atmDrg 
)
proto bool dBodyCreateStatic ( _entity  ent,
int  layerMask 
)
proto bool dBodyCreateDynamic ( _entity  ent,
vector  center,
int  layerMask 
)
proto bool dBodyCreateVehicle ( _entity  ent,
vector  center,
float  mass,
int  layerMask 
)
proto void dVehicleAddWheel ( _entity  ent,
vector  offset,
vector  suspensionDir,
vector  axleDir,
float  wheelRadius,
VehicleWheelParams  params,
string  wheelMat 
)
proto void dVehicleApplyEngineForce ( _entity  ent,
int  wheel,
float  force 
)
proto void dVehicleSetBrake ( _entity  ent,
int  wheel,
float  brake 
)
proto void dVehicleSetSteering ( _entity  ent,
int  wheel,
float  steering 
)
proto float dVehicleGetSteering ( _entity  ent,
int  wheel 
)
proto float dVehicleGetWheelAngle ( _entity  ent,
int  wheel 
)
proto float dVehicleGetWheelAngularVelocity ( _entity  ent,
int  wheel 
)
proto float dVehicleGetWheelSuspensionLength ( _entity  ent,
int  wheel 
)
proto vector dVehicleGetWheelEndPosition ( _entity  ent,
int  wheel 
)
proto _entity dVehicleHasWheelContact ( _entity  ent,
int  wheel 
)
proto bool dVehicleGetWheelContact ( int  wheel,
WheelContactInfo  info 
)
proto dJoint dJointCreateHinge ( _entity  ent1,
_entity  ent2,
vector  point1,
vector  axis1,
vector  point2,
vector  axis2,
bool  block,
float  breakThreshold 
)
proto dJoint dJointCreateHinge2 ( _entity  ent1,
_entity  ent2,
vector  matrix1[4],
vector  matrix2[4],
bool  block,
float  breakThreshold 
)
proto dJoint dJointCreateSlider ( _entity  ent1,
_entity  ent2,
vector  matrix1[4],
vector  matrix2[4],
bool  block,
float  breakThreshold 
)
proto dJoint dJointCreateBallSocket ( _entity  ent1,
_entity  ent2,
vector  point1,
vector  point2,
bool  block,
float  breakThreshold 
)
proto dJoint dJointCreateFixed ( _entity  ent1,
_entity  ent2,
vector  point1,
vector  point2,
bool  block,
float  breakThreshold 
)
proto dJoint dJointCreateConeTwist ( _entity  ent1,
_entity  ent2,
vector  matrix1[4],
vector  matrix2[4],
bool  block,
float  breakThreshold 
)
proto dJoint dJointCreate6DOF ( _entity  ent1,
_entity  ent2,
vector  matrix1[4],
vector  matrix2[4],
bool  block,
float  breakThreshold 
)
proto dJoint dJointCreate6DOFSpring ( _entity  ent1,
_entity  ent2,
vector  matrix1[4],
vector  matrix2[4],
bool  block,
float  breakThreshold 
)
proto void dJointDestroy ( dJoint  joint )
proto void dJointHingeSetLimits ( dJoint  joint,
float  low,
float  high,
float  softness,
float  biasFactor,
float  relaxationFactor 
)
proto void dJointHingeSetAxis ( dJoint  joint,
vector  axis 
)
proto void dJointHingeSetMotorTargetAngle ( dJoint  joint,
float  angle,
float  dt,
float  maxImpulse 
)
proto void dJointConeTwistSetAngularOnly ( dJoint  joint,
bool  angularOnly 
)
proto void dJointConeTwistSetLimit ( dJoint  joint,
int  limitIndex,
float  limitValue 
)
proto void dJointConeTwistSetLimits ( dJoint  joint,
float  _swingSpan1,
float  _swingSpan2,
float  _twistSpan,
float  _softness,
float  _biasFactor,
float  _relaxationFactor 
)
proto void dJoint6DOFSetLinearLimits ( dJoint  joint,
vector  linearLower,
vector  linearUpper 
)
  • free means upper < lower,
  • locked means upper == lower
  • limited means upper > lower
  • axis: first 3 are linear, next 3 are angular
proto void dJoint6DOFSetAngularLimits ( dJoint  joint,
vector  angularLower,
vector  angularUpper 
)
proto void dJoint6DOFSetLimit ( dJoint  joint,
int  axis,
float  lo,
float  hi 
)
proto void dJoint6DOFSpringSetSpring ( dJoint  joint,
int  axis,
float  stiffness,
float  damping 
)
proto void dJointSliderSetLinearLimits ( dJoint  joint,
float  lowerLimit,
float  upperLimit 
)
proto void dJointSliderSetAngularLimits ( dJoint  joint,
float  lowerLimit,
float  upperLimit 
)
proto void dJointSliderSetDirLinear ( dJoint  joint,
float  softness,
float  restitution,
float  damping 
)
proto void dJointSliderSetDirAngular ( dJoint  joint,
float  softness,
float  restitution,
float  damping 
)
proto void dJointSliderSetLimLinear ( dJoint  joint,
float  softness,
float  restitution,
float  damping 
)
proto void dJointSliderSetLimAngular ( dJoint  joint,
float  softness,
float  restitution,
float  damping 
)
proto void dJointSliderSetOrthoLinear ( dJoint  joint,
float  softness,
float  restitution,
float  damping 
)
proto void dJointSliderSetOrthoAngular ( dJoint  joint,
float  softness,
float  restitution,
float  damping 
)
proto void dJointSliderSetLinearMotor ( dJoint  joint,
float  velocity,
float  force 
)
proto void dJointSliderSetAngularMotor ( dJoint  joint,
float  velocity,
float  force 
)
proto float dJointSliderGetLinearPos ( dJoint  joint )
proto float dJointSliderGetAngularPos ( dJoint  joint )
proto void dBodyDestroy ( _entity  ent )
proto dBlock dBodyCollisionBlock ( _entity  ent1,
_entity  ent2 
)
proto void dBodyRemoveBlock ( _entity  worldEntity,
dBlock  block 
)
proto void dBodySetInertiaTensorV ( _entity  body,
vector  v 
)
proto void dBodySetInertiaTensorM ( _entity  body,
vector  m[3] 
)
proto float dBodyGetMass ( _entity  ent )
proto void dBodySetMass ( _entity  body,
float  mass 
)
proto void dBodyApplyImpulseAt ( _entity  body,
vector  impulse,
vector  pos 
)
proto void dBodyApplyImpulse ( _entity  body,
vector  impulse 
)
proto void dBodyApplyForce ( _entity  body,
vector  force 
)
proto void dBodyApplyForceAt ( _entity  body,
vector  pos,
vector  force 
)
proto void dBodyApplyTorque ( _entity  body,
vector  torque 
)
proto vector dBodyGetAngularVelocity ( _entity  body )
proto void dBodySetAngularVelocity ( _entity  body,
vector  angvel 
)
proto void dBodySetTargetMatrix ( _entity  body,
vector  matrix[4],
float  timeslice 
)
proto float dBodyGetKineticEnergy ( _entity  body )
proto vector dBodyGetVelocityAt ( _entity  body,
vector  globalpos 
)
class Contact WriteBool ( bool  value )
proto vector WriteBool::GetNormalImpulse ( )
proto float WriteBool::GetRelativeVelocityBefore ( vector  vel )
proto float WriteBool::GetRelativeVelocityAfter ( vector  vel )
proto void WriteInt ( int  value )
proto void WriteFloat ( float  value )
proto void WriteString ( string  value )
proto void WriteVector ( vector  value )
proto void WriteMatrixAsQuaternionVector ( vector  mat[4] )
proto void WriteIntAsByte ( int  value )
proto void WriteIntAsUByte ( int  value )
proto void WriteIntAsHalf ( int  value )
proto void WriteIntAsUHalf ( int  value )
proto void WriteFloatAsByte ( float  value,
float  min,
float  max 
)
proto void WriteFloatAsHalf ( float  value,
float  min,
float  max 
)
proto bool File::ReadBool ( )
proto int File::ReadInt ( )
proto float File::ReadFloat ( )
proto string File::ReadString ( )
proto vector File::ReadVector ( )
proto void File::ReadMatrixAsQuaternionVector ( vector  mat[4] )
proto int File::ReadIntAsByte ( )
proto int File::ReadIntAsUByte ( )
proto int File::ReadIntAsHalf ( )
proto int File::ReadIntAsUHalf ( )
proto float File::ReadFloatAsByte ( float  min,
float  max 
)
proto float File::ReadFloatAsHalf ( float  min,
float  max 
)
proto int LoadSkyPresets ( string  presetsFile )

load all sky presets from xml file

Parameters
presetFile name of XML file with presets
proto int InitSky ( string  presetName )

initialize sky with preset, must be called to set the global planets setting

Parameters
presetName name of preset to be set (one of presets from file loaded using LoadSkyPresets)
proto int SetSkyPreset ( string  presetName,
float  stormy,
float  dayTime 
)

set sky preset to day time and stormy parameter

Parameters
presetName name of preset to be set (one of presets from file loaded using LoadSkyPresets)
stormy stormy parameter <0, 1>
dayTime day of time <0, 1>
proto int LerpSkyPreset ( string  presetName1,
string  presetName2,
float  dayTime,
float  stormy1,
float  stormy2,
float  lerpVal 
)

lerp two sky presets and set the result using day time

Parameters
presetName1 name of preset1 to be set (one of presets from file loaded using LoadSkyPresets)
presetName2 name of preset2 to be set (one of presets from file loaded using LoadSkyPresets)
dayTime day of time <0, 1>
stormy1 stormy parameter for preset1 <0, 1>
stormy2 stormy parameter for preset2 <0, 1>
lerpVal lerp value between two presets
proto int LerpSkyPreset3 ( string  presetName1,
string  presetName2,
string  presetName3,
float  dayTime,
float  stormy1,
float  stormy2,
float  stormy3,
float  w1,
float  w2,
float  w3 
)

lerp three sky presets using barycentric coordinates and set the result using day time

Parameters
presetName1 name of preset1 to be set (one of presets from file loaded using LoadSkyPresets)
presetName2 name of preset2 to be set (one of presets from file loaded using LoadSkyPresets)
presetName2 name of preset3 to be set (one of presets from file loaded using LoadSkyPresets)
dayTime day of time <0, 1>
stormy1 stormy parameter for preset1 <0, 1>
stormy2 stormy parameter for preset2 <0, 1>
stormy3 stormy parameter for preset3 <0, 1>
w1 weight for preset1
w2 weight for preset2
w3 weight for preset3
proto void SetSkyUserPlanets ( bool  enabled )

user can set planets to its own positions on skydome using SetSkyPresetPlanet function, if disabled, the planets are positioned automatically using sky preset setting

Parameters
enabled enable/disable
proto bool SetSkyPlanet ( int  index,
float  azimuthDeg,
float  zenithDeg 
)

set planet position

Parameters
index index of planet, 0 = sun usually
azimuthDeg azimuth position in degrees
zenithDeg zenith position in degrees
proto bool SetSkyPlanetSize ( int  index,
float  angleDeg 
)

set planet size in degrees

Parameters
index index of planet, 0 = sun usually
angleDeg angle size in degrees
proto void SetStarsObserverTime ( int  year,
int  month,
int  day,
int  hour,
int  minute,
float  sec,
int  offsetSec 
)

set UTC time for real time stars

Parameters
year
month
day
hour
minute
sec
offsetSec to take into account time difference between Greenwich and local time (position dependency, summer/winter time)
proto void SetStarsObserverPosition ( float  latitudeDeg,
float  longitudeDeg 
)

set observer position

Parameters
latitudeDeg latitude in degrees
longitudeDeg longitude in degrees
proto void SetRealStarAutoUpdate ( bool  update )

update of stars

Parameters
update true = automatic stars update, false = update is on user by SetStarsRotMatrix
proto void SetNightLayerRotMatrix ( vector  mat[3] )

night sky layer rotation matrix

Parameters
mat rotation matrix
proto void SetStarsRotMatrix ( vector  mat[3] )

stars rotation matrix, is different from night rotation matrix because we don't know the time when night layers was captured

Parameters
mat rotation matrix
proto bool SetMaterialParam ( Material  material,
string  propertyName,
void  value 
)
proto void ResetMaterialParam ( Material  material,
string  propertyName 
)
proto hDecal CreateDecal ( _entity  entity,
vector  origin,
vector  project,
float  nearclip,
float  angle,
float  size,
string  materialName,
float  lifetime,
int  flags 
)

Creates single visual mark, e.g. from shots when lifetime=0, pointer to decal is returned, that can be removed by RemoveDecal then

Parameters
entity entity where the landmark should be created
origin first point of the decal, nothing is done now
project projection direction (length is far clipping distance)
nearclip near clipping distance
materialName Material used for decal
lifetime Lifetime in seconds
flags Not used ATM
Returns
Decal pointer or null
proto void RemoveDecal ( hDecal  decal )
proto hDecal CreateLandMarkDecal ( _entity  entity,
vector  origin,
vector  normal,
float  edgeSize,
float  lifeTime,
string  materialName,
hDecal  prevDecal,
float  alpha 
)

Creates continous visual mark, e.g. from wheel when a car is moving on the ground

Parameters
entity entity where the landmark should be created (only terrain is supported ATM)
origin first point of the decal, nothing is done now
normal normal of surface
edgesize Edge size of decal
lifetime Lifetime in seconds
materialName Material used for decal
prev Previous decal, we are connecting to
alpha translucency of point
Returns
Decal pointer or null
proto int CanAddToLandMarkDecal ( hDecal  lmDecal,
_entity  entity,
string  mat,
vector  newPoint 
)

is it possible to add new point to landmark decal?

Parameters
lmDecal entity to add new landmark point
entity entity to add new landmark point
mat material of decal
newpoint new point to add
Returns
LMD_ERROR = error when adding new point (invalid decal) LMD_VALID = can add new point LMD_DIFF_ENT = new point is on different entity LMD_TOO_FAR = new point is too far from previous point
proto 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

Parameters
lmDecal entity to add new landmark point
point contact point
normal normal of contact
alpha translucency in point
Returns
true if everything was OK, false if not. In this case, the application MUST not used later the pointer to decal, it's finalized internally !
proto void FinalizeLandMarkDecal ( hDecal  lmDecal,
bool  addAlpha,
float  alphaDist 
)

finalize landmark adding, e.g. when entity lose contact with ground -> the pointer to decal should have only world and entity if it has something to render, otherwise it's destroyed here

Parameters
lmDecal entity to add new landmark point
addAlpha if to add last point with transition to zero alpha
alphaDist distance to add last point
proto bool IsLandMarkFinalized ( hDecal  lmDecal )

return if landmark was finalized

Parameters
lmDecal decal to test
proto vector GetLastLandMarkPoint ( hDecal  lmDecal )

return last landmark point or -65535.0 in all components

Parameters
lmDecal decal to test
proto void SetGlobalLandMarkParams ( float  minSegmentLength,
float  maxSegmentLength,
float  degAngle 
)

set global parameters for landmark generation

Parameters
minSegmentLength minimum length segment, when new point is added (4 default), when is less, just the end position is on the fly updated
maxSegmentLength maximum segment length, when length is bigger, the path is finished
degAngle angle in degrees, when is more, the path is finished
proto int TickCount ( int  prev )
proto int KeyState ( int  key )
proto void ClearKey ( int  key )
proto int MouseState ( int  index )
proto void GetMousePos ( out int  x,
out int  y 
)
proto void GetScreenSize ( out int  x,
out int  y 
)
proto void Print ( void  var )

Referenced by ModuleMessageManager::BroadcastString(), ItemBase::CalculateNutritions(), ActionBase::Cancel(), FoodManager::ChangeFoodStage(), BagMountain_Blue::ConditionCargoIn(), CGame::CreateActivity(), CreateGame(), CrossTest(), ActionBase::Do(), InventoryManager::Drag(), ZombieEngine::EEKilled(), EN5C_BoxCerealCrunchin::EN5C_BoxCerealCrunchin(), EN5C_FishingRod_Base::End(), SurvivorPartsFemaleWhite::EOnInit(), ActionBase::GetAnimation(), GetDispatcher(), BaseBuildingBase::GetNearbyStructuresWithAWire(), SurvivorPartsFemaleWhite::Hello(), ActionCoverHeadSelf::IsWearingHeadgear(), ActionCoverHeadTarget::IsWearingHeadgear(), Land_A_MunicipalOffice::Land_A_MunicipalOffice(), DebugPrint::LogMessage(), MapTemplateBenchmark(), ActionBase::OnCancel(), ScriptConsole::OnClick(), ActionShave::OnComplete(), ActionMineBush::OnComplete(), ActionMineTree::OnComplete(), ActionMineRock::OnComplete(), Trigger::OnEnter(), ItemTrigger::OnEnter(), InventoryContainer::OnItemDoubleClick(), Trigger::OnLeave(), InspectMenu::OnMouseButtonDown(), ActionBase::OnReset(), ActionBase::OnStart(), ActionBase::OnTick(), PrintString(), DayZGame::ReloadMission(), ModuleRepairing::Repair(), ActionBase::Reset(), Tabber::SelectTab(), ModuleSkinning::SkinComplete(), PlayerBase::SpawnItem(), SQFPrint(), EN5C_FireplaceBase::StartCooling(), EN5C_FireplaceBase::StartFire(), EN5C_FireplaceBase::StartHeating(), EN5C_FireplaceBase::StopCooling(), EN5C_FireplaceBase::StopFire(), EN5C_FireplaceBase::StopHeating(), SurvivorPartsFemaleWhite::SurvivorPartsFemaleWhite(), Ahojky::Testik(), Man::TestSQF(), EntityDebugSync::Update(), Cooking::UpdateCookingState(), ItemTrigger::ZombieDie(), ZombieEngine::ZombieEngine(), and DayZGame::~DayZGame().

proto void DumpStack ( )

Prints current call stack (stack trace)

Returns
void
1 DumpStack();
   Output:
      -- Stack trace --
      SaveFile() Scripts\Entities\Modules\ModuleBase\ModuleFileHandler.c : 51
      SaveConfigToFile() Scripts\Entities\Modules\ModuleBase\ModuleFileHandler\ModuleLocalProfile.c : 114
      SaveParameterArray() Scripts\Entities\Modules\ModuleBase\ModuleFileHandler\ModuleLocalProfile.c : 133
      SetParameterArray() Scripts\Entities\Modules\ModuleBase\ModuleFileHandler\ModuleLocalProfile.c : 231
      PresetAdd() Scripts\Entities\Modules\ModuleBase\ModuleFileHandler\ModuleLocalProfile\ModuleLocalProfileUI.h : 46
      OnKeyPress() Scripts/mission/missionGameplay.c : 215
      OnKeyPress() Scripts/DayZGame.c : 334
      -----------------

Referenced by DebugPrint::LogMessage().

proto void DPrint ( string  var )
proto int GetDefKey ( string  name )
proto int DefKeyState ( int  defkey,
bool  clear 
)
string String ( string  s )
proto string ToString ( void  var,
bool  type = false,
bool  name = false 
)

Return string representation of variable.

Referenced by DisplayStatus::AddElement(), PlayerBase::CalculateAgentsToTransmit(), RecipeBase::CheckIngredientMatch(), MissionBase::CheckNotification(), ModuleRecipes::CheckRecipe(), RecipeBase::CheckRecipe(), array< class T >::Debug(), RecipeBase::Do(), EN5C_BoxCerealCrunchin::EN5C_BoxCerealCrunchin(), PlayerBase::GetAgentsFromSource(), ModuleRecipes::GetValidRecipeID(), AgentBase::ImmuneAttack(), PlayerBase::InsertAgent(), ItemBase::InsertAgent(), ItemBase::LoadVariables(), ItemBase::OnAction(), ScriptConsole::OnClick(), ActionMeasureTemperatureSelf::OnComplete(), ActionMeasureTemperatureTarget::OnComplete(), InventoryManager::OnPerformCombination(), ModuleRecipes::OnRPC(), ActionOnSelfContinuousTime::OnTick(), ImmuneSystem::OnTick(), ActionOnTargetContinuousTime::OnTick(), ActionOnTargetContinuousQuantity::OnTick(), Influenza::OnTick(), ActionFillBottleBase::OnTick(), ActionOnSelfContinuousQuantity::OnTick(), ActionOnTargetContinuousMine::OnTick(), AgentBase::OnTick(), ItemBase::PrintAgents(), DisplayStatus::PrintElements(), DisplayStatus::PrintMasks(), ItemBase::PrintVariables(), ModuleRecipes::ReceivedRecipe(), ItemBase::SaveVariables(), DisplayStatus::SetBlinking(), ModuleLocalProfile::SetParameterBool(), ModuleLocalProfile::SetParameterFloat(), ModuleLocalProfile::SetParameterInt(), InventoryManager::ShowActionMenuCombine(), RecipeBase::SpawnItems(), RecipeBase::SpawnResult(), PlayerBase::TransmitAgents(), and ModuleRecipes::TransmitRecipe().

void PrintString ( string  s )
proto void DiagRegisterMenu ( int  id,
string  name,
string  parent 
)
proto void DiagUnregister ( int  id )
proto void DiagRegister ( int  id,
string  shortcut,
string  name,
string  parent,
string  values 
)
proto void DiagRegisterBool ( int  id,
string  shortcut,
string  name,
string  parent,
bool  reverse = false 
)
proto bool DiagBool ( int  id,
bool  reverse = false 
)
proto int DiagGetValue ( int  id )
proto void DiagSetValue ( int  id,
int  value 
)
proto void Error2 ( string  title,
string  err 
)

Referenced by Error().

proto void reversearray ( void  param_array )
proto void copyarray ( void  destArray,
void  srcArray 
)
class OcclusionQuery GetAddons ( string  addonNames[] )
proto private void GetAddons::~OcclusionQuery ( )
proto int GetAddons::GetResult ( )
proto void GetAddons::SetPosition ( vector  pos )
proto int GetPlugins ( string  pluginNames[] )
void Error ( string  err )
float CorrectAngle ( float  yaw,
float  a,
float  speed 
)

References fabs(), and FixAngle().

int VectortoRGBA ( vector  vec,
float  h 
)
int ARGB ( int  a,
int  r,
int  g,
int  b 
)
int ARGBF ( float  fa,
float  fr,
float  fg,
float  fb 
)

Converts <0.0, 1.0> ARGB into color.

References ARGB().

Referenced by ChatLine::Set(), PlayerBase::SQF_PlayerNotifierAdd(), and HoverEffect::Update().

int AWHITE ( int  a )
int LerpARGB ( int  c1,
int  c2 
)
void strsplit ( string  param,
string  sample,
TStringArray  output 
)

Variable Documentation

const vector UpVec = "0 1 0"

Referenced by Perpend().

const vector ZeroVec = "0 0 0"

Referenced by MatrixIdentity().

const float M_PI = 3.14159265358979
const float M_PI2 = 6.28318530717958

Referenced by AnimatorTimer::Tick().

const float M_PI_HALF = 1.570796326794
const float RAD2DEG = 57.2957795130823208768
const float DEG2RAD = 0.01745329251994329577
float Fraction
int Content
int Surfparm
int ShaderFlags
int Triangle
int SurfaceID
string Shader
string OriginalMaterial
float Plane[4]
vector Point
class VehicleWheelParams SetAnimSlot
dMaterial Material1
dMaterial Material2
int MaterialIndex1
int MaterialIndex2
float Impulse
float RelativeNormalVelocityBefore
float RelativeNormalVelocityAfter
vector Normal vector Position vector RelativeVelocityBefore
vector RelativeVelocityAfter
class PhysicsDragTool GetAddons[]
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)