Add toggle for CECHO messages

Well you could turn em off with "cechoflags" before, but this is easier and it also saves
This commit is contained in:
Alug committed 2023-10-16 02:10:12 +02:00
1 parent ae87cdc8d9
commit a18af5b3e0
4 files changed
+8 -1

No files matched your search

+2
View File
@@ -800,6 +800,8 @@ void D_RegisterServerCommands(void)
CV_RegisterVar(&cv_recordmultiplayerdemos);
CV_RegisterVar(&cv_netdemosyncquality);
CV_RegisterVar(&cv_maxdemosize);
CV_RegisterVar(&cv_cechotoggle);
}
// =========================================================================
+1 -1
View File
@@ -513,7 +513,7 @@ static CV_PossibleValue_t sloperolldist_cons_t[] = {
{8192, "8192"}, {0, "Infinite"}, {0, NULL}};
consvar_t cv_sloperolldist = {"sloperolldist", "Infinite", CV_SAVE, sloperolldist_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL};
consvar_t cv_cechotoggle = {"show_cecho", "On", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
consvar_t cv_invincmusicfade = {"invincmusicfade", "300", CV_SAVE, CV_Unsigned, NULL, 0, NULL, NULL, 0, 0, NULL};
consvar_t cv_growmusicfade = {"growmusicfade", "500", CV_SAVE, CV_Unsigned, NULL, 0, NULL, NULL, 0, 0, NULL};
+2
View File
@@ -168,6 +168,8 @@ extern consvar_t cv_respawnfademusicback;
extern consvar_t cv_resetspecialmusic;
extern consvar_t cv_cechotoggle;
extern consvar_t cv_resume;
extern consvar_t cv_fading;
+3
View File
@@ -2853,6 +2853,9 @@ void HU_SetCEchoFlags(INT32 flags)
void HU_DoCEcho(const char *msg)
{
if (!cv_cechotoggle.value)
return
I_OutputMsg("%s\n", msg); // print to log
strncpy(cechotext, msg, sizeof(cechotext));