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

Method PlayerTests

src/SB/Game/zNPCGoalRobo.cpp:2903–2928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2901}
2902
2903S32 zNPCGoalAttackHammer::PlayerTests(xVec3* pos_vert, F32 dt)
2904{
2905 zNPCRobot* npc = (zNPCRobot*)(psyche->clt_owner);
2906 S32 hithim;
2907
2908 xBound bnd;
2909 memset(&bnd, 0, sizeof(xBound));
2910 bnd.sph.r = 0.55f;
2911 bnd.type = 1;
2912 bnd.sph.center = *pos_vert;
2913
2914 if (npc->DBG_IsNormLog(eNPCDCAT_Thirteen, 2) != 0)
2915 {
2916 xDrawSetColor(g_NEON_RED);
2917 xBoundDraw(&bnd);
2918 }
2919 hithim = NPCC_chk_hitPlyr(&bnd, 0);
2920 if (hithim != 0)
2921 {
2922 if (zEntPlayer_DamageNPCKnockBack(npc, 1, npc->Pos()) != 0)
2923 {
2924 npc->Vibrate(NPC_VIBE_HARD, -1.0f);
2925 }
2926 }
2927 return hithim;
2928}
2929
2930void zNPCGoalAttackHammer::TellBunnies()
2931{

Callers

nothing calls this directly

Calls 7

memsetFunction · 0.85
xDrawSetColorFunction · 0.85
xBoundDrawFunction · 0.85
NPCC_chk_hitPlyrFunction · 0.85
VibrateMethod · 0.80
PosMethod · 0.45

Tested by

no test coverage detected