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

Method PreCalc

src/SB/Game/zNPCGoalCommon.cpp:41–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41S32 zNPCGoalCommon::PreCalc(F32 dt, void* updCtxt)
42{
43 zNPCCommon* npc = (zNPCCommon*)psyche->clt_owner;
44
45 if (flg_npcgauto & 0x8)
46 {
47 if ((flg_info |= 0x8) == 0)
48 {
49 U32 curid = npc->AnimCurStateID();
50
51 if (curid != anid_played)
52 {
53 Name();
54
55 flg_info |= 0x8;
56
57 if (psyche->cb_notice && psyche->cb_notice)
58 {
59 psyche->cb_notice->Notice(PSY_NOTE_ANIMCHANGED, this, NULL);
60 }
61 }
62 }
63 }
64
65 return xGoal::PreCalc(dt, updCtxt);
66}
67
68U32 zNPCGoalCommon::DoAutoAnim(en_NPC_GOAL_SPOT gspot, S32 forceRestart)
69{

Callers

nothing calls this directly

Calls 3

PreCalcFunction · 0.85
AnimCurStateIDMethod · 0.80
NoticeMethod · 0.80

Tested by

no test coverage detected