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

Function zThrown_KillFruit

src/SB/Game/zThrown.cpp:117–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117S32 zThrown_KillFruit(xEnt* ent)
118{
119 for (S32 i = 0; i < zThrownCount; i++)
120 {
121 if (zThrownList[i].ent == ent)
122 {
123 if (zThrownList[i].stats->carry == &c_fruit)
124 {
125 zThrownList[i].killTimer = 1e-6f;
126 return 1;
127 }
128 return 0;
129 }
130 }
131 return 0;
132}
133
134void zThrownCollide_ThrowFreeze(zThrownStruct* thrown, xEntCollis* collis, float* bounce,
135 float* friction)

Callers 1

zEntPlayerKillCarryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected