| 559 | } |
| 560 | |
| 561 | void 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 | |
| 592 | xEnt* zNPCMgr::CreateNPC(xEntAsset* asset) |
| 593 | { |
no test coverage detected