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