Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
dayzanimal.c File Reference

Go to the source code of this file.

Data Structures

class  DayZCreatureAnimInterface
 
class  DayZCreature
 
class  AnimCommandBase
 base class of all commands exposed to script to provide common functionality over animations More...
 
class  DayZCreatureAI
 do not process rotations ! More...
 

Functions

class DayZCreatureAnimInterface RegisterAnimationEvent (string event_name, string function_name)
 
private void DayZCreatureAnimInterface ()
 
private void ~DayZCreatureAnimInterface ()
 
proto native TAnimGraphCommand BindCommand (string pCommandName)
 returns command index -
More...
 
proto native TAnimGraphVariable BindVariableFloat (string pVariable)
 
proto native TAnimGraphVariable BindVariableInt (string pVariable)
 
proto native TAnimGraphVariable BindVariableBool (string pVariable)
 
proto native TAnimGraphTag BindTag (string pTagName)
 
proto native TAnimGraphEvent BindEvent (string pEventName)
 
proto native void SetAnimationInstanceByName (string animation_instance_name, int instance_uuid, float duration)
 
proto native int GetCurrentAnimationInstanceUUID ()
 
proto native DayZCreatureAnimInterface GetAnimInterface ()
 
proto native void UpdateSimulationPrecision (int simLOD)
 
proto native void StartDeath ()
 
proto native void ResetDeath ()
 
proto native void ResetDeathCooldown ()
 
proto native bool IsDeathProcessed ()
 
proto native bool IsDeathConditionMet ()
 
