Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
animPhysCommand.c
Go to the documentation of this file.
2{
4 protected void AnimPhysCommandScripted();
5
8 void OnActivate();
9
12
13 //------------------------------------------------------------------------
14 // Flags - usable anywhere
15 //------------------------------------------------------------------------
16
19 proto native bool IsFlagAutoDelete();
20 proto native void SetFlagAutoDelete(bool pV);
21
23 proto native void SetFlagFinished(bool pFinished);
24 proto native bool IsFlagFinished();
25
26 //------------------------------------------------------------------------
27 // Graph controls - PreAnim Update
28 //------------------------------------------------------------------------
29
33 void PreAnimUpdate(float pDt);
34
35 proto native void PreAnim_CallCommand(int pCommand, int pParamInt, float pParamFloat);
36 proto native void PreAnim_CallCommand4I(int pCommand, int pParamInt1, int pParamInt2, int pParamInt3, int pParamInt4, float pParamFloat);
37 proto native void PreAnim_SetFloat(int pVar, float pFlt);
38 proto native void PreAnim_SetInt(int pVar, int pInt);
39 proto native void PreAnim_SetBool(int pVar, bool pBool);
40 proto native void PreAnim_SetAttachment(string bindingName, string animGraphResourceName, string animInstanceResourceName, string startingNodeName);
41
42 //------------------------------------------------------------------------
43 // Graph states/modifications - PrePhys Update
44 //------------------------------------------------------------------------
45
48 void PrePhysUpdate(float pDt);
49
51 proto native bool PrePhys_IsEvent(int pEvent);
52 proto native bool PrePhys_IsTag(int pTag);
53 proto bool PrePhys_GetPredictionEval(int pPrediction, out int pGlobalBoneIndex, out bool pIsTranslation, out bool pIsRotation, out vector pOutTransl, out float pOutRot[4], out float pTimeToPrediction, out float pNormTimeInAnims);
54 proto native bool PrePhys_GetTranslation(out vector pOutTransl);
55 proto native bool PrePhys_GetRotation(out float pOutRot[4]);
56 proto native void PrePhys_SetTranslation(vector pInTransl);
57 proto native void PrePhys_SetRotation(float pInRot[4]);
58
59 //------------------------------------------------------------------------
60 // Graph states/modifications - PostPhys Update
61 //------------------------------------------------------------------------
62
66 bool PostPhysUpdate(float pDt);
67
69 proto native void PostPhys_GetPosition(out vector pOutTransl);
70 proto native void PostPhys_GetRotation(out float pOutRot[4]);
71 proto native void PostPhys_SetPosition(vector pInTransl);
72 proto native void PostPhys_SetRotation(float pInRot[4]);
73 proto native void PostPhys_LockRotation();
74}
proto native void PreAnim_SetAttachment(string bindingName, string animGraphResourceName, string animInstanceResourceName, string startingNodeName)
proto native void PreAnim_SetBool(int pVar, bool pBool)
proto native bool PrePhys_GetRotation(out float pOutRot[4])
proto native void PostPhys_GetRotation(out float pOutRot[4])
proto native bool PrePhys_IsTag(int pTag)
proto native void PreAnim_CallCommand4I(int pCommand, int pParamInt1, int pParamInt2, int pParamInt3, int pParamInt4, float pParamFloat)
void PreAnimUpdate(float pDt)
proto native void PostPhys_SetPosition(vector pInTransl)
proto native void PostPhys_LockRotation()
proto native bool PrePhys_GetTranslation(out vector pOutTransl)
proto native void PostPhys_GetPosition(out vector pOutTransl)
script function usable in PostPhysUpdate
proto native void PrePhys_SetRotation(float pInRot[4])
void AnimPhysCommandScripted()
constructor is protected - we don't wnat instances of this "abstract" class
proto native bool PrePhys_IsEvent(int pEvent)
script function usable in PrePhysUpdate
void PrePhysUpdate(float pDt)
proto bool PrePhys_GetPredictionEval(int pPrediction, out int pGlobalBoneIndex, out bool pIsTranslation, out bool pIsRotation, out vector pOutTransl, out float pOutRot[4], out float pTimeToPrediction, out float pNormTimeInAnims)
proto native void PreAnim_SetFloat(int pVar, float pFlt)
proto native bool IsFlagFinished()
proto native void PreAnim_SetInt(int pVar, int pInt)
bool PostPhysUpdate(float pDt)
void OnDeactivate()
called when command ends
proto native bool IsFlagAutoDelete()
proto native void SetFlagFinished(bool pFinished)
this terminates human command script and shows CommandHandler( ... pCurrentCommandFinished == true );
proto native void PrePhys_SetTranslation(vector pInTransl)
proto native void PreAnim_CallCommand(int pCommand, int pParamInt, float pParamFloat)
proto native void PostPhys_SetRotation(float pInRot[4])
proto native void SetFlagAutoDelete(bool pV)