ref: 63a8385c54644895ae67ecdcaea1fe4707a53d94
parent: ac5439cdf53e6c23b1903f87e53903836f9b2dd1
author: Gabriel Ravier <gabravier@gmail.com>
date: Sat Sep 21 14:40:24 EDT 2019
Documented bit 2 of g_GameFlags Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
--- a/src/ArmsItem.cpp
+++ b/src/ArmsItem.cpp
@@ -479,7 +479,7 @@
if (gCampActive)
{
- if (g_GameFlags & 2 && gKeyTrg & (gKeyCancel | gKeyItem))
+ if (g_GameFlags & GAME_FLAG_IS_CONTROL_ENABLED && gKeyTrg & (gKeyCancel | gKeyItem))
{
StopTextScript();
break;
--- 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
};