Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
Bzzap.inc.c
Go to the documentation of this file.
1#include "Bzzap.h"
2
4
5MobileAISettings N(AISettings_Bzzap) = {
6 .moveSpeed = 1.0f,
7 .moveTime = 30,
8 .waitTime = 5,
9 .alertRadius = 80.0f,
10 .alertOffsetDist = 30.0f,
11 .playerSearchInterval = 2,
12 .chaseSpeed = 4.5f,
13 .chaseTurnRate = 6,
14 .chaseUpdateInterval = 1,
15 .chaseRadius = 90.0f,
16 .chaseOffsetDist = 30.0f,
17 .unk_AI_2C = 1,
18};
19
20EvtScript N(EVS_NpcAI_Bzzap) = {
21 Call(SetSelfVar, 0, 0)
22 Call(SetSelfVar, 5, -630)
23 Call(SetSelfVar, 6, 50)
24 Call(SetSelfVar, 1, 200)
25 Call(N(FlyingAI_Main), Ref(N(AISettings_Bzzap)))
26 Return
27 End
28};
29
30NpcSettings N(NpcSettings_Bzzap) = {
31 .height = 26,
32 .radius = 24,
33 .level = ACTOR_LEVEL_BZZAP,
34 .ai = &N(EVS_NpcAI_Bzzap),
35 .onHit = &EnemyNpcHit,
36 .onDefeat = &EnemyNpcDefeat,
37};
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