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

Method decompose

src/SB/Game/zNPCTypePrawn.cpp:848–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846}
847
848void zNPCPrawn::decompose()
849{
850 S32 spawnerIndex;
851 zNPCSpawner* spawner;
852 vanish();
853
854 if (this->fighting != 0)
855 {
856 this->fighting = 0;
857 set_floor_state(FS_SAFE, TRUE, TRUE);
858 hide_model();
859 spawnerIndex = 0;
860
861 do
862 {
863 spawner = this->spawner[spawnerIndex];
864 if (spawner != NULL)
865 {
866 spawner->Notify(SM_NOTE_DUPDEAD, NULL);
867 spawner->Notify(SM_NOTE_KILLKIDS, NULL);
868 }
869 spawnerIndex++;
870 } while (spawnerIndex < sizeof(this->spawner) / sizeof(*this->spawner));
871 zCameraEnableTracking(CO_BOSS);
872 boss_cam.stop();
873 }
874}
875
876zNPCSpawner* zNPCPrawn::make_spawner(S32 i)
877{

Callers 1

EnterMethod · 0.45

Calls 4

set_floor_stateFunction · 0.85
zCameraEnableTrackingFunction · 0.85
NotifyMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected