mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 07:22:28 +00:00
2D toggle command
This commit is contained in:
parent
4c39225c3e
commit
bc52bc83cc
3 changed files with 14 additions and 0 deletions
|
@ -849,6 +849,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("toggletwod", Command_Toggletwod_f);
|
||||
#ifdef _DEBUG
|
||||
COM_AddCommand("causecfail", Command_CauseCfail_f);
|
||||
#endif
|
||||
|
|
|
@ -746,6 +746,18 @@ void Command_Weather_f(void)
|
|||
P_SwitchWeather(atoi(COM_Argv(1)));
|
||||
}
|
||||
|
||||
void Command_Toggletwod_f(void)
|
||||
{
|
||||
player_t *p = &players[consoleplayer];
|
||||
|
||||
REQUIRE_DEVMODE;
|
||||
REQUIRE_INLEVEL;
|
||||
REQUIRE_SINGLEPLAYER;
|
||||
|
||||
if (p->mo)
|
||||
p->mo->flags2 ^= MF2_TWOD;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
// You never thought you needed this, did you? >=D
|
||||
// Yes, this has the specific purpose of completely screwing you up
|
||||
|
|
|
@ -64,6 +64,7 @@ void Command_Teleport_f(void);
|
|||
void Command_RTeleport_f(void);
|
||||
void Command_Skynum_f(void);
|
||||
void Command_Weather_f(void);
|
||||
void Command_Toggletwod_f(void);
|
||||
#ifdef _DEBUG
|
||||
void Command_CauseCfail_f(void);
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue