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

Method LoadModel

CryGame/UIStatic.cpp:590–600  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

588
589//-------------------------------------------------------------------------------------------------
590int CUIStatic::LoadModel(const string &szModelName)
591{
592 if (m_pModel)
593 {
594 ReleaseModel();
595 }
596 m_pModel = m_pUISystem->GetISystem()->GetIAnimationSystem()->MakeCharacter(szModelName.c_str());
597 m_szModelName = szModelName;
598
599 return (m_pModel ? 1 : 0);
600}
601
602//-------------------------------------------------------------------------------------------------
603int CUIStatic::ReleaseModel()

Callers 4

AddSubmeshMethod · 0.45
SetSubmeshMethod · 0.45
ReloadAllModelsMethod · 0.45
SetupStaticFromTableMethod · 0.45

Calls 6

GetIAnimationSystemMethod · 0.80
GetISystemMethod · 0.80
EndFunctionMethod · 0.80
MakeCharacterMethod · 0.45
c_strMethod · 0.45
GetParamMethod · 0.45

Tested by

no test coverage detected