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

Method SetGrasshopperCGF

CrySystem/ScriptObjectSystem.cpp:2090–2108  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2088//
2089//------------------------------------------------------------------------------
2090int CScriptObjectSystem::SetGrasshopperCGF(IFunctionHandler *pH)
2091{
2092 CHECK_PARAMETERS(1);
2093 IEntity *pEntity;
2094 int nID;
2095 pH->GetParam(1,nID);
2096 pEntity=m_pEntitySystem->GetEntity(nID);
2097 if(pEntity){
2098 CEntityObject obj;
2099 int slot=0;
2100 while(pEntity->GetEntityObject(slot, obj))
2101 {
2102 m_p3DEngine->SetGrasshopperCGF(slot++, obj.object);
2103 }
2104 for( ;slot<4; )
2105 m_p3DEngine->SetGrasshopperCGF(slot++, NULL);
2106 }
2107 return pH->EndFunction();
2108}
2109
2110
2111

Callers

nothing calls this directly

Calls 4

GetEntityObjectMethod · 0.80
EndFunctionMethod · 0.80
GetParamMethod · 0.45
GetEntityMethod · 0.45

Tested by

no test coverage detected