- Added some missing command versions of the original Doom cheats.

This commit is contained in:
drfrag666 2018-06-22 13:17:24 +02:00
parent af4093fe94
commit 6af14d17fd

View file

@ -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");