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

Method make_spawner

src/SB/Game/zNPCTypePrawn.cpp:876–887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

874}
875
876zNPCSpawner* zNPCPrawn::make_spawner(S32 i)
877{
878 zNPCSpawner* spawner = this->spawner[i];
879 if (spawner != NULL)
880 {
881 return spawner;
882 }
883 this->spawner[i] = zNPCSpawner_GetInstance();
884 this->spawner[i]->Subscribe(this);
885 this->spawner[i]->SetWaveMode(SM_WAVE_CONTINUOUS, tweak.spawn_delay, -1);
886 return this->spawner[i];
887}
888
889void zNPCPrawn::update_particles(float)
890{

Callers

nothing calls this directly

Calls 3

SetWaveModeMethod · 0.80
zNPCSpawner_GetInstanceFunction · 0.70
SubscribeMethod · 0.45

Tested by

no test coverage detected