- added a damage type parameter to MDK CCMD.
This commit is contained in:
parent
ac4074a69a
commit
e511f7f84b
5 changed files with 32 additions and 8 deletions
|
|
@ -2380,6 +2380,11 @@ void Net_DoCommand (int type, BYTE **stream, int player)
|
|||
SprayDecal(players[player].mo, s);
|
||||
break;
|
||||
|
||||
case DEM_MDK:
|
||||
s = ReadString(stream);
|
||||
cht_DoMDK(&players[player], s);
|
||||
break;
|
||||
|
||||
case DEM_PAUSE:
|
||||
if (gamestate == GS_LEVEL)
|
||||
{
|
||||
|
|
@ -2666,13 +2671,12 @@ void Net_DoCommand (int type, BYTE **stream, int player)
|
|||
|
||||
case DEM_NETEVENT:
|
||||
{
|
||||
const char *ename = ReadString(stream);
|
||||
s = ReadString(stream);
|
||||
int argn = ReadByte(stream);
|
||||
int arg[3] = { 0, 0, 0 };
|
||||
for (int i = 0; i < 3; i++)
|
||||
arg[i] = ReadLong(stream);
|
||||
E_Console(player, ename, arg[0], arg[1], arg[2]);
|
||||
delete[] ename;
|
||||
E_Console(player, s, arg[0], arg[1], arg[2]);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
@ -2723,7 +2727,7 @@ void Net_SkipCommand (int type, BYTE **stream)
|
|||
break;
|
||||
|
||||
case DEM_NETEVENT:
|
||||
skip = strlen((char *)(*stream)) + 13;
|
||||
skip = strlen((char *)(*stream)) + 14;
|
||||
break;
|
||||
|
||||
case DEM_SUMMON2:
|
||||
|
|
@ -2747,6 +2751,7 @@ void Net_SkipCommand (int type, BYTE **stream)
|
|||
case DEM_SPRAY:
|
||||
case DEM_MORPHEX:
|
||||
case DEM_KILLCLASSCHEAT:
|
||||
case DEM_MDK:
|
||||
skip = strlen ((char *)(*stream)) + 1;
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue