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