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

Go to the source code of this file.

Macros

#define EVT_SPIRIT_ADJUST_CAM(pitch)
 

Macro Definition Documentation

◆ EVT_SPIRIT_ADJUST_CAM

#define EVT_SPIRIT_ADJUST_CAM ( pitch)
Value:
Sub(LVar1, 100) \
IfNe(pitch, 10000) \
Call(SetCamPitch, CAM_DEFAULT, LVar2, pitch) \
@ CAM_DEFAULT
Definition enums.h:1800
ApiStatus SetCamPitch(Evt *script, b32 isInitialCall)
ApiStatus GetCamPitch(Evt *script, b32 isInitialCall)
ApiStatus SetCamDistance(Evt *script, b32 isInitialCall)
ApiStatus GetCamDistance(Evt *script, b32 isInitialCall)
#define EndIf
Marks the end of an if statement or an else block.
Definition macros.h:298
#define LVar2
Definition macros.h:150
#define LVar1
Definition macros.h:149
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
Definition macros.h:576
#define LVar3
Definition macros.h:151

Definition at line 10 of file StarSpiritEffectFunc.inc.c.

10#define EVT_SPIRIT_ADJUST_CAM(pitch) \
11 Call(GetCamDistance, CAM_DEFAULT, LVar1) \
12 Sub(LVar1, 100) \
13 Call(SetCamDistance, CAM_DEFAULT, LVar1) \
14 IfNe(pitch, 10000) \
15 Call(GetCamPitch, CAM_DEFAULT, LVar2, LVar3) \
16 Call(SetCamPitch, CAM_DEFAULT, LVar2, pitch) \
17 EndIf