Co-authored-by: HailSanta <Hail2Santa@gmail.com>
This commit is contained in:
HailSanta 2023-03-16 02:59:21 -04:00 committed by GitHub
parent f0145e8541
commit 1c9b62056c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 68 additions and 68 deletions

View File

@ -1023,21 +1023,21 @@ ApiStatus func_802428C8_A2CB08(Evt* script, s32 isInitialCall) {
break;
}
vec01->x = evt_get_float_variable(script, LocalVar(0));
vec01->y = evt_get_float_variable(script, LocalVar(1));
vec01->z = evt_get_float_variable(script, LocalVar(2));
vec01->x = evt_get_float_variable(script, LVar0);
vec01->y = evt_get_float_variable(script, LVar1);
vec01->z = evt_get_float_variable(script, LVar2);
vec2 = &vec01[2];
vec01++;
if (temp_s6 != 2) {
vec01->x = (evt_get_float_variable(script, LocalVar(0)) * temp_f28) + (vec2->x * (1.0f - temp_f28));
vec01->y = (evt_get_float_variable(script, LocalVar(1)) * temp_f28) + (vec2->y * (1.0f - temp_f28)) + sp10;
vec01->z = (evt_get_float_variable(script, LocalVar(2)) * temp_f28) + (vec2->z * (1.0f - temp_f28));
vec01->x = (evt_get_float_variable(script, LVar0) * temp_f28) + (vec2->x * (1.0f - temp_f28));
vec01->y = (evt_get_float_variable(script, LVar1) * temp_f28) + (vec2->y * (1.0f - temp_f28)) + sp10;
vec01->z = (evt_get_float_variable(script, LVar2) * temp_f28) + (vec2->z * (1.0f - temp_f28));
} else {
vec01->x = ((evt_get_float_variable(script, LocalVar(0)) * temp_f28) + (vec2->x * (1.0f - temp_f28))) - 50.0f;
vec01->y = (evt_get_float_variable(script, LocalVar(1)) * temp_f28) + (vec2->y * (1.0f - temp_f28)) + sp10;
vec01->z = ((evt_get_float_variable(script, LocalVar(2)) * temp_f28) + (vec2->z * (1.0f - temp_f28))) - 50.0f;
vec01->x = ((evt_get_float_variable(script, LVar0) * temp_f28) + (vec2->x * (1.0f - temp_f28))) - 50.0f;
vec01->y = (evt_get_float_variable(script, LVar1) * temp_f28) + (vec2->y * (1.0f - temp_f28)) + sp10;
vec01->z = ((evt_get_float_variable(script, LVar2) * temp_f28) + (vec2->z * (1.0f - temp_f28))) - 50.0f;
}
script->varTable[0] = s5;
script->varTablePtr[1] = unkData;

View File

