Add ability to disable "communications in progress" graphic by adding "NoComms = True" to map SOC

This commit is contained in:
Freaky Mutant Man 2025-09-16 01:39:11 +00:00 committed by Eidolon
parent 686f1ac1e1
commit 37e8b02e0e
4 changed files with 10 additions and 1 deletions

View file

@ -1506,6 +1506,13 @@ void readlevelheader(MYFILE *f, char * name)
mapheaderinfo[num]->cameraHeight = camheight;;
}
else if (fastcmp(word, "NOCOMMS") || fastcmp(word, "NOCOMM"))
{
if (i || word2[0] == 'T' || word2[0] == 'Y')
mapheaderinfo[num]->levelflags |= LF_NOCOMMS;
else
mapheaderinfo[num]->levelflags &= ~LF_NOCOMMS;
}
else
deh_warning("Level header %d: unknown word '%s'", num, word);
}

View file

@ -4747,6 +4747,7 @@ struct int_const_s const INT_CONST[] = {
{"LF_NOZONE",LF_NOZONE},
{"LF_SECTIONRACE",LF_SECTIONRACE},
{"LF_SUBTRACTNUM",LF_SUBTRACTNUM},
{"LF_NOCOMMS",LF_NOCOMMS},
// And map flags
{"LF2_HIDEINMENU",LF2_HIDEINMENU},
{"LF2_NOTIMEATTACK",LF2_NOTIMEATTACK},

View file

@ -607,6 +607,7 @@ struct mapheader_t
#define LF_NOZONE (1<<1) ///< Don't include "ZONE" on level title
#define LF_SECTIONRACE (1<<2) ///< Section race level
#define LF_SUBTRACTNUM (1<<3) ///< Use subtractive position number (for bright levels)
#define LF_NOCOMMS (1<<4) ///< Disable dialogue "communications in progress" graphic
#define LF2_HIDEINMENU (1<<0) ///< Hide in the multiplayer menu
#define LF2_NOTIMEATTACK (1<<1) ///< Hide this map in Time Attack modes

View file

@ -7750,7 +7750,7 @@ void K_drawKartHUD(void)
// Tacitcal Normie Countermeasure
INT32 dfade = K_GetDialogueFade();
if (dfade)
if (dfade && !(mapheaderinfo[gamemap-1]->levelflags & LF_NOCOMMS))
{
V_DrawFadeScreen(31, dfade); // Fade out