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

Function xEntLoadModel

src/SB/Core/x/xEnt.cpp:741–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741xModelInstance* xEntLoadModel(xEnt* ent, RpAtomic* imodel)
742{
743 xModelInstance* model;
744
745 model = xModelInstanceAlloc(imodel, ent, 0, 0, NULL);
746
747 while (imodel = iModelFile_RWMultiAtomic(imodel))
748 {
749 xModelInstanceAttach(xModelInstanceAlloc(imodel, ent, 0x8, 0, NULL), model);
750 }
751
752 if (ent)
753 {
754 ent->model = model;
755 }
756
757 return model;
758}
759
760void xEntAddToPos(xEnt* ent, const xVec3* v)
761{

Callers 5

zEntButton_InitFunction · 0.50
initMethod · 0.50
zEntDestructObj_InitFunction · 0.50
zPlatform_InitFunction · 0.50
zEntParseModelInfoFunction · 0.50

Calls 3

xModelInstanceAllocFunction · 0.70
xModelInstanceAttachFunction · 0.70
iModelFile_RWMultiAtomicFunction · 0.50

Tested by

no test coverage detected