Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
StoneChompAI.inc.c File Reference

Go to the source code of this file.

Functions

void N StoneChompAI_HopInit (Evt *script, MobileAISettings *aiSettings, EnemyDetectVolume *territory)
 
void N StoneChompAI_ChaseInit (Evt *script, MobileAISettings *aiSettings, EnemyDetectVolume *territory)
 

Function Documentation

◆ StoneChompAI_HopInit()

void N StoneChompAI_HopInit ( Evt * script,
MobileAISettings * aiSettings,
EnemyDetectVolume * territory )

Definition at line 3 of file StoneChompAI.inc.c.

3 {
4 Npc* npc = get_npc_unsafe(script->owner1.enemy->npcID);
5
6 basic_ai_wander_init(script, aiSettings, territory);
7 npc->jumpVel = rand_int(5) + 8.0;
8 npc->jumpScale = 1.5f;
9}
union Evt::@8 owner1
Initially -1.
#define rand_int
void basic_ai_wander_init(Evt *script, MobileAISettings *npcAISettings, EnemyDetectVolume *territory)
Definition 23680.c:567
Npc * get_npc_unsafe(s32 npcID)
Definition npc.c:995
f32 jumpScale
f32 jumpVel

◆ StoneChompAI_ChaseInit()

void N StoneChompAI_ChaseInit ( Evt * script,
MobileAISettings * aiSettings,
EnemyDetectVolume * territory )

Definition at line 11 of file StoneChompAI.inc.c.

11 {
12 Npc* npc = get_npc_unsafe(script->owner1.enemy->npcID);
13
14 basic_ai_chase_init(script, aiSettings, territory);
15 npc->jumpVel = rand_int(5) + 5.0;
16 npc->jumpScale = 1.5f;
17}
void basic_ai_chase_init(Evt *script, MobileAISettings *npcAISettings, EnemyDetectVolume *territory)
Definition 23680.c:769