5#error DROPLET_MODEL must be defined for DripVolumes
9API_CALLABLE(N(CheckDripCollisionWithActors)) {
13 f32 xDiff, yDiff, zDiff, temp;
17 script->varTable[2] = 0;
26 if (yDiff > 0.0f && yDiff < actor->size.y && temp < actor->size.x * 0.5f) {
27 script->varTable[2] = 1;
39 if (yDiff > 0.0f && yDiff < actor->size.y && temp < actor->size.x * 0.5f) {
40 script->varTable[2] = 1;
56 if (yDiff > 0.0f && yDiff < actor->size.y && temp < actor->size.x * 0.5f) {
57 script->varTable[2] = 1;
69 if (yDiff > 0.0f && yDiff < part->size.y && temp < part->size.x * 0.5f) {
70 script->varTable[2] = 1;
208 Exec(N(EVS_UpdateDripVolume))
struct ActorPart * partsTable
struct ActorPart * nextPart
@ ACTOR_FLAG_INVISIBLE
Actor is not rendered.
@ ACTOR_PART_FLAG_USE_ABSOLUTE_POSITION
@ ACTOR_PART_FLAG_INVISIBLE
s32 evt_get_variable(Evt *script, Bytecode var)
s32 get_model_list_index_from_tree_index(s32 treeIndex)
struct Model * get_model_from_list_index(s32 listIndex)
ApiStatus EnableModel(Evt *script, b32 isInitialCall)
Enables or disables the given model.
ApiStatus TranslateModel(Evt *script, b32 isInitialCall)
Translates the given model's position.
ApiStatus UpdateLerp(Evt *script, b32 isInitialCall)
ApiStatus ScaleModel(Evt *script, b32 isInitialCall)
Scales the model the given amount along the selected axis.
ApiStatus RandInt(Evt *script, b32 isInitialCall)
ApiStatus MakeLerp(Evt *script, b32 isInitialCall)
ApiStatus CloneModel(Evt *script, b32 isInitialCall)
Clones the given model.
#define ArrayVar(INDEX)
User Word.
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
#define EndChildThread
Marks the end of a child thread block.
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define UseBuf(INT_PTR)
Loads a s32 pointer for use with subsequent EVT_BUF_READ commands.
#define Add(VAR, INT_VALUE)
#define EndLoop
Marks the end of a loop.
#define BufRead4(VAR1, VAR2, VAR3, VAR4)
Consumes the next four s32s from the buffer and stores them in the given variables.
#define Goto(LABEL_ID)
Moves execution to the given label.
#define BufRead1(VAR)
Consumes the next s32 from the buffer and stores it in the given variable.
#define BufRead3(VAR1, VAR2, VAR3)
Consumes the next three s32s from the buffer and stores them in the given variables.
#define Label(LABEL_ID)
Marks this point in the script as a Goto target.
#define MallocArray(SIZE, OUT_PTR_VAR)
Allocates a new array of the given size for use with ArrayVar(INDEX).
#define EndIf
Marks the end of an if statement or an else block.
#define ExecWait(EVT_SOURCE)
Launches a new child thread.
#define UseArray(INT_PTR)
Loads an s32 array pointer into the current thread for use with ArrayVar(INDEX).
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
#define SetGroup(GROUP)
Sets the current thread's group. Group value meanings are currently not known.
#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 Loop(TIMES)
Marks the beginning of a loop.
#define Exec(EVT_SOURCE)
Launches a new thread.
#define Return
Kills the current EVT thread.
#define CLONED_MODEL(idx)
struct Actor * partnerActor
struct Actor * playerActor
struct Actor * enemyActors[24]
BattleStatus gBattleStatus