Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
Fuzzy_Wander.inc.c
Go to the documentation of this file.
1#include "Fuzzy.h"
2
4
5MobileAISettings N(AISettings_Fuzzy_Wander) = {
6 .moveSpeed = 2.0f,
7 .moveTime = 30,
8 .waitTime = 30,
9 .alertRadius = 100.0f,
10 .playerSearchInterval = 10,
11 .chaseSpeed = 4.5f,
12 .chaseTurnRate = 70,
13 .chaseUpdateInterval = 10,
14 .chaseRadius = 200.0f,
15 .unk_AI_2C = 1,
16};
17
18EvtScript N(EVS_NpcAI_Fuzzy_Wander) = {
20 Call(N(HoppingAI_Main), Ref(N(AISettings_Fuzzy_Wander)), 0)
21 Return
22 End
23};
24
25NpcSettings N(NpcSettings_Fuzzy_Wander) = {
26 .height = 20,
27 .radius = 22,
28 .level = ACTOR_LEVEL_FUZZY,
29 .ai = &N(EVS_NpcAI_Fuzzy_Wander),
30 .onHit = &EnemyNpcHit,
31 .onDefeat = &EnemyNpcDefeat,
32};
Bytecode EvtScript[]
@ NPC_SELF
Definition enums.h:2526
@ NPC_FLAG_IGNORE_WORLD_COLLISION
Definition enums.h:3004
s16 height
Definition npc.h:145
EvtScript EnemyNpcDefeat
Definition encounter.c:158
EvtScript EnemyNpcHit
Definition encounter.c:131
ApiStatus SetNpcFlagBits(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