Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
KoopaTroopa_Patrol.inc.c
Go to the documentation of this file.
1#include "KoopaTroopa.h"
2
4
5MobileAISettings N(AISettings_KoopaTroopa_Patrol) = {
6 .moveSpeed = 1.5f,
7 .moveTime = 25,
8 .waitTime = 20,
9 .alertRadius = 70.0f,
10 .alertOffsetDist = 50.0f,
11 .playerSearchInterval = 10,
12 .chaseSpeed = 7.0f,
13 .chaseRadius = 80.0f,
14 .chaseOffsetDist = 60.0f,
15 .unk_AI_2C = 1,
16};
17
18EvtScript N(EVS_NpcAI_KoopaTroopa_Patrol) = {
19 Call(SetSelfVar, 2, 8)
20 Call(SetSelfVar, 3, 12)
21 Call(SetSelfVar, 5, 10)
22 Call(N(KoopaPatrolAI_Main), Ref(N(AISettings_KoopaTroopa_Patrol)))
23 Return
24 End
25};
26
27NpcSettings N(NpcSettings_KoopaTroopa_Patrol) = {
28 .height = 35,
29 .radius = 24,
30 .level = ACTOR_LEVEL_KOOPA_TROOPA,
31 .ai = &N(EVS_NpcAI_KoopaTroopa_Patrol),
32 .onHit = &EnemyNpcHit,
33 .onDefeat = &EnemyNpcDefeat,
34};
Bytecode EvtScript[]
s16 height
Definition npc.h:145
EvtScript EnemyNpcDefeat
Definition encounter.c:158
EvtScript EnemyNpcHit
Definition encounter.c:131
ApiStatus SetSelfVar(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