Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
DarkTroopa_Wander.inc.c
Go to the documentation of this file.
1#include "common.h"
2#include "DarkTroopa.h"
3
5
6MobileAISettings N(AISettings_DarkTroopa_Wander) = {
7 .moveSpeed = 2.0f,
8 .moveTime = 60,
9 .waitTime = 5,
10 .alertRadius = 80.0f,
11 .alertOffsetDist = 60.0f,
12 .playerSearchInterval = 3,
13 .chaseSpeed = 9.0f,
14 .chaseRadius = 90.0f,
15 .chaseOffsetDist = 70.0f,
16 .unk_AI_2C = 1,
17};
18
19EvtScript N(EVS_NpcAI_DarkTroopa_Wander) = {
20 Call(SetSelfVar, 2, 6)
21 Call(SetSelfVar, 3, 4)
22 Call(SetSelfVar, 5, 13)
23 Call(SetSelfVar, 7, 1)
24 Call(N(TackleAI_Main), Ref(N(AISettings_DarkTroopa_Wander)))
25 Return
26 End
27};
28
29NpcSettings N(NpcSettings_DarkTroopa_Wander) = {
30 .height = 35,
31 .radius = 24,
32 .level = ACTOR_LEVEL_DARK_KOOPA,
33 .ai = &N(EVS_NpcAI_DarkTroopa_Wander),
34 .onHit = &EnemyNpcHit,
35 .onDefeat = &EnemyNpcDefeat,
36};
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