@ -41,8 +41,8 @@ EvtScript N(EVS_Main) = {
EVT_CALL(SetSpriteShading, SHADING_NONE)
EVT_SETUP_CAMERA_ALT_NO_LEAD()
#if VERSION_PAL
EVT_CALL(GetLanguage, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_o110, LocalVar(0))
EVT_CALL(GetLanguage, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_o110, LVar0)
#endif
EVT_SET(GF_MAP_MtRugged, TRUE)
EVT_CALL(MakeNpcs, TRUE, EVT_PTR(N(DefaultNPCs)))

View File

@ -59,8 +59,8 @@ EvtScript N(EVS_Main) = {
EVT_CALL(SetSpriteShading, SHADING_NONE)
EVT_SETUP_CAMERA_NO_LEAD()
#if VERSION_PAL
EVT_CALL(GetLanguage, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_o120, LocalVar(0))
EVT_CALL(GetLanguage, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_o120, LVar0)
#endif
EVT_SET(GF_MAP_YoshisVillage, TRUE)
EVT_SET(AF_JAN02_RaphaelComment, FALSE)

View File

@ -73,8 +73,8 @@ EvtScript N(EVS_Main) = {
EVT_CALL(SetSpriteShading, SHADING_NONE)
EVT_SETUP_CAMERA_NO_LEAD()
#if VERSION_PAL
EVT_CALL(GetLanguage, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_mushroom_kingdom, LocalVar(0))
EVT_CALL(GetLanguage, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_mushroom_kingdom, LVar0)
#endif
EVT_IF_GE(GB_StoryProgress, STORY_CH0_KAMMY_RETURNED_TO_BOWSER)
EVT_SET(GF_MAP_ToadTown, TRUE)

View File

@ -118,8 +118,8 @@ EvtScript N(EVS_Main) = {
EVT_CALL(SetCamEnabled, CAM_DEFAULT, TRUE)
EVT_CALL(SetCamLeadPlayer, CAM_DEFAULT, FALSE)
#if VERSION_PAL
EVT_CALL(GetLanguage, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_k11, LocalVar(0))
EVT_CALL(GetLanguage, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_k11, LVar0)
#endif
EVT_SET(AF_MAC_0E, FALSE)
EVT_SET(AF_MAC_0F, FALSE)

View File

@ -61,8 +61,8 @@ EvtScript N(EVS_Main) = {
EVT_CALL(SetSpriteShading, SHADING_NONE)
EVT_SETUP_CAMERA_NO_LEAD()
#if VERSION_PAL
EVT_CALL(GetLanguage, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_o110, LocalVar(0))
EVT_CALL(GetLanguage, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_o110, LVar0)
#endif
EVT_SET(AF_MAC_20, FALSE)
EVT_SET(AF_MAC_21, FALSE)

View File

@ -88,8 +88,8 @@ EvtScript N(EVS_Main) = {
EVT_CALL(SetSpriteShading, SHADING_NONE)
EVT_SETUP_CAMERA_NO_LEAD()
#if VERSION_PAL
EVT_CALL(GetLanguage, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_o340, LocalVar(0))
EVT_CALL(GetLanguage, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_o340, LVar0)
#endif
EVT_SET(GF_MAP_KoopaVillage, TRUE)
EVT_SET(AF_NOK01_Dialogue_RelaxedKoopa, FALSE)

View File

@ -48,17 +48,17 @@ EvtScript N(EVS_Main) = {
EVT_CALL(SetSpriteShading, SHADING_NONE)
EVT_SETUP_CAMERA_ALT_NO_LEAD()
#if VERSION_PAL
EVT_CALL(GetLanguage, LocalVar(0))
EVT_SWITCH(LocalVar(0))
EVT_IF_GE(LocalVar(0), 2)
EVT_SUB(LocalVar(0), 2)
EVT_CALL(GetLanguage, LVar0)
EVT_SWITCH(LVar0)
EVT_IF_GE(LVar0, 2)
EVT_SUB(LVar0, 2)
EVT_END_IF
EVT_CALL(SetModelTexVariant, MODEL_s, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_a, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_t, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_i, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_o, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_n, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_s, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_a, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_t, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_i, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_o, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_n, LVar0)
#endif
EVT_SET(AF_OMO_05, FALSE)
EVT_SET(GF_MAP_ShyGuysToybox, TRUE)

View File

@ -38,17 +38,17 @@ EvtScript N(EVS_Main) = {
EVT_CALL(SetSpriteShading, SHADING_NONE)
EVT_SETUP_CAMERA_ALT_NO_LEAD()
#if VERSION_PAL
EVT_CALL(GetLanguage, LocalVar(0))
EVT_SWITCH(LocalVar(0))
EVT_IF_GE(LocalVar(0), 2)
EVT_SUB(LocalVar(0), 2)
EVT_CALL(GetLanguage, LVar0)
EVT_SWITCH(LVar0)
EVT_IF_GE(LVar0, 2)
EVT_SUB(LVar0, 2)
EVT_END_IF
EVT_CALL(SetModelTexVariant, MODEL_s, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_a, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_t, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_i, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_o, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_n, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_s, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_a, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_t, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_i, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_o, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_n, LVar0)
#endif
EVT_CALL(MakeNpcs, TRUE, EVT_PTR(N(DefaultNPCs)))
EVT_EXEC_WAIT(N(EVS_MakeEntities))

View File

@ -33,17 +33,17 @@ EvtScript N(EVS_Main) = {
EVT_CALL(SetSpriteShading, SHADING_NONE)
EVT_SETUP_CAMERA_ALT_NO_LEAD()
#if VERSION_PAL
EVT_CALL(GetLanguage, LocalVar(0))
EVT_SWITCH(LocalVar(0))
EVT_IF_GE(LocalVar(0), 2)
EVT_SUB(LocalVar(0), 2)
EVT_CALL(GetLanguage, LVar0)
EVT_SWITCH(LVar0)
EVT_IF_GE(LVar0, 2)
EVT_SUB(LVar0, 2)
EVT_END_IF
EVT_CALL(SetModelTexVariant, MODEL_s, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_a, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_t, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_i, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_o, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_n, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_s, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_a, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_t, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_i, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_o, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_n, LVar0)
#endif
EVT_CALL(MakeNpcs, TRUE, EVT_PTR(N(DefaultNPCs)))
EVT_EXEC_WAIT(N(EVS_MakeEntities))

View File

@ -18,12 +18,12 @@ EvtScript N(EVS_Main) = {
EVT_CALL(SetSpriteShading, SHADING_NONE)
EVT_SETUP_CAMERA_DEFAULT()
#if VERSION_PAL
EVT_CALL(GetLanguage, LocalVar(0))
EVT_IF_EQ(LocalVar(0), 3)
EVT_SET(LocalVar(0), 2)
EVT_CALL(GetLanguage, LVar0)
EVT_IF_EQ(LVar0, 3)
EVT_SET(LVar0, 2)
EVT_END_IF
EVT_CALL(SetModelTexVariant, MODEL_s1, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_s2, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_s1, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_s2, LVar0)
#endif
EVT_IF_EQ(GF_OMO09_SpawnedPeachChoice3, FALSE)
EVT_CALL(MakeNpcs, TRUE, EVT_PTR(N(KammySceneNPCs)))

View File

@ -36,17 +36,17 @@ EvtScript N(EVS_Main) = {
EVT_CALL(SetSpriteShading, SHADING_NONE)
EVT_SETUP_CAMERA_ALT_NO_LEAD()
#if VERSION_PAL
EVT_CALL(GetLanguage, LocalVar(0))
EVT_SWITCH(LocalVar(0))
EVT_IF_GE(LocalVar(0), 2)
EVT_SUB(LocalVar(0), 2)
EVT_CALL(GetLanguage, LVar0)
EVT_SWITCH(LVar0)
EVT_IF_GE(LVar0, 2)
EVT_SUB(LVar0, 2)
EVT_END_IF
EVT_CALL(SetModelTexVariant, MODEL_s, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_a, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_t, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_i, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_o, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_n, LocalVar(0))
EVT_CALL(SetModelTexVariant, MODEL_s, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_a, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_t, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_i, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_o, LVar0)
EVT_CALL(SetModelTexVariant, MODEL_n, LVar0)
#endif
EVT_CALL(MakeNpcs, TRUE, EVT_PTR(N(DefaultNPCs)))
EVT_EXEC_WAIT(N(EVS_MakeEntities))

View File

@ -1117,8 +1117,8 @@ EvtScript N(EVS_Quizmo_QuizMain) = {
EVT_CALL(SetMessageText, EVT_PTR(MessageSingular), 1)
EVT_ELSE
#if VERSION_PAL
EVT_CALL(GetLanguage, LocalVar(0))
EVT_IF_EQ(LocalVar(0), 1)
EVT_CALL(GetLanguage, LVar0)
EVT_IF_EQ(LVar0, 1)
EVT_CALL(SetMessageText, EVT_PTR(MessagePlural_de), 1)
EVT_ELSE
EVT_CALL(SetMessageText, EVT_PTR(MessagePlural), 1)