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

Method ChkCheatDogTrix

src/SB/Game/zNPCGoalVillager.cpp:356–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356void zNPCGoalPlayerNear::ChkCheatDogTrix(S32* goal, en_trantype* trantype)
357{
358 // clang-format off
359 static U32 hashes_sc[] = {
360 xStrHash("LassoSwing"),
361 xStrHash("SlipIdle01"),
362 xStrHash("LCopter01"),
363 xStrHash("LCopterHeadUp01"),
364 xStrHash("TailSlide01"),
365 xStrHash("TailSlideJumpStart01"),
366 xStrHash("TailSlideJumpApex01"),
367 xStrHash("TailSlideFall01"),
368 xStrHash("TailSlideLand01"),
369 xStrHash("TailSlideDJumpApex01"),
370 };
371
372 static U32 hashes_ss[] = {
373 xStrHash("DJumpStart01"),
374 xStrHash("DJumpApex01"),
375 xStrHash("BBounceStrike01"),
376 0,
377 0,
378 };
379
380 static U32 hashes_pa[] = {
381 xStrHash("DJumpStart01"),
382 xStrHash("DJumpApex01"),
383 xStrHash("StunLand"),
384 };
385 // clang-format on
386
387 U32 id = globals.player.ent.model->Anim->Single->State->ID;
388 S32 match = 0;
389 if (gCurrentPlayer == eCurrentPlayerSpongeBob)
390 {
391 for (U32 i = 0; i < 5; i++)
392 {
393 if (id == hashes_ss[i])
394 {
395 match = 1;
396 break;
397 }
398 }
399 }
400 else if (gCurrentPlayer == eCurrentPlayerPatrick)
401 {
402 for (U32 i = 0; i < 3; i++)
403 {
404 if (id == hashes_pa[i])
405 {
406 match = 1;
407 break;
408 }
409 }
410 }
411 else if (gCurrentPlayer == eCurrentPlayerSandy)
412 {
413 for (U32 i = 0; i < 10; i++)

Callers

nothing calls this directly

Calls 3

CenterMethod · 0.80
zEntPickup_SpawnNRewardsFunction · 0.70
xStrHashFunction · 0.50

Tested by

no test coverage detected