Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
Toad_Guard.inc.c
Go to the documentation of this file.
1#include "Toad_Collection.h"
2
4
5GuardAISettings N(AISettings_Toad_Guard) = {
6 .playerSearchInterval = -1,
7 .chaseRadius = 300.0f,
8 .unk_AI_20 = 30,
9};
10
11EvtScript N(EVS_NpcAI_Toad_Guard) = {
12 Call(N(GuardAI_Main), Ref(N(AISettings_Toad_Guard)))
13 Return
14 End
15};
16
17NpcSettings N(NpcSettings_Toad_Guard) = {
18 .height = 30,
19 .radius = 24,
20 .level = ACTOR_LEVEL_NONE,
21 .ai = &N(EVS_NpcAI_Toad_Guard),
22};
23
24NpcSettings N(NpcSettings_ToadKid_Guard) = {
25 .height = 23,
26 .radius = 19,
27 .level = ACTOR_LEVEL_NONE,
28 .ai = &N(EVS_NpcAI_Toad_Guard),
29};
Bytecode EvtScript[]
#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