Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
ShyGuy_Guard.inc.c
Go to the documentation of this file.
1#include "ShyGuy.h"
2
4
5GuardAISettings N(AISettings_ShyGuy_Guard) = {
6 .alertRadius = 100.0f,
7 .alertOffsetDist = 30.0f,
8 .playerSearchInterval = 4,
9 .chaseSpeed = 4.0f,
10 .chaseTurnRate = 6,
11 .chaseUpdateInterval = 1,
12 .chaseRadius = 160.0f,
13 .chaseOffsetDist = 50.0f,
14 .unk_AI_20 = 1,
15};
16
17EvtScript N(EVS_NpcAI_ShyGuy_Guard) = {
18 Call(N(GuardAI_Main), Ref(N(AISettings_ShyGuy_Guard)))
19 Return
20 End
21};
22
23NpcSettings N(NpcSettings_ShyGuy_Guard) = {
24 .height = 23,
25 .radius = 22,
26 .level = ACTOR_LEVEL_SHY_GUY,
27 .ai = &N(EVS_NpcAI_ShyGuy_Guard),
28 .onHit = &EnemyNpcHit,
29 .onDefeat = &EnemyNpcDefeat,
30 .actionFlags = AI_ACTION_JUMP_WHEN_SEE_PLAYER,
31};
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