| 490 | } |
| 491 | |
| 492 | static S32 SB1_CheckFeetStomp(zNPCB_SB1* sb1, S32* goal, en_trantype* trantype) |
| 493 | { |
| 494 | xVec3* player_pos = (xVec3*)&globals.player.ent.model->Mat->pos; |
| 495 | xVec3* boss_pos = (xVec3*)&sb1->model->Mat->pos; |
| 496 | F32 dist = xVec3Dist2(boss_pos, player_pos); |
| 497 | |
| 498 | S32 result = 0; |
| 499 | |
| 500 | if (dist < 64.0f) |
| 501 | { |
| 502 | result = 1; |
| 503 | *goal = NPC_GOAL_BOSSSB1STOMP; |
| 504 | *trantype = GOAL_TRAN_SET; |
| 505 | } |
| 506 | else |
| 507 | { |
| 508 | result = 0; |
| 509 | } |
| 510 | |
| 511 | return result; |
| 512 | } |
| 513 | |
| 514 | static S32 idleCB(xGoal* rawgoal, void*, en_trantype* trantype, F32, void*) |
| 515 | { |
no test coverage detected