Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
ForestFuzzy_Wander.inc.c
Go to the documentation of this file.
1#include "ForestFuzzy.h"
2
4
5MobileAISettings N(AISettings_ForestFuzzy_Wander) = {
6 .moveSpeed = 1.0f,
7 .moveTime = 30,
8 .waitTime = 10,
9 .alertRadius = 120.0f,
10 .playerSearchInterval = 5,
11 .chaseSpeed = 4.5f,
12 .chaseTurnRate = 90,
13 .chaseUpdateInterval = 5,
14 .chaseRadius = 160.0f,
15 .unk_AI_2C = 1,
16};
17
18EvtScript N(EVS_NpcAI_ForestFuzzy_Wander) = {
20 Call(N(HoppingAI_Main), Ref(N(AISettings_ForestFuzzy_Wander)), 1)
21 Return
22 End
23};
24
25NpcSettings N(NpcSettings_ForestFuzzy_Wander) = {
26 .height = 20,
27 .radius = 22,
28 .level = ACTOR_LEVEL_FOREST_FUZZY,
29 .ai = &N(EVS_NpcAI_ForestFuzzy_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