Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
SpikedGloomba_Wander.inc.c
Go to the documentation of this file.
1#include "SpikedGloomba.h"
2
3MobileAISettings N(AISettings_SpikedGloomba_Wander) = {
4 .moveSpeed = 2.2f,
5 .alertRadius = 70.0f,
6 .playerSearchInterval = 1,
7 .chaseSpeed = 3.2f,
8 .chaseTurnRate = 15,
9 .chaseUpdateInterval = 1,
10 .chaseRadius = 90.0f,
11 .unk_AI_2C = 1,
12};
13
14EvtScript N(EVS_NpcAI_SpikedGloomba_Wander) = {
15 Call(BasicAI_Main, Ref(N(AISettings_SpikedGloomba_Wander)))
16 Return
17 End
18};
19
20NpcSettings N(NpcSettings_SpikedGloomba_Wander) = {
21 .height = 23,
22 .radius = 23,
23 .level = ACTOR_LEVEL_SPIKED_GLOOMBA,
24 .ai = &N(EVS_NpcAI_SpikedGloomba_Wander),
25 .onHit = &EnemyNpcHit,
26 .onDefeat = &EnemyNpcDefeat,
27};
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