Skip to content

Commit

Permalink
add run to end of cutscene
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler-Lentz committed Jun 6, 2024
1 parent f997f69 commit e00cc50
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/server/game/introcutscene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,27 @@ bool IntroCutscene::update() {
}

if (ticks == EXIT_CUTSCENE_TICK) {
player->animState = AnimState::SprintAnim;
player->physics.velocity = glm::normalize(player->physics.shared.facing) * 0.20f;
}

if (ticks == EXIT_CUTSCENE_TICK + 20) {
player_left->animState = AnimState::SprintAnim;
player_left->physics.velocity = glm::normalize(player->physics.shared.facing) * 0.20f;
player_right->animState = AnimState::SprintAnim;
player_right->physics.velocity = glm::normalize(player->physics.shared.facing) * 0.20f;
}

if (ticks == EXIT_CUTSCENE_TICK + 100) {
this->state.soundTable().addNewSoundSource(SoundSource(
ServerSFX::Teleport,
player->physics.shared.getCenterPosition(),
FULL_VOLUME,
FAR_DIST,
FAR_ATTEN
));
}
if (ticks == EXIT_CUTSCENE_TICK + 105) {
return true;
}

Expand Down

0 comments on commit e00cc50

Please sign in to comment.