niko bellic

This commit is contained in:
Yoshman29
2023-01-20 22:22:35 +01:00
parent 899944fcd3
commit b7d01c2a08
26 changed files with 328 additions and 2 deletions
+7 -1
View File
@@ -696,18 +696,24 @@ class PlayState extends MusicBeatState
if (playCutscenes) {
var videoCutscene = Paths.video('${PlayState.SONG.song.toLowerCase()}-cutscene');
var videoCutsceneAlt = Paths.file('songs/${PlayState.SONG.song.toLowerCase()}/cutscene.mp4');
var dialogue = Paths.file('songs/${PlayState.SONG.song.toLowerCase()}/dialogue.xml');
persistentUpdate = false;
if (cutscene != null) {
openSubState(new ScriptedCutscene(cutscene, function() {
startCountdown();
}));
} else if (Assets.exists(dialogue)) {
FlxTransitionableState.skipNextTransIn = true;
openSubState(new DialogueCutscene(dialogue, function() {
startCountdown();
}));
} else if (Assets.exists(videoCutsceneAlt)) {
FlxTransitionableState.skipNextTransIn = true;
openSubState(new VideoCutscene(videoCutsceneAlt, function() {
startCountdown();
}));
persistentDraw = false;
}else if (Assets.exists(videoCutscene)) {
} else if (Assets.exists(videoCutscene)) {
FlxTransitionableState.skipNextTransIn = true;
openSubState(new VideoCutscene(videoCutscene, function() {
startCountdown();