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

Method ExecScriptCommand

CryAnimation/CryCharBody.cpp:230–258  ·  view source on GitHub ↗

Executes a per-body script command

Source from the content-addressed store, hash-verified

228
229//Executes a per-body script command
230bool CryCharBody::ExecScriptCommand (int nCommand, void* pParams, void* pResult)
231{
232 if (CASCMD_DUMP_MODELS == nCommand)
233 {
234 DumpModel();
235 return true;
236 }
237
238 if (CASCMD_EXPORT_MODELS_ASCII == nCommand)
239 {
240 m_pCryModel->ExportModelsASC();
241 return true;
242 }
243
244 switch (nCommand)
245 {
246 case CASCMD_DUMP_DECALS:
247 case CASCMD_DUMP_STATES:
248 g_GetLog()->Log ("\001%60s %3d instance%s", m_strFilePath.c_str(), m_setInstances.size(), m_setInstances.size()==1?"":"s");
249 break;
250 }
251
252 CryCharInstanceRegistry::iterator it = m_setInstances.begin(), itEnd = m_setInstances.end();
253 for (; it != itEnd; ++it)
254 {
255 (*it)->ExecScriptCommand(nCommand, pParams, pResult);
256 }
257 return true;
258}
259

Callers 11

DumpAnimsMethod · 0.45
TrashAnimsMethod · 0.45
ClearDecalsMethod · 0.45
DumpDecalsMethod · 0.45
Start2AnimsMethod · 0.45
DumpStatesMethod · 0.45
ExportModelsMethod · 0.45
UnloadAnimMethod · 0.45
DumpModelsMethod · 0.45
TestParticlesMethod · 0.45
StopParticlesMethod · 0.45

Calls 7

g_GetLogFunction · 0.85
ExportModelsASCMethod · 0.80
LogMethod · 0.45
c_strMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TestParticlesMethod · 0.36