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

Function zEntPickup_Render

src/SB/Game/zEntPickup.cpp:1315–1338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1313}
1314
1315void zEntPickup_Render(zEntPickup* plist, U32 pcount)
1316{
1317 xLightKit_Enable(NULL, globals.currWorld);
1318
1319 for (U32 i = 0; i < pcount; plist++, i++)
1320 {
1321 if (xEntIsVisible(plist) && !(plist->model->Flags & 0x400))
1322 {
1323 RwMatrix* mat = plist->model->Mat;
1324
1325 if (plist->p->pickupType == 1 && plist->p->pickupIndex == 1 &&
1326 globals.player.Health >= globals.player.MaxHealth)
1327 {
1328 set_alpha_blend(plist->model);
1329
1330 plist->model->Alpha = sUnderwearFade;
1331
1332 xModelBucket_Add(plist->model);
1333
1334 *(xMat3x3*)mat = *(xMat3x3*)&sPickupOrientation;
1335 }
1336 }
1337 }
1338}
1339
1340// equivalent: float load scheduling
1341void zEntPickup_RenderOne(xEnt* ent)

Callers 1

zSceneRenderPreFXFunction · 0.70

Calls 4

xEntIsVisibleFunction · 0.85
set_alpha_blendFunction · 0.70
xLightKit_EnableFunction · 0.50
xModelBucket_AddFunction · 0.50

Tested by

no test coverage detected