From 4339bbadbb8e45fb075a22171329a01dd7b15872 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 3 Sep 2021 12:08:31 -0700 Subject: [PATCH] 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. --- desktop_version/src/Game.cpp | 4 ++++ desktop_version/src/Scripts.cpp | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index 968dce0e..0c2a648b 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -789,6 +789,10 @@ void Game::updatestate(void) if (!map.custommode && nocompetitive()) { returntolab(); + + startscript = true; + newscript = "disableaccessibility"; + state = 0; break; } diff --git a/desktop_version/src/Scripts.cpp b/desktop_version/src/Scripts.cpp index 01fc4ac3..bcb89243 100644 --- a/desktop_version/src/Scripts.cpp +++ b/desktop_version/src/Scripts.cpp @@ -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);