Documented bit 2 of g_GameFlags

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
Gabriel Ravier 2019-09-21 18:40:24 +02:00
parent ac5439cdf5
commit 63a8385c54
No known key found for this signature in database
GPG key ID: 1E75F156884F3DCE
2 changed files with 19 additions and 2 deletions

View file

@ -479,7 +479,7 @@ int CampLoop()
if (gCampActive) if (gCampActive)
{ {
if (g_GameFlags & 2 && gKeyTrg & (gKeyCancel | gKeyItem)) if (g_GameFlags & GAME_FLAG_IS_CONTROL_ENABLED && gKeyTrg & (gKeyCancel | gKeyItem))
{ {
StopTextScript(); StopTextScript();
break; break;

View file

@ -5,7 +5,24 @@
enum GameFlagsValues enum GameFlagsValues
{ {
// To be continued // 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 // To be continued
}; };