4#define NAMESPACE A(hos_01)
6u16 N(StarPhaseAngles)[16] = {};
18 for (i = 0; i < numVertices; i++) {
19 Vtx* vtx = &copiedVertices[i];
20 s16 temp1 = (sins(N(StarPhaseAngles)[index] * (i % 3 + 1) + i) + 0x8000) / 2;
21 s32 temp2 = temp1 * 155;
22 vtx->v.cn[0] = temp2 / 0x8000 + 100;
23 vtx->v.cn[1] = temp2 / 0x8000 + 100;
25 temp3 = sins(N(StarPhaseAngles)[index] / 0x8000 * (((i / 2) % 3 + 1) << 15) + N(StarPhaseAngles)[index] / 0x4000 * 0x8000 + i) + 0x8000;
26 vtx->v.cn[2] = vtx->v.cn[0] * temp3 / 0x10000;
43 for (i = 0; i < numVertices; i++) {
44 u8* colors = copiedVertices[i].v.cn;
45 s16 temp1 = (sins(N(StarPhaseAngles)[index] * (i % 3 + 1) + i) + 0x8000) / 2;
46 colors[0] = temp1 * 155 / 0x8000 + 48.62745098039216;
47 colors[1] = temp1 * 155 / 0x8000 + 89.41176470588236;
49 temp3 = sins(N(StarPhaseAngles)[index] / 0x8000 * (((i / 2) % 3 + 1) << 15) + N(StarPhaseAngles)[index] / 0x4000 * 0x8000 + i) + 0x8000;
50 colors[2] = colors[0] * temp3 / 0x10000 + 99.6078431372549;
67 for (i = 0; i < numVertices; i++) {
68 u8* colors = copiedVertices[i].v.cn;
69 s16 temp1 = (sins(N(StarPhaseAngles)[index] * (i % 3 + 1) + i) + 0x8000) / 2;
70 colors[0] = temp1 * 155 / 0x8000 + 67.45098039215686;
71 colors[1] = temp1 * 155 / 0x8000 + 100.0;
73 temp3 = sins(N(StarPhaseAngles)[index] / 0x8000 * (((i / 2) % 3 + 1) << 15) + N(StarPhaseAngles)[index] / 0x4000 * 0x8000 + i) + 0x8000;
74 colors[2] = colors[0] * temp3 / 0x10000 + 59.21568627450981;
91 for (i = 0; i < numVertices; i++) {
92 u8* colors = copiedVertices[i].v.cn;
93 s16 temp1 = (sins(N(StarPhaseAngles)[index] * (i % 3 + 1) + i) + 0x8000) / 2;
94 colors[0] = temp1 * 155 / 0x8000 + 100.0;
95 colors[1] = temp1 * 155 / 0x8000 + 80.3921568627451;
97 temp3 = sins(N(StarPhaseAngles)[index] / 0x8000 * (((i / 2) % 3 + 1) << 15) + N(StarPhaseAngles)[index] / 0x4000 * 0x8000 + i) + 0x8000;
98 colors[2] = colors[0] * temp3 / 0x10000 + 96.07843137254902;
254s32 N(ForegroundModels)[] = {
260 .texture =
"hos_tex",
261 .shape =
"hos_bt01_shape",
262 .hit =
"hos_bt01_hit",
264 .preBattle = &N(EVS_PreBattle),
265 .postBattle = &N(EVS_PostBattle),
266 .foregroundModelList = N(ForegroundModels),
@ MODEL_FLAG_HAS_LOCAL_VERTEX_COPY
Gfx * mdl_get_copied_gfx(s32 copyIndex)
void mdl_get_copied_vertices(s32 copyIndex, Vtx **firstVertex, Vtx **copiedVertices, s32 *numCopied)
void N build_gfx_green_stars(s32 index)
void N build_gfx_blue_stars(s32 index)
void N build_gfx_pink_stars(s32 index)
void N build_gfx_yellow_stars(s32 index)
ApiStatus SetCustomGfxBuilders(Evt *script, b32 isInitialCall)
ApiStatus SetModelCustomGfx(Evt *script, b32 isInitialCall)
ApiStatus SetSpriteShading(Evt *script, b32 isInitialCall)
ApiStatus TranslateModel(Evt *script, b32 isInitialCall)
Translates the given model's position.
ApiStatus UpdateLerp(Evt *script, b32 isInitialCall)
ApiStatus SetTexPanOffset(Evt *script, b32 isInitialCall)
Sets offsets for texture panners.
ApiStatus SetModelFlags(Evt *script, b32 isInitialCall)
Sets flags for models.
ApiStatus MakeLerp(Evt *script, b32 isInitialCall)
ApiStatus MakeLocalVertexCopy(Evt *script, b32 isInitialCall)
ApiStatus SetTexPanner(Evt *script, b32 isInitialCall)
Sets a model's pannerID and sets the texture pan flag.
#define Ref(sym)
Address/pointer constant.
#define Set(VAR, INT_VALUE)
Sets the given variable to a given value casted to an integer.
#define End
Signals the end of EVT script data. A script missing this will likely crash on load.
#define Add(VAR, INT_VALUE)
#define EndLoop
Marks the end of a loop.
#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 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 Loop(TIMES)
Marks the beginning of a loop.
#define Return
Kills the current EVT thread.
#define STAGE_MODEL_LIST_END