| 2901 | } |
| 2902 | |
| 2903 | S32 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 | |
| 2930 | void zNPCGoalAttackHammer::TellBunnies() |
| 2931 | { |
nothing calls this directly
no test coverage detected