Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
PokeyMummy.inc.c
Go to the documentation of this file.
1#include "PokeyMummy.h"
2
4
5MobileAISettings N(AISettings_PokeyMummy) = {
6 .moveSpeed = 1.8f,
7 .moveTime = 40,
8 .waitTime = 10,
9 .alertRadius = 100.0f,
10 .playerSearchInterval = 3,
11 .chaseSpeed = 3.0f,
12 .chaseTurnRate = 45,
13 .chaseUpdateInterval = 6,
14 .chaseRadius = 300.0f,
15 .unk_AI_2C = 1,
16};
17
18EvtScript N(EVS_NpcAI_PokeyMummy) = {
19 Call(N(SetInstigatorValue_3))
20 Call(BasicAI_Main, Ref(N(AISettings_PokeyMummy)))
21 Return
22 End
23};
24
25NpcSettings N(NpcSettings_PokeyMummy) = {
26 .height = 72,
27 .radius = 15,
28 .level = ACTOR_LEVEL_POKEY_MUMMY,
29 .ai = &N(EVS_NpcAI_PokeyMummy),
30 .onHit = &EnemyNpcHit,
31 .onDefeat = &EnemyNpcDefeat,
32};
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