5#include "sprite/player.h"
7#define NAMESPACE battle_move_earthquake_jump
11API_CALLABLE(N(func_802A10E4_785C04)) {
12 script->varTable[0] = 3;
16s32 N(DifficultyTable)[] = {
17 11, 10, 9, 8, 7, 6, 5, 4
26 Call(ShowActionHud, TRUE)
42 Call(action_command_jump_init)
46 Call(InitTargetIterator)
63 ExecWait(N(EVS_JumpSupport_CalcJumpTime))
69 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_MarioB1_Stomp, ANIM_MarioB1_Stomp)
85 PlayEffect(EFFECT_SMOKE_IMPACT, 0,
LVar0,
LVar1,
LVar2, 72, 8, 0, 30, 0, 0, 0, 0, 0)
86 PlayEffect(EFFECT_SMOKE_IMPACT, 0,
LVar0,
LVar1,
LVar2, 72, 8, 24, 30, 0, 0, 0, 0, 0)
89 Call(InitTargetIterator)
116 ExecWait(N(EVS_JumpSupport_NoFollowUp))
139 Call(CloseActionCommandInfo)
140 Call(SetActionDifficultyTable,
Ref(N(DifficultyTable)))
142 Call(action_command_jump_init)
146 Call(action_command_jump_start,
LVarA, 3)
148 Call(action_command_jump_start,
LVarA, 3)
150 Call(action_command_jump_start,
LVarA, 4)
152 Call(action_command_jump_start,
LVarA, 4)
154 Call(action_command_jump_start,
LVarA, 5)
156 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Fall, ANIM_Mario1_SpinFall)
177 PlayEffect(EFFECT_SMOKE_IMPACT, 0,
LVar0,
LVar1,
LVar2, 72, 8, 0, 30, 0, 0, 0, 0, 0)
178 PlayEffect(EFFECT_SMOKE_IMPACT, 0,
LVar0,
LVar1,
LVar2, 72, 8, 24, 30, 0, 0, 0, 0, 0)
188 Call(N(func_802A10E4_785C04))
192 Call(InitTargetIterator)
238 ExecWait(N(EVS_JumpSupport_Rebound))
241 ExecWait(N(EVS_JumpSupport_NoFollowUp))
247 ExecWait(N(EVS_JumpSupport_Rebound))
260 Call(action_command_jump_init)
264 Call(InitTargetIterator)
277 Call(CancelablePlayerRunToGoal, 0,
LVar0)
283 ExecWait(N(EVS_JumpSupport_CalcJumpTime))
286 Call(action_command_jump_start,
LVarB, 3)
289 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_MarioB1_Stomp, ANIM_MarioB1_Stomp)
305 PlayEffect(EFFECT_SMOKE_IMPACT, 0,
LVar0,
LVar1,
LVar2, 72, 8, 0, 30, 0, 0, 0, 0, 0)
306 PlayEffect(EFFECT_SMOKE_IMPACT, 0,
LVar0,
LVar1,
LVar2, 72, 8, 24, 30, 0, 0, 0, 0, 0)
309 Call(InitTargetIterator)
336 ExecWait(N(EVS_JumpSupport_NoFollowUp))
359 Call(CloseActionCommandInfo)
360 Call(SetActionDifficultyTable,
Ref(N(DifficultyTable)))
362 Call(action_command_jump_init)
366 Call(action_command_jump_start,
LVarA, 3)
368 Call(action_command_jump_start,
LVarA, 3)
370 Call(action_command_jump_start,
LVarA, 4)
372 Call(action_command_jump_start,
LVarA, 4)
374 Call(action_command_jump_start,
LVarA, 5)
377 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Sit, ANIM_Mario1_SpinJump)
403 PlayEffect(EFFECT_SMOKE_IMPACT, 0,
LVar0,
LVar1,
LVar2, 72, 8, 0, 30, 0, 0, 0, 0, 0)
404 PlayEffect(EFFECT_SMOKE_IMPACT, 0,
LVar0,
LVar1,
LVar2, 72, 8, 24, 30, 0, 0, 0, 0, 0)
414 Call(N(func_802A10E4_785C04))
418 Call(InitTargetIterator)
464 ExecWait(N(EVS_JumpSupport_Rebound))
467 ExecWait(N(EVS_JumpSupport_NoFollowUp))
473 ExecWait(N(EVS_JumpSupport_Rebound))
486 Call(action_command_jump_init)
490 Call(InitTargetIterator)
503 Call(CancelablePlayerRunToGoal, 0,
LVar0)
509 ExecWait(N(EVS_JumpSupport_CalcJumpTime))
512 Call(action_command_jump_start,
LVarB, 3)
515 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_MarioB1_Stomp, ANIM_MarioB1_Stomp)
531 PlayEffect(EFFECT_SMOKE_IMPACT, 0,
LVar0,
LVar1,
LVar2, 72, 8, 0, 30, 0, 0, 0, 0, 0)
532 PlayEffect(EFFECT_SMOKE_IMPACT, 0,
LVar0,
LVar1,
LVar2, 72, 8, 24, 30, 0, 0, 0, 0, 0)
535 Call(InitTargetIterator)
562 ExecWait(N(EVS_JumpSupport_NoFollowUp))
585 Call(CloseActionCommandInfo)
586 Call(SetActionDifficultyTable,
Ref(N(DifficultyTable)))
588 Call(action_command_jump_init)
592 Call(action_command_jump_start,
LVarA, 3)
594 Call(action_command_jump_start,
LVarA, 3)
596 Call(action_command_jump_start,
LVarA, 4)
598 Call(action_command_jump_start,
LVarA, 4)
600 Call(action_command_jump_start,
LVarA, 5)
604 Call(SetJumpAnimations,
ACTOR_PLAYER, 0, ANIM_Mario1_Jump, ANIM_Mario1_Jump, ANIM_Mario1_SpinFall)
625 PlayEffect(EFFECT_SMOKE_IMPACT, 0,
LVar0,
LVar1,
LVar2, 72, 8, 0, 30, 0, 0, 0, 0, 0)
626 PlayEffect(EFFECT_SMOKE_IMPACT, 0,
LVar0,
LVar1,
LVar2, 72, 8, 24, 30, 0, 0, 0, 0, 0)
636 Call(N(func_802A10E4_785C04))
640 Call(InitTargetIterator)
686 ExecWait(N(EVS_JumpSupport_Rebound))
689 ExecWait(N(EVS_JumpSupport_NoFollowUp))
695 ExecWait(N(EVS_JumpSupport_Rebound))
@ BS_FLAGS1_TRIGGER_EVENTS
@ BS_FLAGS1_INCLUDE_POWER_UPS
@ HIT_RESULT_NICE_NO_DAMAGE
@ BTL_CAM_PLAYER_PRE_ULTRA_JUMP_FINISH
@ BTL_CAM_PLAYER_PRE_JUMP_FINISH
@ BTL_CAM_PLAYER_JUMP_FINISH
@ BTL_CAM_PLAYER_JUMP_MIDAIR
@ BTL_CAM_PLAYER_ATTACK_APPROACH
@ DAMAGE_TYPE_IGNORE_DEFENSE
@ DAMAGE_TYPE_MULTIPLE_POPUPS
ApiStatus ShakeCam(Evt *script, b32 isInitialCall)
#define Else
Marks the end of an if statement and the start of the else block.
#define Switch(LVAR)
Marks the start of a switch statement.
#define Ref(sym)
Address/pointer constant.
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
#define CaseEq(RVAR)
Marks the start of a switch case that executes only if LVAR == RVAR. It also marks the end of any pre...
#define EndChildThread
Marks the end of a child thread block.
#define Sub(VAR, INT_VALUE)
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define Add(VAR, INT_VALUE)
#define EndCaseGroup
Marks the end of a switch case group (CaseOrEq and/or CaseAndEq), stopping fallthrough.
#define Goto(LABEL_ID)
Moves execution to the given label.
#define IfGt(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR <= RVAR.
#define IfLt(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR < RVAR.
#define Label(LABEL_ID)
Marks this point in the script as a Goto target.
#define CaseOrEq(RVAR)
Marks the start of a switch case that executes only if LVAR == RVAR.
#define EndIf
Marks the end of an if statement or an else block.
#define CaseDefault
Marks the start of a switch case that executes unconditionally. It also marks the end of any previous...
#define ExecWait(EVT_SOURCE)
Launches a new child thread.
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
#define PlayEffect(args...)
#define EndSwitch
Marks the end of a switch statement and any case.
#define IfEq(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR == RVAR.
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
#define ChildThread
Marks the start of a child thread block.
#define CaseGt(RVAR)
Marks the start of a switch case that executes only if LVAR <= RVAR. It also marks the end of any pre...
#define Return
Kills the current EVT thread.