mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-21 23:58:51 -05:00
Fix camera mode not following boomerang with first person rang (#4716)
This commit is contained in:
parent
380d4c66f8
commit
fd8bd31507
@ -11496,13 +11496,7 @@ void Player_UpdateCamAndSeqModes(PlayState* play, Player* this) {
|
|||||||
camMode = CAM_MODE_TALK;
|
camMode = CAM_MODE_TALK;
|
||||||
} else if (this->stateFlags1 & PLAYER_STATE1_FRIENDLY_ACTOR_FOCUS) {
|
} else if (this->stateFlags1 & PLAYER_STATE1_FRIENDLY_ACTOR_FOCUS) {
|
||||||
if (this->stateFlags1 & PLAYER_STATE1_BOOMERANG_THROWN) {
|
if (this->stateFlags1 & PLAYER_STATE1_BOOMERANG_THROWN) {
|
||||||
// #region SOH [Enhancement]
|
camMode = CAM_MODE_FOLLOWBOOMERANG;
|
||||||
if (CVarGetInteger(CVAR_ENHANCEMENT("BoomerangFirstPerson"), 0)) {
|
|
||||||
camMode = CAM_MODE_TARGET;
|
|
||||||
// #endregion
|
|
||||||
} else {
|
|
||||||
camMode = CAM_MODE_FOLLOWBOOMERANG;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
camMode = CAM_MODE_FOLLOWTARGET;
|
camMode = CAM_MODE_FOLLOWTARGET;
|
||||||
}
|
}
|
||||||
@ -11515,7 +11509,13 @@ void Player_UpdateCamAndSeqModes(PlayState* play, Player* this) {
|
|||||||
} else if (this->stateFlags1 & PLAYER_STATE1_BOOMERANG_THROWN) {
|
} else if (this->stateFlags1 & PLAYER_STATE1_BOOMERANG_THROWN) {
|
||||||
// #region SOH [Enhancement]
|
// #region SOH [Enhancement]
|
||||||
if (CVarGetInteger(CVAR_ENHANCEMENT("BoomerangFirstPerson"), 0)) {
|
if (CVarGetInteger(CVAR_ENHANCEMENT("BoomerangFirstPerson"), 0)) {
|
||||||
camMode = CAM_MODE_TARGET;
|
// Avoid camera jumps by switching to normal cam to exit the first person camera,
|
||||||
|
// before following the boomerang
|
||||||
|
if (Play_GetCamera(play, 0)->mode == CAM_MODE_FIRSTPERSON) {
|
||||||
|
camMode = CAM_MODE_NORMAL;
|
||||||
|
} else {
|
||||||
|
camMode = CAM_MODE_FOLLOWBOOMERANG;
|
||||||
|
}
|
||||||
// #endregion
|
// #endregion
|
||||||
} else {
|
} else {
|
||||||
camMode = CAM_MODE_FOLLOWBOOMERANG;
|
camMode = CAM_MODE_FOLLOWBOOMERANG;
|
||||||
|
Loading…
Reference in New Issue
Block a user