mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Add ability to disable "communications in progress" graphic by adding "NoComms = True" to map SOC
This commit is contained in:
parent
686f1ac1e1
commit
37e8b02e0e
4 changed files with 10 additions and 1 deletions
|
|
@ -1506,6 +1506,13 @@ void readlevelheader(MYFILE *f, char * name)
|
||||||
|
|
||||||
mapheaderinfo[num]->cameraHeight = camheight;;
|
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
|
else
|
||||||
deh_warning("Level header %d: unknown word '%s'", num, word);
|
deh_warning("Level header %d: unknown word '%s'", num, word);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4747,6 +4747,7 @@ struct int_const_s const INT_CONST[] = {
|
||||||
{"LF_NOZONE",LF_NOZONE},
|
{"LF_NOZONE",LF_NOZONE},
|
||||||
{"LF_SECTIONRACE",LF_SECTIONRACE},
|
{"LF_SECTIONRACE",LF_SECTIONRACE},
|
||||||
{"LF_SUBTRACTNUM",LF_SUBTRACTNUM},
|
{"LF_SUBTRACTNUM",LF_SUBTRACTNUM},
|
||||||
|
{"LF_NOCOMMS",LF_NOCOMMS},
|
||||||
// And map flags
|
// And map flags
|
||||||
{"LF2_HIDEINMENU",LF2_HIDEINMENU},
|
{"LF2_HIDEINMENU",LF2_HIDEINMENU},
|
||||||
{"LF2_NOTIMEATTACK",LF2_NOTIMEATTACK},
|
{"LF2_NOTIMEATTACK",LF2_NOTIMEATTACK},
|
||||||
|
|
|
||||||
|
|
@ -607,6 +607,7 @@ struct mapheader_t
|
||||||
#define LF_NOZONE (1<<1) ///< Don't include "ZONE" on level title
|
#define LF_NOZONE (1<<1) ///< Don't include "ZONE" on level title
|
||||||
#define LF_SECTIONRACE (1<<2) ///< Section race level
|
#define LF_SECTIONRACE (1<<2) ///< Section race level
|
||||||
#define LF_SUBTRACTNUM (1<<3) ///< Use subtractive position number (for bright levels)
|
#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_HIDEINMENU (1<<0) ///< Hide in the multiplayer menu
|
||||||
#define LF2_NOTIMEATTACK (1<<1) ///< Hide this map in Time Attack modes
|
#define LF2_NOTIMEATTACK (1<<1) ///< Hide this map in Time Attack modes
|
||||||
|
|
|
||||||
|
|
@ -7750,7 +7750,7 @@ void K_drawKartHUD(void)
|
||||||
|
|
||||||
// Tacitcal Normie Countermeasure
|
// Tacitcal Normie Countermeasure
|
||||||
INT32 dfade = K_GetDialogueFade();
|
INT32 dfade = K_GetDialogueFade();
|
||||||
if (dfade)
|
if (dfade && !(mapheaderinfo[gamemap-1]->levelflags & LF_NOCOMMS))
|
||||||
{
|
{
|
||||||
V_DrawFadeScreen(31, dfade); // Fade out
|
V_DrawFadeScreen(31, dfade); // Fade out
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue