Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
Duplighost_Patrol.inc.c
Go to the documentation of this file.
1#include "Duplighost.h"
2
4
5MobileAISettings N(AISettings_Duplighost_Patrol) = {
6 .moveSpeed = 2.0f,
7 .alertRadius = 100.0f,
8 .playerSearchInterval = 4,
9 .chaseSpeed = 3.5f,
10 .chaseTurnRate = 30,
11 .chaseUpdateInterval = 3,
12 .chaseRadius = 150.0f,
13 .unk_AI_2C = 1,
14};
15
16EvtScript N(EVS_NpcAI_Duplighost_Patrol) = {
17 Call(N(PatrolNoAttackAI_Main), Ref(N(AISettings_Duplighost_Patrol)))
18 Return
19 End
20};
21
22NpcSettings N(NpcSettings_Duplighost_Patrol) = {
23 .height = 30,
24 .radius = 30,
25 .level = ACTOR_LEVEL_DUPLIGHOST,
26 .ai = &N(EVS_NpcAI_Duplighost_Patrol),
27 .onHit = &EnemyNpcHit,
28 .onDefeat = &EnemyNpcDefeat,
29};
Bytecode EvtScript[]
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