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

Method Enter

src/SB/Game/zNPCGoalTiki.cpp:56–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56S32 zNPCGoalTikiIdle::Enter(F32, void*)
57{
58 zNPCTiki* tiki = (zNPCTiki*)GetOwner();
59
60 if (tiki->SelfType() == NPC_TYPE_TIKI_THUNDER)
61 {
62 tmr_wait = 0.1f;
63 }
64 else if (!tiki->nav_dest)
65 {
66 tmr_wait = 2.0f;
67 }
68 else
69 {
70 tmr_wait = zMovePointGetDelay(tiki->nav_dest);
71 }
72
73 return 0;
74}
75
76S32 zNPCGoalTikiPatrol::Enter(F32, void*)
77{

Callers

nothing calls this directly

Calls 10

zMovePointGetDelayFunction · 0.85
xVec3CopyFunction · 0.85
zMovePointGetPosFunction · 0.85
xVec3SubFunction · 0.85
xVec3SMulByFunction · 0.85
xEntHideFunction · 0.85
SelfTypeMethod · 0.80
GiveRewardMethod · 0.80
xVec3NormalizeFunction · 0.50
zEntEventFunction · 0.50

Tested by

no test coverage detected