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

Go to the source code of this file.

Functions

void N init (Npc *partner)
 
void N try_cancel_tweester (Npc *goompa)
 

Variables

EvtScript EVS_WorldGoompa_TakeOut
 
EvtScript EVS_WorldGoompa_Update
 
EvtScript EVS_WorldGoompa_UseAbility
 
EvtScript EVS_WorldGoompa_PutAway
 

Function Documentation

◆ init()

void N init ( Npc * partner)

Definition at line 7 of file goompa.c.

7 {
8 partner->collisionHeight = 24;
9 partner->collisionDiameter = 20;
10}
s16 collisionDiameter
s16 collisionHeight

◆ try_cancel_tweester()

void N try_cancel_tweester ( Npc * goompa)

Definition at line 123 of file goompa.c.

123 {
124 if (TweesterTouchingPartner != NULL) {
126 goompa->flags = N(TweesterPhysicsPtr)->prevFlags;
127 N(TweesterPhysicsPtr)->state = TWEESTER_PARTNER_INIT;
129 }
130}
@ TWEESTER_PARTNER_INIT
Definition enums.h:2475
void partner_clear_player_tracking(Npc *partner)
Definition partners.c:2436
s32 flags
Entity * TweesterTouchingPartner
Definition 7B440.c:5

Variable Documentation

◆ EVS_WorldGoompa_TakeOut

EvtScript EVS_WorldGoompa_TakeOut
Initial value:
= {
Call(N(TakeOut))
}
#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

Definition at line 26 of file goompa.c.

26 {
27 Call(N(TakeOut))
28 Return
29 End
30};

◆ EVS_WorldGoompa_Update

EvtScript EVS_WorldGoompa_Update
Initial value:
= {
Call(N(Update))
}

Definition at line 117 of file goompa.c.

117 {
118 Call(N(Update))
119 Return
120 End
121};

◆ EVS_WorldGoompa_UseAbility

EvtScript EVS_WorldGoompa_UseAbility
Initial value:
= {
Call(N(UseAbility))
}

Definition at line 136 of file goompa.c.

136 {
137 Call(N(UseAbility))
138 Return
139 End
140};

◆ EVS_WorldGoompa_PutAway

EvtScript EVS_WorldGoompa_PutAway
Initial value:
= {
Call(N(PutAway))
}

Definition at line 156 of file goompa.c.

156 {
157 Call(N(PutAway))
158 Return
159 End
160};