Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
GoombaBros_Guard.inc.c
Go to the documentation of this file.
1#include "GoombaBros.h"
2
4
5GuardAISettings N(AISettings_GoombaBros_Guard) = {
6 .alertRadius = 130.0f,
7 .playerSearchInterval = 1,
8 .chaseSpeed = 2.5f,
9 .chaseTurnRate = 180,
10 .chaseUpdateInterval = 3,
11 .chaseRadius = 150.0f,
12 .unk_AI_20 = 1,
13};
14
15EvtScript N(EVS_NpcAI_GoombaBros_Guard) = {
16 Call(N(GuardAI_Main), Ref(N(AISettings_GoombaBros_Guard)))
17 Return
18 End
19};
20
21NpcSettings N(NpcSettings_GoombaBros_Guard) = {
22 .height = 20,
23 .radius = 23,
24 .level = ACTOR_LEVEL_GOOMBA,
25 .ai = &N(EVS_NpcAI_GoombaBros_Guard),
26 .onHit = &EnemyNpcHit,
27 .onDefeat = &EnemyNpcDefeat,
28};
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