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

Method ISeePlayer

src/SB/Game/zNPCTypeCommon.cpp:1969–2112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1967}
1968
1969void zNPCCommon::ISeePlayer()
1970{
1971 // non-matching: stubborn switch statement, may not be correct.
1972 en_xEventTags ven = eEventUnknown;
1973
1974 if (!SomethingWonderful() && g_tmr_talkless < 0.0f)
1975 {
1976 g_tmr_talkless = 3.0f + (xurand() - 0.5f) * 0.25f * 3.0f;
1977
1978 // case NPC_TYPE_FISH jumps to the `if (ven != eEventUnknown)` at the end
1979 // instead of `>= NPC_TYPE_FISH` jumping to the NPC_TYPE_BARNACLEBOY case
1980 switch (this->SelfType())
1981 {
1982 //case NPC_TYPE_UNKNOWN:
1983 //case NPC_TYPE_BASIC:
1984 //case NPC_TYPE_COMMON:
1985 case NPC_TYPE_AMBIENT:
1986 case NPC_TYPE_VILLAGER:
1987 case NPC_TYPE_ROBOT:
1988 case NPC_TYPE_BOSS:
1989 case NPC_TYPE_TEST:
1990 case NPC_TYPE_BADGUY:
1991 case NPC_TYPE_JELLYPINK:
1992 case NPC_TYPE_JELLYBLUE:
1993 case NPC_TYPE_KINGNEPTUNE:
1994 case NPC_TYPE_MIMEFISH:
1995 //case NPC_TYPE_COW:
1996 break;
1997 case NPC_TYPE_TIKI_WOOD:
1998 ven = eEventSituationSeeWoodTiki;
1999 break;
2000 case NPC_TYPE_TIKI_LOVEY:
2001 ven = eEventSituationSeeLoveyTiki;
2002 break;
2003 case NPC_TYPE_TIKI_QUIET:
2004 ven = eEventSituationSeeShhhTiki;
2005 break;
2006 case NPC_TYPE_TIKI_THUNDER:
2007 ven = eEventSituationSeeThunderTiki;
2008 break;
2009 case NPC_TYPE_TIKI_STONE:
2010 ven = eEventSituationSeeStoneTiki;
2011 break;
2012 case NPC_TYPE_FISH:
2013 //case NPC_TYPE_FISH_MALE:
2014 //case NPC_TYPE_FISH_FEMALE:
2015 //case NPC_TYPE_FISH_ELDER:
2016 //case NPC_TYPE_FISH_ELDESS:
2017 //case NPC_TYPE_FISH_BOY:
2018 //case NPC_TYPE_FISH_GIRL:
2019 //case NPC_TYPE_BALLOONBOY:
2020 //case NPC_TYPE_GARY:
2021 //case NPC_TYPE_SQUIDWARD:
2022 case NPC_TYPE_SQUIDWARD_MUSIC:
2023 case NPC_TYPE_SQUIDWARD_BANDAID:
2024 //case NPC_TYPE_DUTCHMAN_NSB:
2025 //case NPC_TYPE_SANDYBIKINI:
2026 //case NPC_TYPE_SANDYNPC:

Callers 2

EnterMethod · 0.80
ProcessMethod · 0.80

Calls 4

SomethingWonderfulFunction · 0.85
xurandFunction · 0.85
SelfTypeMethod · 0.80
zEntEventFunction · 0.50

Tested by

no test coverage detected