Add "gamestochat" cvar to Server Options

This commit is contained in:
AJ Martinez 2024-03-31 18:28:32 -07:00
parent ede77dbbd1
commit ed243910be
2 changed files with 4 additions and 1 deletions

View file

@ -1331,7 +1331,7 @@ consvar_t cv_chatwidth = Player("chatwidth", "150").min_max(64, 150);
// old shit console chat. (mostly exists for stuff like terminal, not because I cared if anyone liked the old chat.)
consvar_t cv_consolechat = Player("chatmode", "Yes").values({{0, "Yes"}, {2, "No"}});
consvar_t cv_gamestochat = Player("gamestochat", "0").values(CV_Unsigned);
consvar_t cv_gamestochat = Player("gamestochat", "0").min_max(0, 99);
void Mute_OnChange(void);
consvar_t cv_mute = UnsavedNetVar("mute", "Off").on_off().onchange(Mute_OnChange);

View file

@ -71,6 +71,9 @@ menuitem_t OPTIONS_Server[] =
{IT_STRING | IT_CVAR, "Pause Permissions", "Who is allowed to pause the game?",
NULL, {.cvar = &cv_pause}, 0, 0},
{IT_STRING | IT_CVAR, "Rounds Needed To Chat", "How many rounds players must complete before they can chat. Good vs. ban evaders.",
NULL, {.cvar = &cv_gamestochat}, 0, 0},
{IT_HEADER, "Chat...", NULL,
NULL, {NULL}, 0, 0},