Skip to content

Commit

Permalink
Camera shot progression is now reset when PC_Hero is shown, to mimic …
Browse files Browse the repository at this point in the history
…original camera behaviour more closely
  • Loading branch information
HunterwolfAT committed Jul 23, 2018
1 parent e138596 commit bb73b06
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/logic/CameraController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,21 @@ void Logic::CameraController::nextDialogueShot() {
}
} else {
// Rule: A close-up is the only possible option after a neutral shot
if (m_DialogueShotType == EDialogueShotType::Neutral && rand() % 4 == 0)
if (m_DialogueShotType == EDialogueShotType::Neutral && rand() % 4 == 0) {
nextShot = EDialogueShotType::CloseUp;
// Rule: No shot should come after a close-up
else if (m_DialogueShotType != EDialogueShotType::CloseUp)
} else if (m_DialogueShotType != EDialogueShotType::CloseUp) {
nextShot = (EDialogueShotType) (rand() % 4);
}
}

m_DialogueShotType = nextShot;
m_CameraSettings.dialogueCameraSettings.dialogueShotCounter++;

if (playerTalking) {
resetCameraProgression();
} else {
m_CameraSettings.dialogueCameraSettings.dialogueShotCounter++;
}
}

void Logic::CameraController::updateDialogueCamera() {
Expand Down

0 comments on commit bb73b06

Please sign in to comment.