diff --git a/src/d_netcmd.c b/src/d_netcmd.c index 9c2aa282a..6756c4517 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -800,6 +800,8 @@ void D_RegisterServerCommands(void) CV_RegisterVar(&cv_recordmultiplayerdemos); CV_RegisterVar(&cv_netdemosyncquality); CV_RegisterVar(&cv_maxdemosize); + + CV_RegisterVar(&cv_cechotoggle); } // ========================================================================= diff --git a/src/g_game.c b/src/g_game.c index b03e5ed39..0e31ab4f5 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -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}; diff --git a/src/g_game.h b/src/g_game.h index 894b7b289..8cebc088a 100644 --- a/src/g_game.h +++ b/src/g_game.h @@ -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; diff --git a/src/hu_stuff.c b/src/hu_stuff.c index 18c2daf7a..f6e7a9caf 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -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));