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

Function zThrown_IsFruit

src/SB/Game/zThrown.cpp:171–188  ·  view source on GitHub ↗

WIP.

Source from the content-addressed store, hash-verified

169
170// WIP.
171S32 zThrown_IsFruit(xEnt* ent, F32* stackHeight)
172{
173 ThrowableStats* stats = zThrowableModels;
174 while (stats->nameHash != ent->asset->modelInfoID &&
175 stats->nameHashMINF != ent->asset->modelInfoID && stats->name != NULL)
176 {
177 stats++;
178 }
179 if (stats != NULL && *(U32*)&stats->carry->killTimer == *(U32*)&c_fruit.killTimer)
180 {
181 if (stackHeight != NULL)
182 {
183 *stackHeight = stats->stackHeight;
184 }
185 return 1;
186 }
187 return 0;
188}
189
190S32 zThrown_IsStacked(xEnt* ent)
191{

Callers 1

GetPatrickTargetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected