| 10 | #include "zGlobals.h" |
| 11 | |
| 12 | S32 zNPCGoalJellyBumped::Enter(F32 dt, void* updCtxt) |
| 13 | { |
| 14 | zNPCJelly* npc; |
| 15 | xVec3 dir_aim; |
| 16 | |
| 17 | npc = (zNPCJelly*)psyche->clt_owner; |
| 18 | |
| 19 | ExtractAimDir(&dir_aim); |
| 20 | CalcEndPoint(&pos_grindin, &dir_aim); |
| 21 | |
| 22 | pos_bumpin = *npc->Pos(); |
| 23 | |
| 24 | npc->cnt_angerLevel -= 40; |
| 25 | npc->hitpoints--; |
| 26 | |
| 27 | npc->SndPlayRandom(NPC_STYP_OUCH); |
| 28 | |
| 29 | npc->ActLikeOctopus(); |
| 30 | |
| 31 | StreakPrep(); |
| 32 | |
| 33 | return zNPCGoalPushAnim::Enter(dt, updCtxt); |
| 34 | } |
| 35 | |
| 36 | S32 zNPCGoalJellyBumped::Exit(F32 dt, void* updCtxt) |
| 37 | { |
nothing calls this directly
no test coverage detected