9 script->functionTemp[0] = script->functionTemp[1];
18 script->functionTemp[0] = script->functionTemp[1];
26 f32 fwdHitDist = -1.0f;
27 f32 cwHitDist = -1.0f;
28 f32 ccwHitDist = -1.0f;
70 if ((cwHitDist < fwdHitDist && ccwHitDist < cwHitDist) || (ccwHitDist < fwdHitDist && cwHitDist < ccwHitDist)) {
72 }
else if ((fwdHitDist < cwHitDist && ccwHitDist < fwdHitDist) || (ccwHitDist < cwHitDist && fwdHitDist < ccwHitDist)) {
73 yaw = npc->
yaw + 35.0f;
74 }
else if ((fwdHitDist < ccwHitDist && cwHitDist < fwdHitDist) || (cwHitDist < ccwHitDist && fwdHitDist < cwHitDist)) {
75 yaw = npc->
yaw - 35.0f;
82 if (outDistFwd != NULL) {
83 *outDistFwd = fwdHitDist;
85 if (outDistCW != NULL) {
86 *outDistCW = cwHitDist;
88 if (outDistCCW != NULL) {
89 *outDistCCW = ccwHitDist;
void ai_suspend_for_time(Evt *script)
void basic_ai_suspend(Evt *script)
s32 ai_check_fwd_collisions(Npc *npc, f32 time, f32 *outYaw, f32 *outDistFwd, f32 *outDistCW, f32 *outDistCCW)
union Evt::@8 owner1
Initially -1.
f32 dist2D(f32 ax, f32 ay, f32 bx, f32 by)
b32 npc_test_move_simple_with_slipping(s32, f32 *, f32 *, f32 *, f32, f32, f32, f32)
Npc * get_npc_unsafe(s32 npcID)