Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
Cleft.inc.c
Go to the documentation of this file.
1
2#include "Cleft.h"
3
5
6MobileAISettings N(AISettings_Cleft) = {
7 .moveSpeed = 1.0f,
8 .moveTime = 30,
9 .waitTime = 30,
10 .alertRadius = 120.0f,
11 .playerSearchInterval = 3,
12 .chaseSpeed = 7.0f,
13 .chaseTurnRate = 60,
14 .chaseUpdateInterval = 5,
15 .chaseRadius = 100.0f,
16 .chaseOffsetDist = 60.0f,
17 .unk_AI_2C = 1,
18};
19
20EvtScript N(EVS_NpcAI_Cleft) = {
21 Call(N(CleftAI_Main), Ref(N(AISettings_Cleft)), 16)
22 Return
23 End
24};
25
26NpcSettings N(NpcSettings_Cleft) = {
27 .height = 26,
28 .radius = 24,
29 .level = ACTOR_LEVEL_CLEFT,
30 .ai = &N(EVS_NpcAI_Cleft),
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
#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