Skip to content

Commit b0ef0d3

Browse files
7oltanHundrec
authored andcommitted
fix bug where picos character stop shooting after restart in stress
1 parent 13fe034 commit b0ef0d3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

preload/scripts/songs/stress.hxc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,27 @@ class StressSong extends Song
9191

9292
VideoCutscene.play(Paths.videos(videoPath));
9393
}
94+
95+
/**
96+
* Don't replay the cutscene between restarts.
97+
*/
98+
function onSongRetry(event:ScriptEvent)
99+
{
100+
super.onSongRetry(event);
101+
102+
hasPlayedCutscene = true;
94103

104+
// resets the tankmen!
105+
if (tankmanGroup != null)
106+
{
107+
tankmanGroup.scriptCall('reset');
108+
}
109+
if (PlayState.instance.currentStage.getGirlfriend() != null)
110+
{
111+
PlayState.instance.currentStage.getGirlfriend().scriptCall('reset');
112+
trace('reset pico!');
113+
}
114+
}
95115
function kill():Void
96116
{
97117
cleanupTankmanGroup();

0 commit comments

Comments
 (0)