5#define NAMESPACE A(omo_01)
10extern EvtScript N(EVS_UpdateRockingHorse);
12s32 N(RockingHorseModels)[] = {
MODEL_uma };
23API_CALLABLE(N(UpdateRockingHorse)) {
34 script->functionTempPtr[0] = horse;
36 for (i = 0; i == 0; i++, horse++) {
37 horse->
modelID = N(RockingHorseModels)[i];
38 horse->
unk_14 = ((s32*)N(EVS_UpdateRockingHorse))[i];
47 horse = script->functionTempPtr[0];
48 for (i = 0; i == 0; i++, horse++) {
53 offsetY =
SQ(rotZ) / 90.0f;
58 guRotateF(mtxRotate, rotZ, 0.0f, 0.0f, 1.0f);
67 Call(N(UpdateRockingHorse))
88 Exec(N(EVS_UpdateRockingHorse))
100 .shape =
"omo_bt01_shape",
101 .hit =
"omo_bt01_hit",
103 .preBattle = &N(EVS_PreBattle),
104 .postBattle = &N(EVS_PostBattle),
@ MODEL_FLAG_HAS_TRANSFORM
@ MODEL_FLAG_MATRIX_DIRTY
s32 get_model_list_index_from_tree_index(s32 treeIndex)
struct Model * get_model_from_list_index(s32 listIndex)
void * heap_malloc(s32 size)
Matrix4f userTransformMtx
ApiStatus SetSpriteShading(Evt *script, b32 isInitialCall)
ApiStatus RotateModel(Evt *script, b32 isInitialCall)
Rotates the model the given amount on the selected axis.
ApiStatus ClampAngleFloat(Evt *script, b32 isInitialCall)
ApiStatus SetCamBGColor(Evt *script, b32 isInitialCall)
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define EndLoop
Marks the end of a loop.
#define Thread
Marks the start of a thread block.
#define EndThread
Marks the end of a thread block.
#define SetF(VAR, FLOAT_VALUE)
Sets the given variable to a given value, but supports Floats.
#define Wait(NUM_FRAMES)
Blocks for the given number of frames.
#define SubF(VAR, FLOAT_VALUE)
#define Call(FUNC, ARGS...)
Calls a given C EVT API function with any number of arguments.
#define Loop(TIMES)
Marks the beginning of a loop.
#define Exec(EVT_SOURCE)
Launches a new thread.
#define Return
Kills the current EVT thread.