proto native int GetBoneIndexByName (string pBoneName)
 returns bone index for a name (-1 if pBoneName doesn't exist) More...
 
override bool IsDayZCreature ()
 
override bool CanBeSkinned ()
 
override bool IsIgnoredByConstruction ()
 
override bool IsManagingArrows ()
 
override void AddArrow (Object arrow, int componentIndex, vector closeBonePosWS, vector closeBoneRotWS)
 
override bool HasFixedActionTargetCursorPosition ()
 
bool ModCommandHandlerBefore (float pDt, int pCurrentCommandID, bool pCurrentCommandFinished)
 
bool ModCommandHandlerInside (float pDt, int pCurrentCommandID, bool pCurrentCommandFinished)
 
bool ModCommandHandlerAfter (float pDt, int pCurrentCommandID, bool pCurrentCommandFinished)
 
class DayZAnimalCommandMove extends AnimCommandBase SetFlagFinished (bool pFinished)
 DayZAnimalCommandScript fully scriptable command. More...
 
proto native bool PrePhys_GetTranslation (out vector pOutTransl)
 script function usable in PrePhysUpdate More...
 
proto native bool PrePhys_GetRotation (out float pOutRot[4])
 
proto native void PrePhys_SetTranslation (vector pInTransl)
 
proto native void PrePhys_SetRotation (float pInRot[4])
 
bool PostPhysUpdate (float pDt)
 
proto native void PostPhys_GetPosition (out vector pOutTransl)
 script function usable in PostPhysUpdate More...
 
proto native void PostPhys_GetRotation (out float pOutRot[4])
 vec3 in world space More...
 
proto native void PostPhys_SetPosition (vector pInTransl)
 quaternion in world space More...
 
proto native void PostPhys_SetRotation (float pInRot[4])
 vec3 in world space More...
 
proto native void PostPhys_LockRotation ()
 quaternion in world space More...
 

Variables

class DayZCreatureAI extends DayZCreature COMMANDID_MOVE
 
class DayZCreatureAI extends DayZCreature COMMANDID_JUMP
 
class DayZCreatureAI extends DayZCreature COMMANDID_DEATH
 
class DayZCreatureAI extends DayZCreature COMMANDID_HIT
 
class DayZCreatureAI extends DayZCreature COMMANDID_ATTACK
 
class DayZCreatureAI extends DayZCreature COMMANDID_SCRIPT
 

Function Documentation

◆ AddArrow()

override void AddArrow ( Object  arrow,
int  componentIndex,
vector  closeBonePosWS,
vector  closeBoneRotWS 
)

Definition at line 75 of file dayzanimal.c.

◆ BindCommand()

proto native TAnimGraphCommand RegisterAnimationEvent::BindCommand ( string  pCommandName)

returns command index -

◆ BindEvent()

proto native TAnimGraphEvent RegisterAnimationEvent::BindEvent ( string  pEventName)

◆ BindTag()

proto native TAnimGraphTag RegisterAnimationEvent::BindTag ( string  pTagName)

◆ BindVariableBool()

proto native TAnimGraphVariable RegisterAnimationEvent::BindVariableBool ( string  pVariable)

◆ BindVariableFloat()

proto native TAnimGraphVariable RegisterAnimationEvent::BindVariableFloat ( string  pVariable)

◆ BindVariableInt()

proto native TAnimGraphVariable RegisterAnimationEvent::BindVariableInt ( string  pVariable)

◆ CanBeSkinned()

override bool CanBeSkinned ( )

Definition at line 60 of file dayzanimal.c.

◆ DayZCreatureAnimInterface()

private void RegisterAnimationEvent::DayZCreatureAnimInterface ( )

Definition at line 2 of file dayzanimal.c.

◆ GetAnimInterface()

proto native DayZCreatureAnimInterface GetAnimInterface ( )

◆ GetBoneIndexByName()

proto native int GetBoneIndexByName ( string  pBoneName)

returns bone index for a name (-1 if pBoneName doesn't exist)

◆ GetCurrentAnimationInstanceUUID()

proto native int GetCurrentAnimationInstanceUUID ( )

◆ HasFixedActionTargetCursorPosition()

override bool HasFixedActionTargetCursorPosition ( )

Definition at line 115 of file dayzanimal.c.

◆ IsDayZCreature()

override bool IsDayZCreature ( )

Definition at line 55 of file dayzanimal.c.

◆ IsDeathConditionMet()

proto native bool IsDeathConditionMet ( )

◆ IsDeathProcessed()

proto native bool IsDeathProcessed ( )

◆ IsIgnoredByConstruction()

override bool IsIgnoredByConstruction ( )

Definition at line 65 of file dayzanimal.c.

◆ IsManagingArrows()

override bool IsManagingArrows ( )

Definition at line 70 of file dayzanimal.c.

◆ ModCommandHandlerAfter()

bool ModCommandHandlerAfter ( float  pDt,
int  pCurrentCommandID,
bool  pCurrentCommandFinished 
)

Definition at line 136 of file dayzanimal.c.

◆ ModCommandHandlerBefore()

bool ModCommandHandlerBefore ( float  pDt,
int  pCurrentCommandID,
bool  pCurrentCommandFinished 
)

ModOverrides

Definition at line 126 of file dayzanimal.c.

◆ ModCommandHandlerInside()

bool ModCommandHandlerInside ( float  pDt,
int  pCurrentCommandID,
bool  pCurrentCommandFinished 
)

Definition at line 131 of file dayzanimal.c.

◆ PostPhys_GetPosition()

proto native void PostPhys_GetPosition ( out vector  pOutTransl)

script function usable in PostPhysUpdate

◆ PostPhys_GetRotation()

proto native void PostPhys_GetRotation ( out float  pOutRot[4])

vec3 in world space

◆ PostPhys_LockRotation()

proto native void PostPhys_LockRotation ( )

quaternion in world space

◆ PostPhys_SetPosition()

proto native void PostPhys_SetPosition ( vector  pInTransl)

quaternion in world space

◆ PostPhys_SetRotation()

proto native void PostPhys_SetRotation ( float  pInRot[4])

vec3 in world space

◆ PostPhysUpdate()

bool PostPhysUpdate ( float  pDt)

override this ! final adjustment of physics state (after physics was applied) returns true if command continues running / false if command should end (or you can use SetFlagFinished(true))

◆ PrePhys_GetRotation()

proto native bool PrePhys_GetRotation ( out float  pOutRot[4])

◆ PrePhys_GetTranslation()

proto native bool PrePhys_GetTranslation ( out vector  pOutTransl)

script function usable in PrePhysUpdate

◆ PrePhys_SetRotation()

proto native void PrePhys_SetRotation ( float  pInRot[4])

◆ PrePhys_SetTranslation()

proto native void PrePhys_SetTranslation ( vector  pInTransl)

◆ RegisterAnimationEvent()

class DayZCreatureAnimInterface RegisterAnimationEvent ( string  event_name,
string  function_name 
)

◆ ResetDeath()

proto native void ResetDeath ( )

◆ ResetDeathCooldown()

proto native void ResetDeathCooldown ( )

◆ SetAnimationInstanceByName()

proto native void SetAnimationInstanceByName ( string  animation_instance_name,
int  instance_uuid,
float  duration 
)

◆ SetFlagFinished()

class DayZAnimalCommandMove extends AnimCommandBase SetFlagFinished ( bool  pFinished)

DayZAnimalCommandScript fully scriptable command.

Warning
NON-MANAGED, will be managed by C++ once it is sent to the CommandHandler through DayZAnimal.StartCommand_Script
Note
So ideally, it is best to set up the DayZAnimalCommandScript, not create any instances and start it through DayZAnimal.StartCommand_ScriptInst In case an instance needs to be created, it needs manual deletion if not sent to the CommandHandler But deleting it while it is in the CommandHandler will cause crashes constructor must have 1st parameter to be DayZAnimal this terminates command script and shows CommandHandler( ... pCurrentCommandFinished == true );

◆ StartDeath()

proto native void StartDeath ( )

◆ UpdateSimulationPrecision()

proto native void UpdateSimulationPrecision ( int  simLOD)

◆ ~DayZCreatureAnimInterface()

private void RegisterAnimationEvent::~DayZCreatureAnimInterface ( )

Definition at line 3 of file dayzanimal.c.

Variable Documentation

◆ COMMANDID_ATTACK

class DayZCreatureAI extends DayZCreature COMMANDID_ATTACK

◆ COMMANDID_DEATH

class DayZCreatureAI extends DayZCreature COMMANDID_DEATH

◆ COMMANDID_HIT

class DayZCreatureAI extends DayZCreature COMMANDID_HIT

◆ COMMANDID_JUMP

class DayZCreatureAI extends DayZCreature COMMANDID_JUMP

◆ COMMANDID_MOVE

class DayZCreatureAI extends DayZCreature COMMANDID_MOVE

◆ COMMANDID_SCRIPT

class DayZCreatureAI extends DayZCreature COMMANDID_SCRIPT