MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / DisableAnimationEvent

Method DisableAnimationEvent

CrySystem/ScriptObjectEntity.cpp:3049–3065  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

3047
3048//////////////////////////////////////////////////////////////////////////
3049int CScriptObjectEntity::DisableAnimationEvent(IFunctionHandler *pH)
3050{
3051 CHECK_PARAMETERS(2);
3052 int idSource;
3053 const char *sAnimation;
3054 pH->GetParam(1,idSource);
3055 pH->GetParam(2,sAnimation);
3056 IEntity *pSource=m_pEntitySystem->GetEntity(idSource);
3057 if(!pSource)
3058 pH->EndFunction();
3059 IEntityCharacter *pCharacter=pSource->GetCharInterface();
3060 ICryCharInstance* pCryCharacter=pCharacter->GetCharacter(0);
3061 if (pCryCharacter)
3062 pCryCharacter->RemoveAnimationEventSink (sAnimation, m_pEntity);
3063
3064 return pH->EndFunction();
3065}
3066
3067//////////////////////////////////////////////////////////////////////////
3068int CScriptObjectEntity::SetAnimationSpeed(IFunctionHandler *pH)

Callers

nothing calls this directly

Calls 6

EndFunctionMethod · 0.80
GetCharInterfaceMethod · 0.80
GetParamMethod · 0.45
GetEntityMethod · 0.45
GetCharacterMethod · 0.45

Tested by

no test coverage detected