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

Method StopDialog

CrySystem/ScriptObjectEntity.cpp:4867–4886  ·  view source on GitHub ↗

! stops dialog (lip-synced); must be a character */

Source from the content-addressed store, hash-verified

4865/*! stops dialog (lip-synced); must be a character
4866*/
4867int CScriptObjectEntity::StopDialog(IFunctionHandler *pH)
4868{
4869 CHECK_PARAMETERS(0);
4870 if(m_pEntity && m_pEntity->GetCharInterface())
4871 {
4872 ILipSync *pLipSync=m_pEntity->GetCharInterface()->GetLipSyncInterface();
4873 if (!pLipSync)
4874 {
4875 m_pISystem->Warning( VALIDATOR_MODULE_SYSTEM,VALIDATOR_WARNING,0,
4876 0,"Could not create lip-sync interface ! Does this entity %s have a character ?",m_pEntity->GetName() );
4877 return pH->EndFunctionNull();
4878 }
4879 if (!pLipSync->StopDialog())
4880 {
4881 m_pISystem->GetILog()->Log("\005CLipSync::StopDialog failed for Entity %s",m_pEntity->GetName());
4882 return pH->EndFunctionNull();
4883 }
4884 }
4885 return pH->EndFunction(1);
4886}
4887
4888/*! Set the material of the entity
4889 @param materialName Name of material.

Callers

nothing calls this directly

Calls 8

GetCharInterfaceMethod · 0.80
GetLipSyncInterfaceMethod · 0.80
EndFunctionNullMethod · 0.80
GetILogMethod · 0.80
EndFunctionMethod · 0.80
WarningMethod · 0.45
GetNameMethod · 0.45
LogMethod · 0.45

Tested by

no test coverage detected