mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-19 21:03:42 -07:00
Disabled spammy actor info & Removed camera rotation when Idle
This commit is contained in:
parent
f5f85ef4e6
commit
d798910b3d
2 changed files with 7 additions and 3 deletions
|
@ -517,6 +517,7 @@ void func_8002C7BC(TargetContext* targetCtx, Player* player, Actor* actorArg, Gl
|
|||
targetCtx->activeCategory = actorCategory;
|
||||
targetCtx->unk_40 = 1.0f;
|
||||
|
||||
/*
|
||||
if (CVar_GetS32("gBlindMode", 0)) {
|
||||
u16 targetSound;
|
||||
|
||||
|
@ -554,6 +555,7 @@ void func_8002C7BC(TargetContext* targetCtx, Player* player, Actor* actorArg, Gl
|
|||
Audio_PlaySoundGeneral(targetSound, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
if (unkActor == NULL) {
|
||||
|
|
|
@ -1619,16 +1619,18 @@ s32 Camera_Normal1(Camera* camera) {
|
|||
|
||||
if (anim->startSwingTimer <= 0) {
|
||||
eyeAdjustment.pitch = atEyeNextGeo.pitch;
|
||||
eyeAdjustment.yaw =
|
||||
eyeAdjustment.yaw = CVar_GetS32("gBlindMode", 0) != 0 ? atEyeNextGeo.yaw
|
||||
:
|
||||
Camera_LERPCeilS(anim->swingYawTarget, atEyeNextGeo.yaw, 1.0f / camera->yawUpdateRateInv, 0xA);
|
||||
} else if (anim->swing.unk_18 != 0) {
|
||||
eyeAdjustment.yaw =
|
||||
eyeAdjustment.yaw = CVar_GetS32("gBlindMode", 0) != 0 ? atEyeNextGeo.yaw
|
||||
:
|
||||
Camera_LERPCeilS(anim->swing.unk_16, atEyeNextGeo.yaw, 1.0f / camera->yawUpdateRateInv, 0xA);
|
||||
eyeAdjustment.pitch =
|
||||
Camera_LERPCeilS(anim->swing.unk_14, atEyeNextGeo.pitch, 1.0f / camera->yawUpdateRateInv, 0xA);
|
||||
} else {
|
||||
// rotate yaw to follow player.
|
||||
eyeAdjustment.yaw =
|
||||
eyeAdjustment.yaw =
|
||||
Camera_CalcDefaultYaw(camera, atEyeNextGeo.yaw, camera->playerPosRot.rot.y, norm1->unk_14, sp94);
|
||||
eyeAdjustment.pitch =
|
||||
Camera_CalcDefaultPitch(camera, atEyeNextGeo.pitch, norm1->pitchTarget, anim->slopePitchAdj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue