Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
TubbaBlubba_Patrol.inc.c
Go to the documentation of this file.
1#include "common.h"
2#include "TubbaBlubba.h"
3
5
6MobileAISettings N(AISettings_Tubba_Patrol) = {
7 .moveSpeed = 4.5f,
8 .alertRadius = 170.0f,
9 .alertOffsetDist = 90.0f,
10 .playerSearchInterval = 1,
11 .chaseSpeed = 3.9f,
12 .chaseTurnRate = 180,
13 .chaseUpdateInterval = 2,
14 .chaseRadius = 170.0f,
15 .chaseOffsetDist = 90.0f,
16 .unk_AI_2C = 1,
17};
18
19EvtScript N(EVS_NpcAI_Tubba_Patrol) = {
20 Call(N(PatrolNoAttackAI_Main), Ref(N(AISettings_Tubba_Patrol)))
21 Return
22 End
23};
24
25NpcSettings N(NpcSettings_TubbaBlubba_Patrol) = {
26 .height = 90,
27 .radius = 65,
28 .level = ACTOR_LEVEL_CLUBBA,
29 .ai = &N(EVS_NpcAI_Tubba_Patrol),
30 .onHit = &EnemyNpcHit,
31 .onDefeat = &EnemyNpcDefeat,
32};
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