Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
Kammy_Guard.inc.c
Go to the documentation of this file.
1#include "Kammy.h"
2
3// odd enemy template used in kmr_02 for flying kammy
4
6
7GuardAISettings N(AISettings_Kammy_Guard) = {
8 .playerSearchInterval = -1,
9 .chaseRadius = 300.0f,
10 .unk_AI_20 = 30,
11};
12
13EvtScript N(EVS_NpcAI_Kammy_Guard) = {
14 Call(N(GuardAI_Main), Ref(N(AISettings_Kammy_Guard)))
15 Return
16 End
17};
18
19NpcSettings N(NpcSettings_Kammy_Guard) = {
20 .height = 40,
21 .radius = 30,
22 .level = ACTOR_LEVEL_MAGIKOOPA,
23 .ai = &N(EVS_NpcAI_Kammy_Guard),
24 .onHit = &EnemyNpcHit,
25 .onDefeat = &EnemyNpcDefeat,
26};
Bytecode EvtScript[]
EvtScript EnemyNpcDefeat
Definition encounter.c:158
EvtScript EnemyNpcHit
Definition encounter.c:131
#define Ref(sym)
Address/pointer constant.
Definition macros.h:60
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:213
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:576
#define Return
Kills the current EVT thread.
Definition macros.h:217