mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-15 09:01:24 +00:00
- Added some missing command versions of the original Doom cheats.
This commit is contained in:
parent
af4093fe94
commit
6af14d17fd
1 changed files with 105 additions and 0 deletions
105
src/c_cmds.cpp
105
src/c_cmds.cpp
|
@ -1295,6 +1295,111 @@ CCMD(secret)
|
|||
}
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
//
|
||||
// Missing cheats
|
||||
//
|
||||
//============================================================================
|
||||
|
||||
CCMD(idkfa)
|
||||
{
|
||||
if (CheckCheatmode ())
|
||||
return;
|
||||
|
||||
Net_WriteByte (DEM_GENERICCHEAT);
|
||||
Net_WriteByte (CHT_IDKFA);
|
||||
}
|
||||
|
||||
CCMD(idfa)
|
||||
{
|
||||
if (CheckCheatmode ())
|
||||
return;
|
||||
|
||||
Net_WriteByte (DEM_GENERICCHEAT);
|
||||
Net_WriteByte (CHT_IDFA);
|
||||
}
|
||||
|
||||
CCMD(idbehold)
|
||||
{
|
||||
if (CheckCheatmode ())
|
||||
return;
|
||||
|
||||
if (argv.argc() != 2)
|
||||
{
|
||||
Printf("inVuln, Str, Inviso, Rad, Allmap, or Lite-amp\n");
|
||||
return;
|
||||
}
|
||||
|
||||
switch (argv[1][0])
|
||||
{
|
||||
case 'v':
|
||||
Net_WriteByte (DEM_GENERICCHEAT);
|
||||
Net_WriteByte (CHT_BEHOLDV);
|
||||
break;
|
||||
case 's':
|
||||
Net_WriteByte (DEM_GENERICCHEAT);
|
||||
Net_WriteByte (CHT_BEHOLDS);
|
||||
break;
|
||||
case 'i':
|
||||
Net_WriteByte (DEM_GENERICCHEAT);
|
||||
Net_WriteByte (CHT_BEHOLDI);
|
||||
break;
|
||||
case 'r':
|
||||
Net_WriteByte (DEM_GENERICCHEAT);
|
||||
Net_WriteByte (CHT_BEHOLDR);
|
||||
break;
|
||||
case 'a':
|
||||
Net_WriteByte (DEM_GENERICCHEAT);
|
||||
Net_WriteByte (CHT_BEHOLDA);
|
||||
break;
|
||||
case 'l':
|
||||
Net_WriteByte (DEM_GENERICCHEAT);
|
||||
Net_WriteByte (CHT_BEHOLDL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
EXTERN_CVAR (Int, am_cheat);
|
||||
|
||||
CCMD(iddt)
|
||||
{
|
||||
if (CheckCheatmode ())
|
||||
return;
|
||||
|
||||
am_cheat = (am_cheat + 1) % 3;
|
||||
}
|
||||
|
||||
CCMD(idchoppers)
|
||||
{
|
||||
if (CheckCheatmode ())
|
||||
return;
|
||||
|
||||
Net_WriteByte (DEM_GENERICCHEAT);
|
||||
Net_WriteByte (CHT_CHAINSAW);
|
||||
}
|
||||
|
||||
CCMD(idclip)
|
||||
{
|
||||
if (CheckCheatmode ())
|
||||
return;
|
||||
|
||||
Net_WriteByte (DEM_GENERICCHEAT);
|
||||
Net_WriteByte (CHT_NOCLIP);
|
||||
}
|
||||
|
||||
CCMD(randi)
|
||||
{
|
||||
if (CheckCheatmode ())
|
||||
return;
|
||||
|
||||
Net_WriteByte (DEM_GIVECHEAT);
|
||||
Net_WriteString ("health");
|
||||
Net_WriteLong(0);
|
||||
Net_WriteByte (DEM_GIVECHEAT);
|
||||
Net_WriteString ("greenarmor");
|
||||
Net_WriteLong(0);
|
||||
}
|
||||
|
||||
CCMD(angleconvtest)
|
||||
{
|
||||
Printf("Testing degrees to angle conversion:\n");
|
||||
|
|
Loading…
Reference in a new issue