Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
ShyGuy_AvoidPlayer.inc.c
Go to the documentation of this file.
1#include "ShyGuy.h"
2
4
5MobileAISettings N(AISettings_ShyGuy_AvoidPlayer) = {
6 .moveSpeed = 2.5f,
7 .moveTime = 50,
8 .waitTime = 15,
9 .alertRadius = 100.0f,
10 .playerSearchInterval = 3,
11 .chaseSpeed = 3.9f,
12 .chaseTurnRate = 20,
13 .chaseUpdateInterval = 1,
14 .chaseRadius = 180.0f,
15 .unk_AI_2C = 1,
16};
17
18EvtScript N(EVS_NpcAI_ShyGuy_AvoidPlayer) = {
19 Call(N(AvoidPlayerAI_Main), Ref(N(AISettings_ShyGuy_AvoidPlayer)))
20 Return
21 End
22};
23
24NpcSettings N(NpcSettings_ShyGuy_AvoidPlayer) = {
25 .height = 23,
26 .radius = 22,
27 .level = ACTOR_LEVEL_SHY_GUY,
28 .ai = &N(EVS_NpcAI_ShyGuy_AvoidPlayer),
29 .onHit = &EnemyNpcHit,
30 .onDefeat = &EnemyNpcDefeat,
31 .actionFlags = AI_ACTION_JUMP_WHEN_SEE_PLAYER,
32};
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