Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
Paragloomba_Wander.inc.c
Go to the documentation of this file.
1#include "Paragloomba.h"
2
4
5MobileAISettings N(AISettings_Paragloomba_Wander) = {
6 .moveSpeed = 2.0f,
7 .alertRadius = 80.0f,
8 .playerSearchInterval = 5,
9 .chaseSpeed = 3.0f,
10 .chaseTurnRate = 10,
11 .chaseUpdateInterval = 2,
12 .chaseRadius = 100.0f,
13 .unk_AI_2C = 1,
14};
15
16EvtScript N(EVS_NpcAI_Paragloomba_Wander) = {
17 Call(SetSelfVar, 0, 1)
18 Call(SetSelfVar, 5, -850)
19 Call(SetSelfVar, 6, 60)
20 Call(SetSelfVar, 1, 600)
21 Call(N(FlyingAI_Main), Ref(N(AISettings_Paragloomba_Wander)))
22 Return
23 End
24};
25
26NpcSettings N(NpcSettings_Paragloomba_Wander) = {
27 .height = 20,
28 .radius = 21,
29 .level = ACTOR_LEVEL_PARAGLOOMBA,
30 .ai = &N(EVS_NpcAI_Paragloomba_Wander),
31 .onHit = &EnemyNpcHit,
32 .onDefeat = &EnemyNpcDefeat,
33};
Bytecode EvtScript[]
s16 height
Definition npc.h:145
EvtScript EnemyNpcDefeat
Definition encounter.c:158
EvtScript EnemyNpcHit
Definition encounter.c:131
ApiStatus SetSelfVar(Evt *script, b32 isInitialCall)
#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