mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-25 02:59:44 +01:00
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.
This commit is contained in:
parent
a59e9d51db
commit
a302692ab2
2 changed files with 24 additions and 0 deletions
|
@ -813,6 +813,10 @@ void Game::updatestate(void)
|
|||
if (!map.custommode && nocompetitive())
|
||||
{
|
||||
returntolab();
|
||||
|
||||
startscript = true;
|
||||
newscript = "disableaccessibility";
|
||||
|
||||
state = 0;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -6724,6 +6724,26 @@ void scriptclass::load(const std::string& name)
|
|||
};
|
||||
filllines(lines);
|
||||
}
|
||||
else if (SDL_strcmp(t, "disableaccessibility") == 0)
|
||||
{
|
||||
static const char* lines[] = {
|
||||
"cutscene()",
|
||||
"untilbars()",
|
||||
|
||||
"squeak(terminal)",
|
||||
"text(gray,0,114,3)",
|
||||
"Please disable invincibility",
|
||||
"and/or slowdown before entering",
|
||||
"the Super Gravitron.",
|
||||
"position(center)",
|
||||
"speak",
|
||||
|
||||
"endtext",
|
||||
"endcutscene()",
|
||||
"untilbars()",
|
||||
};
|
||||
filllines(lines);
|
||||
}
|
||||
else
|
||||
{
|
||||
loadother(t);
|
||||
|
|
Loading…
Reference in a new issue