1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 09:39:43 +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:
Misa 2021-09-03 12:08:31 -07:00
parent d64608ecaa
commit 4339bbadbb
2 changed files with 24 additions and 0 deletions

View file

@ -789,6 +789,10 @@ void Game::updatestate(void)
if (!map.custommode && nocompetitive())
{
returntolab();
startscript = true;
newscript = "disableaccessibility";
state = 0;
break;
}

View file

@ -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);