Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
Bobomb_Guard.inc.c
Go to the documentation of this file.
1#include "common.h"
2#include "Bobomb.h"
3
5
6GuardAISettings N(AISettings_Bobomb_Guard) = {
7 .alertRadius = 110.0f,
8 .alertOffsetDist = 65.0f,
9 .playerSearchInterval = 8,
10 .chaseSpeed = 3.4f,
11 .chaseTurnRate = 120,
12 .chaseUpdateInterval = 2,
13 .chaseRadius = 110.0f,
14 .chaseOffsetDist = 65.0f,
15 .unk_AI_20 = 1,
16};
17
18EvtScript N(EVS_NpcAI_Bobomb_Guard) = {
19 Call(N(GuardAI_Main), Ref(N(AISettings_Bobomb_Guard)))
20 Return
21 End
22};
23
24NpcSettings N(NpcSettings_Bobomb_Guard) = {
25 .height = 23,
26 .radius = 20,
27 .level = ACTOR_LEVEL_BOB_OMB,
28 .ai = &N(EVS_NpcAI_Bobomb_Guard),
29 .onHit = &EnemyNpcHit,
30 .onDefeat = &EnemyNpcDefeat,
31};
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