MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / zEntParseModelInfo

Function zEntParseModelInfo

src/SB/Game/zEnt.cpp:370–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370void zEntParseModelInfo(xEnt* ent, U32 assetID)
371{
372 U32 bufsize[4];
373 void* info = xSTFindAsset(assetID, bufsize);
374 if (*(U32*)info == 0x464e494d)
375 {
376 ent->model = zEntRecurseModelInfo(info, ent);
377 }
378 else
379 {
380 xEntLoadModel(ent, (RpAtomic*)info);
381 ent->model->modelID = assetID;
382 }
383}
384
385// This function suffers from a couple floating point memes
386// Additionally it has a jumptable that needs to be generated in the correct place.

Callers 3

zEntInitFunction · 0.70
InitMethod · 0.50
xEntBoulder_InitFunction · 0.50

Calls 3

zEntRecurseModelInfoFunction · 0.70
xSTFindAssetFunction · 0.50
xEntLoadModelFunction · 0.50

Tested by

no test coverage detected