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

Function HAZ_Acquire

src/SB/Game/zNPCHazard.cpp:139–154  ·  view source on GitHub ↗

Close, kind of.

Source from the content-addressed store, hash-verified

137
138// Close, kind of.
139NPCHazard* HAZ_Acquire()
140{
141 NPCHazard* da_haz = g_hazards;
142 for (S32 i = 0; i < 64; i++)
143 {
144 if (!(da_haz->flg_hazard & 1))
145 {
146 da_haz->WipeIt();
147 da_haz->flg_hazard = 1;
148 g_cnt_activehaz++;
149 return da_haz;
150 }
151 da_haz++;
152 }
153 return NULL;
154}
155
156S32 HAZ_AvailablePool()
157{

Callers 11

SDS_StartExplodeMethod · 0.70
DetonateMethod · 0.70
EnterMethod · 0.70
DieTheGoodDeathMethod · 0.70
MaryzFuryMethod · 0.70
zNPCTiki_ExplodeFXFunction · 0.70
KickSteamyStinkyMethod · 0.70
KickBlooshBlobMethod · 0.70
KickOilBurstMethod · 0.70
KickOilGlobbyMethod · 0.70
NCIN_HazProjShootFunction · 0.70

Calls 1

WipeItMethod · 0.80

Tested by

no test coverage detected