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