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

Method UseDefaultAnims

src/SB/Game/zNPCGoalStd.cpp:269–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269void zNPCGoalLoopAnim::UseDefaultAnims()
270{
271 zNPCCommon* npc = (zNPCCommon*)psyche->clt_owner;
272
273 anid_stage[1] = npc->AnimPick(GetID(), NPC_GSPOT_RESUME, this);
274
275 U32 id = npc->AnimPick(GetID(), NPC_GSPOT_START, this);
276 if (id == anid_stage[1])
277 {
278 id = 0;
279 }
280 anid_stage[0] = id;
281 if (id != 0)
282 {
283 flg_loopanim |= (1 << 2);
284 }
285
286 id = npc->AnimPick(GetID(), NPC_GSPOT_FINISH, this);
287 if (id == anid_stage[1])
288 {
289 id = 0;
290 }
291 anid_stage[2] = id;
292 if (id != 0)
293 {
294 flg_loopanim |= (1 << 3);
295 }
296}
297
298void zNPCGoalLoopAnim::ValidateStages()
299{

Callers

nothing calls this directly

Calls 1

AnimPickMethod · 0.45

Tested by

no test coverage detected