- added a setinv cheat CCMD.
This commit is contained in:
parent
dd8963142f
commit
f70d0a6ced
10 changed files with 131 additions and 60 deletions
|
|
@ -2207,6 +2207,12 @@ void Net_DoCommand (int type, uint8_t **stream, int player)
|
|||
cht_Take (&players[player], s, ReadLong (stream));
|
||||
break;
|
||||
|
||||
case DEM_SETINV:
|
||||
s = ReadString(stream);
|
||||
i = ReadLong(stream);
|
||||
cht_SetInv(&players[player], s, i, ReadByte(stream));
|
||||
break;
|
||||
|
||||
case DEM_WARPCHEAT:
|
||||
{
|
||||
int x, y, z;
|
||||
|
|
@ -2727,6 +2733,10 @@ void Net_SkipCommand (int type, uint8_t **stream)
|
|||
skip = strlen ((char *)(*stream)) + 5;
|
||||
break;
|
||||
|
||||
case DEM_SETINV:
|
||||
skip = strlen((char *)(*stream)) + 6;
|
||||
break;
|
||||
|
||||
case DEM_NETEVENT:
|
||||
skip = strlen((char *)(*stream)) + 15;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue