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

Function zFrag_DeleteProjectile

src/SB/Game/zShrapnel.cpp:553–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

551}
552
553void zFrag_DeleteProjectile(zFrag* frag)
554{
555 xVec3 finalVel;
556 zShrapnelAsset* child = frag->info.projectile.fasset->child;
557
558 if (child != NULL && child->initCB != NULL)
559 {
560 xParabolaEvalVel(&frag->info.projectile.path, &finalVel, frag->info.projectile.t);
561 child->initCB(child, frag->info.projectile.model, &finalVel, NULL);
562 }
563
564 if (frag->info.projectile.model != NULL)
565 {
566 xModelInstanceFree(frag->info.projectile.model);
567 }
568
569 zFrag_Free(frag);
570}
571
572void zFrag_ProjectileManager(F32 dt)
573{

Callers 1

zFrag_ProjectileManagerFunction · 0.85

Calls 3

xParabolaEvalVelFunction · 0.85
zFrag_FreeFunction · 0.85
xModelInstanceFreeFunction · 0.50

Tested by

no test coverage detected