mirror of
https://github.com/zeldaret/mm.git
synced 2026-07-12 06:22:35 -04:00
Rename many functions, structs, and variables to match the oot decomp. Some things have not been renamed as their respective files have not been decompiled yet.
This commit is contained in:
+23
-23
@@ -18,26 +18,26 @@ s32 nop_800E8EEC(UNK_TYPE4 param_1) {
|
||||
|
||||
void nop_800E8EFC(UNK_TYPE4 param_1) {}
|
||||
|
||||
s32 func_800E8F08(Vector3s* param_1, Vector3s* param_2) {
|
||||
Lib_ScaleMaxMin_s(¶m_1->y, 0, 6, 6200, 100);
|
||||
Lib_ScaleMaxMin_s(¶m_1->x, 0, 6, 6200, 100);
|
||||
Lib_ScaleMaxMin_s(¶m_2->y, 0, 6, 6200, 100);
|
||||
Lib_ScaleMaxMin_s(¶m_2->x, 0, 6, 6200, 100);
|
||||
s32 func_800E8F08(Vec3s* param_1, Vec3s* param_2) {
|
||||
Math_SmoothScaleMaxMinS(¶m_1->y, 0, 6, 6200, 100);
|
||||
Math_SmoothScaleMaxMinS(¶m_1->x, 0, 6, 6200, 100);
|
||||
Math_SmoothScaleMaxMinS(¶m_2->y, 0, 6, 6200, 100);
|
||||
Math_SmoothScaleMaxMinS(¶m_2->x, 0, 6, 6200, 100);
|
||||
return 1;
|
||||
}
|
||||
|
||||
s32 func_800E8FA4(Actor* actor, Vector3f* param_2, Vector3s* param_3, Vector3s* param_4) {
|
||||
s32 func_800E8FA4(Actor* actor, Vec3f* param_2, Vec3s* param_3, Vec3s* param_4) {
|
||||
s16 targetPitch;
|
||||
s16 targetYaw;
|
||||
s16 yawDiffFromTarget;
|
||||
|
||||
targetPitch = Lib_PitchVec3f(&actor->topPosRot.pos,param_2);
|
||||
targetYaw = Lib_YawVec3f(&actor->topPosRot.pos,param_2) - actor->currPosRot.rot.y;
|
||||
targetPitch = Math_Vec3f_Pitch(&actor->topPosRot.pos,param_2);
|
||||
targetYaw = Math_Vec3f_Yaw(&actor->topPosRot.pos,param_2) - actor->currPosRot.rot.y;
|
||||
|
||||
Lib_ScaleMaxMin_s(¶m_3->x, targetPitch, 6, 2000, 1);
|
||||
Math_SmoothScaleMaxMinS(¶m_3->x, targetPitch, 6, 2000, 1);
|
||||
param_3->x = (param_3->x < -6000)? -6000 : ((6000 < param_3->x)? 6000 : param_3->x);
|
||||
|
||||
yawDiffFromTarget = Lib_ScaleMaxMin_s(¶m_3->y, targetYaw, 6, 2000, 1);
|
||||
yawDiffFromTarget = Math_SmoothScaleMaxMinS(¶m_3->y, targetYaw, 6, 2000, 1);
|
||||
param_3->y = (param_3->y < -8000)? -8000 : ((8000 < param_3->y)? 8000 : param_3->y);
|
||||
|
||||
if (yawDiffFromTarget != 0) {
|
||||
@@ -46,23 +46,23 @@ s32 func_800E8FA4(Actor* actor, Vector3f* param_2, Vector3s* param_3, Vector3s*
|
||||
}
|
||||
}
|
||||
|
||||
Lib_ScaleMaxMin_s(¶m_4->y, targetYaw - param_3->y, 4, 2000, 1);
|
||||
Math_SmoothScaleMaxMinS(¶m_4->y, targetYaw - param_3->y, 4, 2000, 1);
|
||||
param_4->y = (param_4->y < -12000)? -12000 : ((12000 < param_4->y)? 12000 : param_4->y);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
s32 func_800E9138(GlobalContext* ctxt, Actor* actor, Vector3s* param_3, Vector3s* param_4, f32 param_5) {
|
||||
s32 func_800E9138(GlobalContext* ctxt, Actor* actor, Vec3s* param_3, Vec3s* param_4, f32 param_5) {
|
||||
s16 sVar3;
|
||||
Actor *player;
|
||||
Vector3f local_14;
|
||||
Vec3f local_14;
|
||||
|
||||
player = (ctxt->actorContext).actorTypeLists[2].head;
|
||||
player = (ctxt->actorCtx).actorList[2].first;
|
||||
actor->topPosRot.pos = actor->currPosRot.pos;
|
||||
actor->topPosRot.pos.y += param_5;
|
||||
|
||||
if (((ctxt->cutsceneContext).state == 0) && (D_801D0D50 == 0)) {
|
||||
sVar3 = actor->yawToLink - actor->drawParams.rot.y;
|
||||
if (((ctxt->csCtx).state == 0) && (D_801D0D50 == 0)) {
|
||||
sVar3 = actor->rotTowardsLinkY - actor->shape.rot.y;
|
||||
// TODO is this shifting because of a missing cast?
|
||||
if (0x42ff < (sVar3 < 0? ((-sVar3 << 0x10) >> 0x10) : ((sVar3 << 0x10) >> 0x10))) {
|
||||
func_800E8F08(param_3,param_4);
|
||||
@@ -70,7 +70,7 @@ s32 func_800E9138(GlobalContext* ctxt, Actor* actor, Vector3s* param_3, Vector3s
|
||||
}
|
||||
}
|
||||
|
||||
if (((ctxt->cutsceneContext).state != 0) || (D_801D0D50 != 0)) {
|
||||
if (((ctxt->csCtx).state != 0) || (D_801D0D50 != 0)) {
|
||||
local_14 = ctxt->view.eye;
|
||||
} else {
|
||||
local_14 = player->topPosRot.pos;
|
||||
@@ -80,16 +80,16 @@ s32 func_800E9138(GlobalContext* ctxt, Actor* actor, Vector3s* param_3, Vector3s
|
||||
|
||||
return 1;
|
||||
}
|
||||
s32 func_800E9250(GlobalContext* ctxt, Actor* actor, Vector3s* param_3, Vector3s* param_4, Vector3f param_5) {
|
||||
s32 func_800E9250(GlobalContext* ctxt, Actor* actor, Vec3s* param_3, Vec3s* param_4, Vec3f param_5) {
|
||||
s16 sVar3;
|
||||
Actor *player;
|
||||
Vector3f local_14;
|
||||
Vec3f local_14;
|
||||
|
||||
player = (ctxt->actorContext).actorTypeLists[2].head;
|
||||
player = (ctxt->actorCtx).actorList[2].first;
|
||||
actor->topPosRot.pos = param_5;
|
||||
|
||||
if (((ctxt->cutsceneContext).state == 0) && (D_801D0D50 == 0)) {
|
||||
sVar3 = actor->yawToLink - actor->drawParams.rot.y;
|
||||
if (((ctxt->csCtx).state == 0) && (D_801D0D50 == 0)) {
|
||||
sVar3 = actor->rotTowardsLinkY - actor->shape.rot.y;
|
||||
// TODO is this shifting because of a missing cast?
|
||||
if (0x42ff < (sVar3 < 0? ((-sVar3 << 0x10) >> 0x10) : ((sVar3 << 0x10) >> 0x10))) {
|
||||
func_800E8F08(param_3,param_4);
|
||||
@@ -97,7 +97,7 @@ s32 func_800E9250(GlobalContext* ctxt, Actor* actor, Vector3s* param_3, Vector3s
|
||||
}
|
||||
}
|
||||
|
||||
if (((ctxt->cutsceneContext).state != 0) || (D_801D0D50 != 0)) {
|
||||
if (((ctxt->csCtx).state != 0) || (D_801D0D50 != 0)) {
|
||||
local_14 = ctxt->view.eye;
|
||||
} else {
|
||||
local_14 = player->topPosRot.pos;
|
||||
|
||||
Reference in New Issue
Block a user