diff --git a/src/d_netcmd.c b/src/d_netcmd.c index a3213489b..f19c0f2fc 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -1092,6 +1092,7 @@ void D_RegisterClientCommands(void) COM_AddCommand("rteleport", Command_RTeleport_f); COM_AddCommand("skynum", Command_Skynum_f); COM_AddCommand("weather", Command_Weather_f); + COM_AddCommand("grayscale", Command_Grayscale_f); #ifdef _DEBUG COM_AddCommand("causecfail", Command_CauseCfail_f); #endif diff --git a/src/m_cheat.c b/src/m_cheat.c index 9614c9b60..be4f231e1 100644 --- a/src/m_cheat.c +++ b/src/m_cheat.c @@ -762,6 +762,13 @@ void Command_Setlives_f(void) D_Cheat(consoleplayer, CHEAT_LIVES, atoi(COM_Argv(1))); } +void Command_Grayscale_f(void) +{ + REQUIRE_CHEATS; + + COM_ImmedExecute("toggle palette \"\" GRAYPAL"); +} + // // OBJECTPLACE (and related variables) // diff --git a/src/m_cheat.h b/src/m_cheat.h index 4d97cb8d9..c952721c3 100644 --- a/src/m_cheat.h +++ b/src/m_cheat.h @@ -75,6 +75,7 @@ void Command_Teleport_f(void); void Command_RTeleport_f(void); void Command_Skynum_f(void); void Command_Weather_f(void); +void Command_Grayscale_f(void); #ifdef _DEBUG void Command_CauseCfail_f(void); #endif