2015-05-19 21:54:34 +00:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
/*
|
|
|
|
Copyright (C) 1997, 2005 - 3D Realms Entertainment
|
|
|
|
|
|
|
|
This file is part of Shadow Warrior version 1.2
|
|
|
|
|
|
|
|
Shadow Warrior is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
|
|
|
Original Source: 1997 - Frank Maddin and Jim Norwood
|
|
|
|
Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
|
|
|
|
*/
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// CONSOLE.C
|
|
|
|
// Handles all argument storing and user console variable modifications.
|
|
|
|
// Copyright (c) 1996 by Jim Norwood
|
|
|
|
|
2019-10-09 16:09:05 +00:00
|
|
|
#include "ns.h"
|
|
|
|
|
2015-05-19 21:54:34 +00:00
|
|
|
#include "build.h"
|
|
|
|
|
|
|
|
#include "mytypes.h"
|
|
|
|
#include "keys.h"
|
|
|
|
#include "names2.h"
|
|
|
|
#include "panel.h"
|
|
|
|
#include "game.h"
|
|
|
|
#include "tags.h"
|
|
|
|
#include "player.h"
|
|
|
|
#include "lists.h"
|
|
|
|
#include "warp.h"
|
|
|
|
#include "quake.h"
|
|
|
|
|
|
|
|
#include "common_game.h"
|
2019-10-25 22:32:49 +00:00
|
|
|
#include "gamecontrol.h"
|
2015-05-19 21:54:34 +00:00
|
|
|
#include "trigger.h"
|
|
|
|
|
|
|
|
#include "savedef.h"
|
|
|
|
#include "menus.h"
|
2019-03-21 02:24:19 +00:00
|
|
|
#include "network.h"
|
2015-05-19 21:54:34 +00:00
|
|
|
#include "pal.h"
|
|
|
|
|
|
|
|
#include "weapon.h"
|
|
|
|
#include "text.h"
|
|
|
|
#include "jsector.h"
|
|
|
|
|
2019-10-09 16:09:05 +00:00
|
|
|
BEGIN_SW_NS
|
|
|
|
|
2015-05-19 21:54:34 +00:00
|
|
|
void CON_Bunny(void)
|
|
|
|
{
|
|
|
|
PLAYERp pp = Player + myconnectindex;
|
|
|
|
|
|
|
|
if (CommEnabled)
|
|
|
|
return;
|
|
|
|
|
|
|
|
pp->BunnyMode = !pp->BunnyMode;
|
|
|
|
if (pp->BunnyMode)
|
|
|
|
PutStringInfo(pp,"Bunny rockets enabled!");
|
|
|
|
else
|
|
|
|
PutStringInfo(pp,"Bunny rockets disabled!");
|
|
|
|
}
|
|
|
|
|
|
|
|
void CON_ShowMirror(void)
|
|
|
|
{
|
|
|
|
char base[80];
|
2015-05-19 21:58:29 +00:00
|
|
|
int16_t op1=0;
|
2015-05-19 21:54:34 +00:00
|
|
|
|
|
|
|
// Format: showmirror [SpriteNum]
|
|
|
|
if (sscanf(MessageInputString,"%s %hd",base,&op1) < 2)
|
|
|
|
{
|
|
|
|
strcpy(MessageInputString,"help showmirror");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (op1 < 0 || op1 > 9)
|
|
|
|
{
|
2019-12-02 23:57:03 +00:00
|
|
|
OSD_Printf("Mirror number is out of range!");
|
2015-05-19 21:54:34 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-12-02 23:57:03 +00:00
|
|
|
OSD_Printf("camera is the ST1 sprite used as the view spot");
|
|
|
|
OSD_Printf("camspite is the SpriteNum of the drawtotile tile in editart");
|
|
|
|
OSD_Printf("camspic is the tile number of the drawtotile in editart");
|
|
|
|
OSD_Printf("iscamera is whether or not this mirror is a camera type");
|
|
|
|
OSD_Printf(" ");
|
|
|
|
OSD_Printf("mirror[%d].mirrorwall = %d",op1,mirror[op1].mirrorwall);
|
|
|
|
OSD_Printf("mirror[%d].mirrorsector = %d",op1,mirror[op1].mirrorsector);
|
|
|
|
OSD_Printf("mirror[%d].camera = %d",op1,mirror[op1].camera);
|
|
|
|
OSD_Printf("mirror[%d].camsprite = %d",op1,mirror[op1].camsprite);
|
|
|
|
OSD_Printf("mirror[%d].campic = %d",op1,mirror[op1].campic);
|
|
|
|
OSD_Printf("mirror[%d].iscamera = %d",op1,mirror[op1].ismagic);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-10-09 16:09:05 +00:00
|
|
|
END_SW_NS
|