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

Method Process

src/SB/Game/zNPCTypeBossPatrick.cpp:952–1317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

950 this->newsfish->SpeakStart(sNFComment[NF_SB_IN_FOR_ROUGH_RIDE].soundID, 0, -1);
951 }
952 else if (this->round == 2)
953 {
954 this->newsfish->SpeakStart(sNFComment[NF_SANDY_GET_SB_UNFROZEN].soundID, 0, -1);
955 }
956 else if (this->round == 3)
957 {
958 this->newsfish->SpeakStart(sNFComment[NF_SB_BACK_IN_FIGHT].soundID, 0, -1);
959 }
960
961 this->bossFlags |= 0x200;
962 }
963
964 this->bossFlags &= 0xffffff7f;
965 }
966
967 if (this->psy_instinct)
968 {
969 this->psy_instinct->Timestep(dt, NULL);
970 }
971
972 if (sUseBossCam)
973 {
974 UpdatePatrickBossCam(this, dt);
975 }
976 else
977 {
978 zCameraEnableTracking(CO_BOSS);
979 }
980
981 F32 fudgeRate = 400.0f * -this->fudgeHandle->model->Mat[2].at.y;
982
983 if (fudgeRate < 0.0f)
984 {
985 fudgeRate = 0.0f;
986 }
987
988 this->fudgeEmitter->prop->rate.val[0] = fudgeRate;
989
990 if (globals.player.lassoInfo.swingTarget)
991 {
992 if (this->notSwingingLastFrame)
993 {
994 this->swingTimer = 0.0f;
995
996 for (i = 0; i < 8; i++)
997 {
998 if (globals.player.lassoInfo.swingTarget == this->swinger[i])
999 {
1000 this->currSwinger = i;
1001 break;
1002 }
1003 }
1004 }
1005
1006 S32 shouldPlayIt = 0;
1007
1008 if (this->swingTimer <= 0.5f)
1009 {

Callers

nothing calls this directly

Calls 15

hiddenByCutsceneMethod · 0.95
zCameraEnableTrackingFunction · 0.85
xVec3CopyFunction · 0.85
xVec3AddScaledFunction · 0.85
xEntShowFunction · 0.85
xMat3x3RotFunction · 0.85
xurandFunction · 0.85
xVec3SubFunction · 0.85
xVec3LengthFunction · 0.85
xVec3SMulByFunction · 0.85
xVec3InitFunction · 0.85
xVec3SubFromFunction · 0.85

Tested by

no test coverage detected