From 63a8385c54644895ae67ecdcaea1fe4707a53d94 Mon Sep 17 00:00:00 2001 From: Gabriel Ravier Date: Sat, 21 Sep 2019 18:40:24 +0200 Subject: [PATCH] Documented bit 2 of g_GameFlags Signed-off-by: Gabriel Ravier --- src/ArmsItem.cpp | 2 +- src/Game.h | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/ArmsItem.cpp b/src/ArmsItem.cpp index 8221b7ad..d16989e6 100644 --- a/src/ArmsItem.cpp +++ b/src/ArmsItem.cpp @@ -479,7 +479,7 @@ int CampLoop() if (gCampActive) { - if (g_GameFlags & 2 && gKeyTrg & (gKeyCancel | gKeyItem)) + if (g_GameFlags & GAME_FLAG_IS_CONTROL_ENABLED && gKeyTrg & (gKeyCancel | gKeyItem)) { StopTextScript(); break; diff --git a/src/Game.h b/src/Game.h index 9ab95863..9623063f 100644 --- a/src/Game.h +++ b/src/Game.h @@ -5,7 +5,24 @@ enum GameFlagsValues { // To be continued - GAME_FLAG_IS_CONTROL_ENABLED = 2, // Idk tbh + + /** + * While this bit is set, the game will : + * - Disable manual movement of the character + * - Disable shooting bullets + * - Disable shooting Curly's nemesis + * - Disable changing weapons + * - Disable speeding up the display of text in TSC scripts + * - Disable damage of the character + * - Not display the HUD (Life, EXP, air, weapons) + * - Disable animation of the character + * - Disable movement of the inventory cursor + * - Disable getting out of the inventory while on the item section + * - Create a bullet if some other conditions are fullfilled while iterating over the stars in ActStar (If you have any idea of how that actually works, you may + * want to replace this line with a better explanation) + */ + GAME_FLAG_IS_CONTROL_ENABLED = 2, + // To be continued };