- added a setinv cheat CCMD.
This commit is contained in:
parent
dd8963142f
commit
f70d0a6ced
10 changed files with 131 additions and 60 deletions
|
|
@ -422,6 +422,25 @@ CCMD (take)
|
|||
Net_WriteLong (0);
|
||||
}
|
||||
|
||||
CCMD(setinv)
|
||||
{
|
||||
if (CheckCheatmode() || argv.argc() < 2)
|
||||
return;
|
||||
|
||||
Net_WriteByte(DEM_SETINV);
|
||||
Net_WriteString(argv[1]);
|
||||
if (argv.argc() > 2)
|
||||
Net_WriteLong(atoi(argv[2]));
|
||||
else
|
||||
Net_WriteLong(0);
|
||||
|
||||
if (argv.argc() > 3)
|
||||
Net_WriteByte(!!atoi(argv[3]));
|
||||
else
|
||||
Net_WriteByte(0);
|
||||
|
||||
}
|
||||
|
||||
CCMD (gameversion)
|
||||
{
|
||||
Printf ("%s @ %s\nCommit %s\n", GetVersionString(), GetGitTime(), GetGitHash());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue