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

Method ScenePostParticleRender

src/SB/Game/zNPCMgr.cpp:561–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561void zNPCMgr::ScenePostParticleRender()
562{
563 xLightKit_Enable(globals.player.ent.lightKit, globals.currWorld);
564 _SDRenderState old_rendstat = zRenderStateCurrent();
565 zRenderState(SDRS_NPCVisual);
566 for (int i = 0; i < npclist.cnt; i++)
567 {
568 zNPCCommon* npc = (zNPCCommon*)npclist.list[i];
569 if (npc->flg_xtrarend & 0x2)
570 {
571 npc->flg_xtrarend &= ~0x2;
572 }
573 else
574 {
575 continue;
576 }
577
578 if (npc->baseFlags & 0x40)
579 {
580 continue;
581 }
582
583 if (npc->model == NULL || !(npc->model->Flags & 0x400))
584 {
585 npc->RenderExtraPostParticles();
586 }
587 }
588 xLightKit_Enable(0, globals.currWorld);
589 zRenderState(old_rendstat);
590}
591
592xEnt* zNPCMgr::CreateNPC(xEntAsset* asset)
593{

Callers 1

Calls 4

zRenderStateCurrentFunction · 0.85
zRenderStateFunction · 0.85
xLightKit_EnableFunction · 0.50

Tested by

no test coverage detected