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

Go to the source code of this file.

Functions

void exec_ShakeCam1 (s32 camID, s32 mode, s32 duration)
 
void exec_ShakeCamX (s32 camID, s32 mode, s32 duration, f32 magnitude)
 

Variables

EvtScript ShakeCam1
 
EvtScript ShakeCamX
 

Function Documentation

◆ exec_ShakeCam1()

void exec_ShakeCam1 ( s32 camID,
s32 mode,
s32 duration )

Definition at line 365 of file cam_api.c.

365 {
366 Evt* script;
367
369 script->varTable[0] = camID;
370 script->varTable[1] = mode;
371 script->varTable[2] = duration;
372}
EvtScript ShakeCam1
Definition cam_api.c:3
@ EVT_PRIORITY_1
Definition evt.h:152
@ EVT_GROUP_SHAKE_CAM
Definition evt.h:146
Evt * start_script_in_group(EvtScript *source, u8 priority, u8 initialState, u8 groupFlags)

Referenced by action_update_spin_jump(), action_update_tornado_jump(), and get_overriding_player_anim().

◆ exec_ShakeCamX()

void exec_ShakeCamX ( s32 camID,
s32 mode,
s32 duration,
f32 magnitude )

Definition at line 374 of file cam_api.c.

374 {
375 Evt* script;
376
378 evt_set_variable(script, LVar0, camID);
379 evt_set_variable(script, LVar1, mode);
380 evt_set_variable(script, LVar2, duration);
381 evt_set_float_variable(script, LVar3, magnitude);
382}
EvtScript ShakeCamX
Definition cam_api.c:10
f32 evt_set_float_variable(Evt *script, Bytecode var, f32 value)
Definition evt.c:1977
s32 evt_set_variable(Evt *script, Bytecode var, s32 value)
Definition evt.c:1847
#define LVar2
Definition macros.h:150
#define LVar1
Definition macros.h:149
#define LVar3
Definition macros.h:151
#define LVar0
Definition macros.h:148

Referenced by action_hammer_play_hit_fx(), action_update_hit_lava(), and entity_HiddenPanel_flip_over().

Variable Documentation

◆ ShakeCam1

EvtScript ShakeCam1
Initial value:
= {
}
@ EVT_GROUP_NEVER_PAUSE
Definition evt.h:142
ApiStatus ShakeCam(Evt *script, b32 isInitialCall)
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
Definition macros.h:213
#define Float(DOUBLE)
Definition macros.h:51
#define SetGroup(GROUP)
Sets the current thread's group. Group value meanings are currently not known.
Definition macros.h:519
#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 3 of file cam_api.c.

Referenced by exec_ShakeCam1().

◆ ShakeCamX

EvtScript ShakeCamX
Initial value:

Definition at line 10 of file cam_api.c.

Referenced by exec_ShakeCamX().