Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
ShyGuy_Wander.inc.c
Go to the documentation of this file.
1#include "ShyGuy.h"
2
4
5MobileAISettings N(AISettings_ShyGuy_Wander) = {
6 .moveSpeed = 2.0f,
7 .moveTime = 60,
8 .waitTime = 15,
9 .alertRadius = 100.0f,
10 .alertOffsetDist = 30.0f,
11 .playerSearchInterval = 4,
12 .chaseSpeed = 4.0f,
13 .chaseTurnRate = 6,
14 .chaseUpdateInterval = 1,
15 .chaseRadius = 140.0f,
16 .chaseOffsetDist = 30.0f,
17 .unk_AI_2C = 1,
18};
19
20EvtScript N(EVS_NpcAI_ShyGuy_Wander) = {
21 Call(N(ShyGuyWanderAI_Main), Ref(N(AISettings_ShyGuy_Wander)))
22 Return
23 End
24};
25
26NpcSettings N(NpcSettings_ShyGuy_Wander) = {
27 .height = 23,
28 .radius = 22,
29 .level = ACTOR_LEVEL_SHY_GUY,
30 .ai = &N(EVS_NpcAI_ShyGuy_Wander),
31 .onHit = &EnemyNpcHit,
32 .onDefeat = &EnemyNpcDefeat,
33 .actionFlags = AI_ACTION_JUMP_WHEN_SEE_PLAYER,
34};
Bytecode EvtScript[]
@ AI_ACTION_JUMP_WHEN_SEE_PLAYER
Definition enums.h:4612
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