Go to the source code of this file.
◆ _AI_MELEE_HITBOX_INC_
#define _AI_MELEE_HITBOX_INC_ 0 |
◆ MeleeHitbox_30()
void N MeleeHitbox_30 |
( |
Evt * | script | ) |
|
Definition at line 7 of file MeleeHitbox.inc.c.
7 {
10
12
15 npc->
duration = enemy->AI_VAR_MELEE_PRE_TIME;
18 }
19}
union Evt::@8 owner1
Initially -1.
@ ENEMY_ANIM_INDEX_MELEE_PRE
@ AI_STATE_MELEE_HITBOX_PRE
@ MELEE_HITBOX_STATE_INIT
Npc * get_npc_unsafe(s32 npcID)
s16 turnAroundYawAdjustment
◆ MeleeHitbox_31()
void N MeleeHitbox_31 |
( |
Evt * | script | ) |
|
Definition at line 21 of file MeleeHitbox.inc.c.
21 {
24
28 npc->
duration = enemy->AI_VAR_MELEE_HIT_TIME;
31 }
32}
@ ENEMY_ANIM_INDEX_MELEE_HIT
@ AI_STATE_MELEE_HITBOX_ACTIVE
@ MELEE_HITBOX_STATE_ACTIVE
◆ MeleeHitbox_32()
void N MeleeHitbox_32 |
( |
Evt * | script | ) |
|
Definition at line 34 of file MeleeHitbox.inc.c.
34 {
38
43 npc->
duration = enemy->AI_VAR_MELEE_MISS_TIME;
44 if (enemy->AI_VAR_MELEE_MISS_TIME >= 8) {
46 }
48 }
49}
@ AI_STATE_MELEE_HITBOX_MISS
@ MELEE_HITBOX_STATE_POST
◆ MeleeHitbox_33()
void N MeleeHitbox_33 |
( |
Evt * | script | ) |
|
◆ MeleeHitbox_CanSeePlayer()
s32 N MeleeHitbox_CanSeePlayer |
( |
Evt * | script | ) |
|
Definition at line 62 of file MeleeHitbox.inc.c.
62 {
67 f32 angle;
68 s32 ret = TRUE;
69
71 ret = FALSE;
72 }
73
75 angle = 90.0f;
76 } else {
77 angle = 270.0f;
78 }
79
82 ret = FALSE;
83 }
84
86 ret = FALSE;
87 }
88
90 ret = FALSE;
91 }
92
94 ret = FALSE;
95 }
96
97 return ret;
98}
f32 dist2D(f32 ax, f32 ay, f32 bx, f32 by)
f32 get_clamped_angle_diff(f32, f32)
Enemy * get_enemy(s32 npcID)
Looks for an enemy matching the specified npcID.
PlayerStatus * gPlayerStatusPtr
PartnerStatus gPartnerStatus