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