mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-25 11:09: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:
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())
|
if (!map.custommode && nocompetitive())
|
||||||
{
|
{
|
||||||
returntolab();
|
returntolab();
|
||||||
|
|
||||||
|
startscript = true;
|
||||||
|
newscript = "disableaccessibility";
|
||||||
|
|
||||||
state = 0;
|
state = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6724,6 +6724,26 @@ void scriptclass::load(const std::string& name)
|
||||||
};
|
};
|
||||||
filllines(lines);
|
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
|
else
|
||||||
{
|
{
|
||||||
loadother(t);
|
loadother(t);
|
||||||
|
|
Loading…
Reference in a new issue