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

Method DuckStackInterpInit

src/SB/Game/zNPCGoalRobo.cpp:4451–4469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4449}
4450
4451void zNPCGoalTubeDuckling::DuckStackInterpInit()
4452{
4453 zNPCTubeSlave* npc = (zNPCTubeSlave*)(psyche->clt_owner);
4454 xVec3 dist;
4455 xVec3 pos_stacked;
4456
4457 npc->PosStacked(&pos_stacked);
4458 xVec3Sub(&dist, npc->Pos(), &pos_stacked);
4459 dst_visacard = xVec3Length(&dist);
4460 if (dst_visacard < 0.001f)
4461 {
4462 dst_visacard = -1.0f;
4463 xVec3Copy(&dir_visacard, &g_O3);
4464 }
4465 else
4466 {
4467 xVec3Normalize(&dir_visacard, &dist);
4468 }
4469}
4470
4471S32 zNPCGoalTubeAttack::Enter(F32 dt, void* updCtxt)
4472{

Callers

nothing calls this directly

Calls 5

xVec3SubFunction · 0.85
xVec3LengthFunction · 0.85
xVec3CopyFunction · 0.85
xVec3NormalizeFunction · 0.50
PosMethod · 0.45

Tested by

no test coverage detected