29 0.04, 0.04, 0.08, 0.16, 0.21, 0.4, 0.6, 0.72, 0.84, 0.92, 0.96, 0.96, 1.0,
47 script->functionTemp[0] = 0;
66 if (
script->functionTemp[0] < 12) {
95 script->functionTemp[0] = 0;
115 grid->cells[i + (
j *
grid->numCellsX)] = 0;
122 script->functionTemp[0]++;
BSS s32 PopupMenu_SelectedIndex
s32(* PushBlockFallCallback)(Entity *block, Evt *script)
#define general_heap_malloc
#define npc_raycast_down_sides
#define ASSERT(condition)
EntityBlueprint Entity_PushBlock
@ PUSH_GRID_OUT_OF_BOUNDS
@ ACTION_STATE_PUSHING_BLOCK
Entity * get_entity_by_index(s32 index)
s32 evt_get_variable(Evt *script, Bytecode var)
Evt * get_script_by_index(s32 index)
s32 evt_set_variable(Evt *script, Bytecode var, s32 value)
f32 evt_get_float_variable(Evt *script, Bytecode var)
s32 create_entity(EntityBlueprint *bp,...)
Trigger * bind_trigger_1(EvtScript *script, s32 flags, s32 triggerFlagIndex, s32 triggerVar0, s32 triggerVar1, s32 priority)
f32 PushBlockMovePositions[]
PushBlockGrid * wPushBlockGrids[8]
EvtScript EVS_PushWall_PushBlock
ApiStatus PlaySound(Evt *script, b32 isInitialCall)
ApiStatus GetPlayerActionState(Evt *script, b32 isInitialCall)
ApiStatus FacePlayerTowardPoint(Evt *script, b32 isInitialCall)
ApiStatus SetPlayerActionState(Evt *script, b32 isInitialCall)
ApiStatus DisablePlayerPhysics(Evt *script, b32 isInitialCall)
Disables player physics if disable is TRUE, enables it if FALSE.
#define Ref(sym)
Address/pointer constant.
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
#define IfNe(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR != RVAR.
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define Add(VAR, INT_VALUE)
#define COLLISION_WITH_ENTITY_BIT
#define Goto(LABEL_ID)
Moves execution to the given label.
#define IfLt(LVAR, RVAR)
Marks the beginning of an if statement that only executes if LVAR < RVAR.
#define EVT_ENTITY_ID_BIT
An entity index.
#define Label(LABEL_ID)
Marks this point in the script as a Goto target.
#define EndIf
Marks the end of an if statement or an else block.
#define Thread
Marks the start of a thread block.
#define EndThread
Marks the end of a thread block.
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
#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 Return
Kills the current EVT thread.
CollisionStatus gCollisionStatus
PlayerStatus gPlayerStatus