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

Method Resume

src/SB/Game/zNPCGoalVillager.cpp:147–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147S32 zNPCGoalPlayerNear::Resume(F32 dt, void* updCtxt)
148{
149 zNPCVillager* npc = (zNPCVillager*)psyche->clt_owner;
150
151 if (npc->converse != NULL || (flg_plyrnear & 4))
152 {
153 if (talk_glyph != NULL)
154 {
155 talk_glyph->Enable(1);
156 }
157 }
158 else
159 {
160 if (talk_glyph != NULL)
161 {
162 talk_glyph->Discard();
163 }
164 talk_glyph = NULL;
165
166 if (talk_font != NULL)
167 {
168 talk_font->Off(npc, 0);
169 }
170 talk_font = NULL;
171 flg_plyrnear = 0;
172 }
173
174 tmr_actBored = (xurand() - 0.5f) * 0.25f * 4.0f + 4.0f;
175 return zNPCGoalCommon::Resume(dt, updCtxt);
176}
177
178// Equivalent: regalloc
179S32 zNPCGoalPlayerNear::Process(en_trantype* trantype, F32 dt, void* updCtxt, xScene* scene)

Callers

nothing calls this directly

Calls 5

xurandFunction · 0.85
EnableMethod · 0.80
OffMethod · 0.80
ResumeFunction · 0.50
DiscardMethod · 0.45

Tested by

no test coverage detected