- Added weapdrop ccmd.

SVN r1383 (trunk)
This commit is contained in:
Randy Heit 2009-01-31 03:07:02 +00:00
parent f3b6f25d88
commit a21a928011
3 changed files with 7 additions and 0 deletions

View file

@ -1,4 +1,5 @@
January 30, 2009
- Added weapdrop ccmd.
- Centered the compatibility mode option in the comptibility options menu.
- Added button mappings for 8 mouse buttons on SDL. It works with my system,
but Linux being Linux, there are no guarantees that it's appropriate for

View file

@ -386,6 +386,11 @@ CCMD (invdrop)
if (players[consoleplayer].mo) SendItemDrop = players[consoleplayer].mo->InvSel;
}
CCMD (weapdrop)
{
SendItemDrop = players[consoleplayer].ReadyWeapon;
}
CCMD (drop)
{
if (argv.argc() > 1 && who != NULL)

View file

@ -425,6 +425,7 @@ static menuitem_t ControlsItems[] =
{ control, "Next item", {NULL}, {0.0}, {0.0}, {0.0}, {(value_t *)"invnext"} },
{ control, "Previous item", {NULL}, {0.0}, {0.0}, {0.0}, {(value_t *)"invprev"} },
{ control, "Drop item", {NULL}, {0.0}, {0.0}, {0.0}, {(value_t *)"invdrop"} },
{ control, "Drop weapon", {NULL}, {0.0}, {0.0}, {0.0}, {(value_t *)"weapdrop"} },
{ redtext, " ", {NULL}, {0.0}, {0.0}, {0.0}, {NULL} },
{ whitetext,"Other", {NULL}, {0.0}, {0.0}, {0.0}, {NULL} },
{ control, "Toggle automap", {NULL}, {0.0}, {0.0}, {0.0}, {(value_t *)"togglemap"} },