Skip to content

Commit a302692

Browse files
committed
Add message when player is kicked out of Super Gravitron
The player gets kicked out of the Super Gravitron if they have invincibility or slowdown enabled. However, this can be confusing if no message pops up ( https://steamcommunity.com/app/70300/discussions/0/3039355280230178910/ ) . So I've made it so that a text box will pop up when they get kicked out.
1 parent a59e9d5 commit a302692

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

desktop_version/src/Game.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,10 @@ void Game::updatestate(void)
813813
if (!map.custommode && nocompetitive())
814814
{
815815
returntolab();
816+
817+
startscript = true;
818+
newscript = "disableaccessibility";
819+
816820
state = 0;
817821
break;
818822
}

desktop_version/src/Scripts.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6724,6 +6724,26 @@ void scriptclass::load(const std::string& name)
67246724
};
67256725
filllines(lines);
67266726
}
6727+
else if (SDL_strcmp(t, "disableaccessibility") == 0)
6728+
{
6729+
static const char* lines[] = {
6730+
"cutscene()",
6731+
"untilbars()",
6732+
6733+
"squeak(terminal)",
6734+
"text(gray,0,114,3)",
6735+
"Please disable invincibility",
6736+
"and/or slowdown before entering",
6737+
"the Super Gravitron.",
6738+
"position(center)",
6739+
"speak",
6740+
6741+
"endtext",
6742+
"endcutscene()",
6743+
"untilbars()",
6744+
};
6745+
filllines(lines);
6746+
}
67276747
else
67286748
{
67296749
loadother(t);

0 commit comments

Comments
 (0)