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

Method StreakUpdate

src/SB/Game/zNPCGoalRobo.cpp:4033–4046  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4031}
4032
4033void zNPCGoalKnock::StreakUpdate()
4034{
4035 zNPCRobot* npc = (zNPCRobot*)(psyche->clt_owner);
4036 xVec3 a, b, c;
4037
4038 xVec3Copy(&c, (xVec3*)NPCC_rightDir(npc));
4039 xVec3SMul(&c, &c, 0.1f);
4040 xVec3Copy(&a, (xVec3*)npc->Pos());
4041 a.y += 0.5f;
4042 b = a;
4043 xVec3Add(&a, &a, &c);
4044 xVec3Sub(&b, &b, &c);
4045 xFXStreakUpdate(this->streakID, &a, &b);
4046}
4047
4048S32 zNPCGoalAfterlife::Enter(F32 dt, void* updCtxt)
4049{

Callers

nothing calls this directly

Calls 7

xVec3CopyFunction · 0.85
NPCC_rightDirFunction · 0.85
xVec3SMulFunction · 0.85
xVec3AddFunction · 0.85
xVec3SubFunction · 0.85
xFXStreakUpdateFunction · 0.50
PosMethod · 0.45

Tested by

no test coverage detected