2000-08-02 15:20:15 +00:00
|
|
|
/*
|
|
|
|
teamplay.c
|
|
|
|
|
|
|
|
Teamplay enhancements ("proxy features")
|
|
|
|
|
|
|
|
Copyright (C) 2000 Anton Gavrilov (tonik@quake.ru)
|
|
|
|
|
|
|
|
This program 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:
|
|
|
|
|
|
|
|
Free Software Foundation, Inc.
|
|
|
|
59 Temple Place - Suite 330
|
|
|
|
Boston, MA 02111-1307, USA
|
|
|
|
|
|
|
|
$Id$
|
|
|
|
*/
|
|
|
|
|
2000-12-30 02:16:36 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_STRING_H
|
2000-10-06 16:30:37 +00:00
|
|
|
#include <string.h>
|
2000-12-30 02:16:36 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_STRINGS_H
|
|
|
|
#include <strings.h>
|
|
|
|
#endif
|
2000-12-03 23:52:54 +00:00
|
|
|
#include <errno.h>
|
2000-10-06 16:30:37 +00:00
|
|
|
|
2000-08-22 17:53:48 +00:00
|
|
|
#include "bothdefs.h"
|
2000-12-30 02:16:36 +00:00
|
|
|
#include "console.h"
|
2000-08-22 17:53:48 +00:00
|
|
|
#include "cmd.h"
|
2000-10-06 16:30:37 +00:00
|
|
|
#include "client.h"
|
|
|
|
#include "locs.h"
|
2000-12-30 05:18:48 +00:00
|
|
|
#include "model.h"
|
2000-12-30 02:16:36 +00:00
|
|
|
#include "sys.h"
|
|
|
|
#include "teamplay.h"
|
2000-08-02 22:50:28 +00:00
|
|
|
|
2000-12-08 06:51:37 +00:00
|
|
|
extern cvar_t *skin;
|
|
|
|
cvar_t *cl_deadbodyfilter;
|
|
|
|
cvar_t *cl_gibfilter;
|
|
|
|
cvar_t *cl_parsesay;
|
|
|
|
cvar_t *cl_nofake;
|
|
|
|
static qboolean died = false, recorded_location = false;
|
|
|
|
static vec3_t death_location, last_recorded_location;
|
2000-08-02 22:50:28 +00:00
|
|
|
|
2000-12-08 06:51:37 +00:00
|
|
|
void
|
|
|
|
Team_BestWeaponImpulse (void)
|
2000-08-22 17:53:48 +00:00
|
|
|
{
|
2000-12-08 06:51:37 +00:00
|
|
|
int best, i, imp, items;
|
|
|
|
extern int in_impulse;
|
2000-08-22 17:53:48 +00:00
|
|
|
|
|
|
|
items = cl.stats[STAT_ITEMS];
|
|
|
|
best = 0;
|
|
|
|
|
2000-12-08 06:51:37 +00:00
|
|
|
for (i = Cmd_Argc () - 1; i > 0; i--) {
|
|
|
|
imp = atoi (Cmd_Argv (i));
|
2000-08-22 17:53:48 +00:00
|
|
|
if (imp < 1 || imp > 8)
|
|
|
|
continue;
|
|
|
|
|
2000-12-08 06:51:37 +00:00
|
|
|
switch (imp) {
|
2000-08-22 17:53:48 +00:00
|
|
|
case 1:
|
|
|
|
if (items & IT_AXE)
|
|
|
|
best = 1;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
if (items & IT_SHOTGUN && cl.stats[STAT_SHELLS] >= 1)
|
|
|
|
best = 2;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
if (items & IT_SUPER_SHOTGUN && cl.stats[STAT_SHELLS] >= 2)
|
|
|
|
best = 3;
|
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
if (items & IT_NAILGUN && cl.stats[STAT_NAILS] >= 1)
|
|
|
|
best = 4;
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
if (items & IT_SUPER_NAILGUN && cl.stats[STAT_NAILS] >= 2)
|
|
|
|
best = 5;
|
|
|
|
break;
|
|
|
|
case 6:
|
|
|
|
if (items & IT_GRENADE_LAUNCHER && cl.stats[STAT_ROCKETS] >= 1)
|
|
|
|
best = 6;
|
|
|
|
break;
|
|
|
|
case 7:
|
|
|
|
if (items & IT_ROCKET_LAUNCHER && cl.stats[STAT_ROCKETS] >= 1)
|
|
|
|
best = 7;
|
|
|
|
break;
|
|
|
|
case 8:
|
|
|
|
if (items & IT_LIGHTNING && cl.stats[STAT_CELLS] >= 1)
|
|
|
|
best = 8;
|
2000-12-08 06:51:37 +00:00
|
|
|
|
2000-08-22 17:53:48 +00:00
|
|
|
}
|
|
|
|
}
|
2000-12-08 06:51:37 +00:00
|
|
|
|
2000-08-22 17:53:48 +00:00
|
|
|
if (best)
|
|
|
|
in_impulse = best;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-12-08 06:51:37 +00:00
|
|
|
char *
|
|
|
|
Team_ParseSay (char *s)
|
2000-08-22 18:54:01 +00:00
|
|
|
{
|
2000-12-08 06:51:37 +00:00
|
|
|
static char buf[1024];
|
|
|
|
int i, bracket;
|
|
|
|
char c, chr, *t1, t2[128], t3[128];
|
|
|
|
static location_t *location = NULL;
|
2000-08-22 18:54:01 +00:00
|
|
|
|
2000-10-17 03:17:42 +00:00
|
|
|
if (!cl_parsesay->int_val)
|
2000-08-22 18:54:01 +00:00
|
|
|
return s;
|
|
|
|
|
|
|
|
i = 0;
|
|
|
|
|
2000-12-08 06:51:37 +00:00
|
|
|
while (*s && (i <= sizeof (buf))) {
|
2000-12-19 19:47:15 +00:00
|
|
|
if ((*s == '$') && (s[1] != '\0')) {
|
2000-08-22 18:54:01 +00:00
|
|
|
c = 0;
|
2000-10-06 16:30:37 +00:00
|
|
|
switch (s[1]) {
|
2000-12-08 06:51:37 +00:00
|
|
|
case '\\':
|
|
|
|
c = 13;
|
|
|
|
break; // fake message
|
|
|
|
case '[':
|
|
|
|
c = 0x90;
|
|
|
|
break; // colored brackets
|
|
|
|
case ']':
|
|
|
|
c = 0x91;
|
|
|
|
break;
|
|
|
|
case 'G':
|
|
|
|
c = 0x86;
|
|
|
|
break; // ocrana leds
|
|
|
|
case 'R':
|
|
|
|
c = 0x87;
|
|
|
|
break;
|
|
|
|
case 'Y':
|
|
|
|
c = 0x88;
|
|
|
|
break;
|
|
|
|
case 'B':
|
|
|
|
c = 0x89;
|
|
|
|
break;
|
2000-08-22 18:54:01 +00:00
|
|
|
}
|
2000-12-08 06:51:37 +00:00
|
|
|
|
2000-10-06 16:30:37 +00:00
|
|
|
if (c) {
|
2000-08-22 18:54:01 +00:00
|
|
|
buf[i++] = c;
|
|
|
|
s += 2;
|
|
|
|
continue;
|
|
|
|
}
|
2000-12-19 19:47:15 +00:00
|
|
|
} else if ((*s == '%') && (s[1] != '\0')) {
|
2000-10-06 16:30:37 +00:00
|
|
|
t1 = NULL;
|
2000-12-08 06:51:37 +00:00
|
|
|
memset (t2, '\0', sizeof (t2));
|
|
|
|
memset (t3, '\0', sizeof (t3));
|
2000-10-06 16:30:37 +00:00
|
|
|
|
|
|
|
if ((s[1] == '[') && (s[3] == ']')) {
|
|
|
|
bracket = 1;
|
|
|
|
chr = s[2];
|
|
|
|
s += 4;
|
|
|
|
} else {
|
|
|
|
bracket = 0;
|
|
|
|
chr = s[1];
|
|
|
|
s += 2;
|
|
|
|
}
|
|
|
|
switch (chr) {
|
2000-10-18 17:06:44 +00:00
|
|
|
case '%':
|
|
|
|
t2[0] = '%';
|
|
|
|
t2[1] = 0;
|
|
|
|
t1 = t2;
|
|
|
|
break;
|
2000-10-06 19:33:55 +00:00
|
|
|
case 's':
|
|
|
|
bracket = 0;
|
|
|
|
t1 = skin->string;
|
|
|
|
break;
|
|
|
|
case 'd':
|
|
|
|
bracket = 0;
|
|
|
|
if (died) {
|
2000-12-08 06:51:37 +00:00
|
|
|
location = locs_find (death_location);
|
2000-10-06 19:33:55 +00:00
|
|
|
if (location) {
|
|
|
|
recorded_location = true;
|
2000-12-08 06:51:37 +00:00
|
|
|
VectorCopy (death_location, last_recorded_location);
|
2000-10-06 19:33:55 +00:00
|
|
|
t1 = location->name;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
goto location;
|
|
|
|
case 'r':
|
|
|
|
bracket = 0;
|
|
|
|
if (recorded_location) {
|
2000-12-08 06:51:37 +00:00
|
|
|
location = locs_find (last_recorded_location);
|
2000-10-06 19:33:55 +00:00
|
|
|
if (location) {
|
|
|
|
t1 = location->name;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
goto location;
|
2000-10-06 16:30:37 +00:00
|
|
|
case 'l':
|
2000-12-08 06:51:37 +00:00
|
|
|
location:
|
2000-10-06 16:30:37 +00:00
|
|
|
bracket = 0;
|
2000-12-08 06:51:37 +00:00
|
|
|
location = locs_find (cl.simorg);
|
2000-10-06 16:30:37 +00:00
|
|
|
if (location) {
|
2000-10-06 19:33:55 +00:00
|
|
|
recorded_location = true;
|
2000-12-08 06:51:37 +00:00
|
|
|
VectorCopy (cl.simorg, last_recorded_location);
|
2000-10-06 16:30:37 +00:00
|
|
|
t1 = location->name;
|
|
|
|
} else
|
2000-12-08 06:51:37 +00:00
|
|
|
snprintf (t2, sizeof (t2), "Unknown!\n");
|
2000-10-06 16:30:37 +00:00
|
|
|
break;
|
|
|
|
case 'a':
|
|
|
|
if (bracket) {
|
|
|
|
if (cl.stats[STAT_ARMOR] > 50)
|
|
|
|
bracket = 0;
|
2000-08-22 18:54:01 +00:00
|
|
|
|
2000-10-06 16:30:37 +00:00
|
|
|
if (cl.stats[STAT_ITEMS] & IT_ARMOR3)
|
|
|
|
t3[0] = 'R' | 0x80;
|
|
|
|
else if (cl.stats[STAT_ITEMS] & IT_ARMOR2)
|
|
|
|
t3[0] = 'Y' | 0x80;
|
|
|
|
else if (cl.stats[STAT_ITEMS] & IT_ARMOR1)
|
|
|
|
t3[0] = 'G' | 0x80;
|
|
|
|
else {
|
|
|
|
t2[0] = 'N' | 0x80;
|
|
|
|
t2[1] = 'O' | 0x80;
|
|
|
|
t2[2] = 'N' | 0x80;
|
|
|
|
t2[3] = 'E' | 0x80;
|
|
|
|
t2[4] = '!' | 0x80;
|
|
|
|
}
|
|
|
|
|
2000-12-08 06:51:37 +00:00
|
|
|
snprintf (t2, sizeof (t2), "%sa:%i", t3,
|
|
|
|
cl.stats[STAT_ARMOR]);
|
2000-10-06 16:30:37 +00:00
|
|
|
} else
|
2000-12-08 06:51:37 +00:00
|
|
|
snprintf (t2, sizeof (t2), "%i", cl.stats[STAT_ARMOR]);
|
2000-10-06 16:30:37 +00:00
|
|
|
break;
|
|
|
|
case 'A':
|
|
|
|
bracket = 0;
|
|
|
|
if (cl.stats[STAT_ITEMS] & IT_ARMOR3)
|
|
|
|
t2[0] = 'R' | 0x80;
|
|
|
|
else if (cl.stats[STAT_ITEMS] & IT_ARMOR2)
|
|
|
|
t2[0] = 'Y' | 0x80;
|
|
|
|
else if (cl.stats[STAT_ITEMS] & IT_ARMOR1)
|
|
|
|
t2[0] = 'G' | 0x80;
|
|
|
|
else {
|
|
|
|
t2[0] = 'N' | 0x80;
|
|
|
|
t2[1] = 'O' | 0x80;
|
|
|
|
t2[2] = 'N' | 0x80;
|
|
|
|
t2[3] = 'E' | 0x80;
|
|
|
|
t2[4] = '!' | 0x80;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 'h':
|
|
|
|
if (bracket) {
|
|
|
|
if (cl.stats[STAT_HEALTH] > 50)
|
|
|
|
bracket = 0;
|
2000-12-08 06:51:37 +00:00
|
|
|
snprintf (t2, sizeof (t2), "h:%i",
|
|
|
|
cl.stats[STAT_HEALTH]);
|
2000-10-06 16:30:37 +00:00
|
|
|
} else
|
2000-12-08 06:51:37 +00:00
|
|
|
snprintf (t2, sizeof (t2), "%i", cl.stats[STAT_HEALTH]);
|
2000-10-06 16:30:37 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
bracket = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!t1) {
|
|
|
|
if (!t2[0]) {
|
|
|
|
t2[0] = '%';
|
|
|
|
t2[1] = chr;
|
|
|
|
}
|
|
|
|
|
|
|
|
t1 = t2;
|
|
|
|
}
|
2000-08-22 18:54:01 +00:00
|
|
|
|
2000-10-06 16:30:37 +00:00
|
|
|
if (bracket)
|
2000-12-08 06:51:37 +00:00
|
|
|
buf[i++] = 0x90; // '['
|
2000-10-06 16:30:37 +00:00
|
|
|
|
|
|
|
if (t1) {
|
2000-12-08 06:51:37 +00:00
|
|
|
int len;
|
|
|
|
|
|
|
|
len = strlen (t1);
|
|
|
|
if (i + len >= sizeof (buf))
|
|
|
|
continue; // No more space in buffer, icky.
|
|
|
|
strncpy (buf + i, t1, len);
|
2000-10-06 16:30:37 +00:00
|
|
|
i += len;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (bracket)
|
2000-12-08 06:51:37 +00:00
|
|
|
buf[i++] = 0x91; // ']'
|
2000-10-06 16:30:37 +00:00
|
|
|
|
|
|
|
continue;
|
|
|
|
}
|
2000-08-22 18:54:01 +00:00
|
|
|
buf[i++] = *s++;
|
|
|
|
}
|
|
|
|
buf[i] = 0;
|
|
|
|
|
2000-12-08 06:51:37 +00:00
|
|
|
return buf;
|
2000-08-22 18:54:01 +00:00
|
|
|
}
|
|
|
|
|
2000-12-08 06:51:37 +00:00
|
|
|
void
|
2001-01-05 21:10:41 +00:00
|
|
|
Team_Dead (void)
|
2000-10-06 16:30:37 +00:00
|
|
|
{
|
2000-10-06 19:33:55 +00:00
|
|
|
died = true;
|
2000-12-08 06:51:37 +00:00
|
|
|
VectorCopy (cl.simorg, death_location);
|
2000-10-06 16:30:37 +00:00
|
|
|
}
|
|
|
|
|
2000-12-08 06:51:37 +00:00
|
|
|
void
|
2001-01-05 21:10:41 +00:00
|
|
|
Team_NewMap (void)
|
2000-10-06 16:30:37 +00:00
|
|
|
{
|
2000-12-08 06:51:37 +00:00
|
|
|
char *mapname, *t1, *t2;
|
2000-10-06 16:30:37 +00:00
|
|
|
|
2000-10-06 19:43:38 +00:00
|
|
|
died = false;
|
|
|
|
recorded_location = false;
|
2001-01-22 23:23:28 +00:00
|
|
|
mapname = strdup(cl.worldmodel->name);
|
|
|
|
t2 = malloc(sizeof(cl.worldmodel->name));
|
|
|
|
if (!mapname || !t2)
|
2000-12-08 06:51:37 +00:00
|
|
|
Sys_Error ("Can't duplicate mapname!");
|
2001-01-22 23:23:28 +00:00
|
|
|
map_to_loc(mapname,t2);
|
|
|
|
t1 = strrchr (t2, '/');
|
|
|
|
if (!t1)
|
|
|
|
Sys_Error ("Can't find /!");
|
2000-12-08 06:51:37 +00:00
|
|
|
t1++; // skip over /
|
|
|
|
locs_reset ();
|
|
|
|
locs_load (t1);
|
|
|
|
free (mapname);
|
2001-01-22 23:23:28 +00:00
|
|
|
free (t2);
|
2000-10-06 16:30:37 +00:00
|
|
|
}
|
2000-08-22 18:54:01 +00:00
|
|
|
|
2000-12-08 06:51:37 +00:00
|
|
|
void
|
|
|
|
Team_Init_Cvars (void)
|
2000-08-02 22:50:28 +00:00
|
|
|
{
|
2000-12-08 06:51:37 +00:00
|
|
|
cl_deadbodyfilter =
|
|
|
|
Cvar_Get ("cl_deadbodyfilter", "0", CVAR_NONE,
|
|
|
|
"Hide dead player models");
|
|
|
|
cl_gibfilter = Cvar_Get ("cl_gibfilter", "0", CVAR_NONE, "Hide gibs");
|
2000-12-31 04:46:04 +00:00
|
|
|
cl_parsesay = Cvar_Get ("cl_parsesay", "0", CVAR_NONE, "Use .loc files to find your present location when you put %l in messages");
|
2000-12-08 06:51:37 +00:00
|
|
|
cl_nofake = Cvar_Get ("cl_nofake", "0", CVAR_NONE, "Unhide fake messages");
|
2000-08-02 22:50:28 +00:00
|
|
|
}
|
2000-12-03 23:52:54 +00:00
|
|
|
|
|
|
|
/*
|
2001-01-22 23:23:28 +00:00
|
|
|
locs_loc
|
|
|
|
Location marker manipulation
|
|
|
|
*/
|
2000-12-08 06:51:37 +00:00
|
|
|
void
|
2001-01-22 23:23:28 +00:00
|
|
|
locs_loc (void)
|
2000-12-03 23:52:54 +00:00
|
|
|
{
|
2001-01-22 23:23:28 +00:00
|
|
|
char *mapname;
|
|
|
|
char *desc = NULL;
|
|
|
|
char locfile[MAX_OSPATH];
|
|
|
|
|
|
|
|
//FIXME checking needed to make sure you are actually in the game and a live.
|
2001-01-15 23:10:49 +00:00
|
|
|
if (Cmd_Argc () == 1) {
|
2001-01-22 23:23:28 +00:00
|
|
|
Con_Printf ("loc <add|delete|rename|move|save|zsave> [<description>] :Modifies location data, add|rename take <description> parameter\n");
|
2000-12-03 23:52:54 +00:00
|
|
|
return;
|
|
|
|
}
|
2001-01-22 23:23:28 +00:00
|
|
|
if (Cmd_Argc () >= 3)
|
|
|
|
desc = Cmd_Args () + strlen(Cmd_Argv(1)) + 1;
|
|
|
|
mapname = malloc(sizeof(cl.worldmodel->name));
|
2000-12-03 23:52:54 +00:00
|
|
|
if (!mapname)
|
2000-12-08 06:51:37 +00:00
|
|
|
Sys_Error ("Can't duplicate mapname!");
|
2001-01-22 23:23:28 +00:00
|
|
|
map_to_loc(cl.worldmodel->name,mapname);
|
2000-12-08 06:51:37 +00:00
|
|
|
snprintf (locfile, sizeof (locfile), "%s/%s", com_gamedir, mapname);
|
2000-12-19 19:47:15 +00:00
|
|
|
free(mapname);
|
2001-01-22 23:23:28 +00:00
|
|
|
|
|
|
|
if (stricmp(Cmd_Argv(1),"save") == 0) {
|
|
|
|
if (Cmd_Argc () == 2) {
|
2001-01-23 14:36:53 +00:00
|
|
|
locs_save(locfile, false);
|
2001-01-22 23:23:28 +00:00
|
|
|
} else
|
|
|
|
Con_Printf("loc save :saves locs from memory into a .loc file\n");
|
2001-01-06 07:24:44 +00:00
|
|
|
}
|
|
|
|
|
2001-01-22 23:23:28 +00:00
|
|
|
if (stricmp(Cmd_Argv(1),"zsave") == 0) {
|
|
|
|
if (Cmd_Argc () == 2) {
|
2001-01-23 14:36:53 +00:00
|
|
|
locs_save(locfile, true);
|
2001-01-22 23:23:28 +00:00
|
|
|
} else
|
|
|
|
Con_Printf("loc save :saves locs from memory into a .loc file\n");
|
2001-01-06 07:24:44 +00:00
|
|
|
}
|
2001-01-22 23:23:28 +00:00
|
|
|
|
|
|
|
if (stricmp(Cmd_Argv(1),"add") == 0) {
|
|
|
|
if (Cmd_Argc () >= 3)
|
2001-01-23 14:48:05 +00:00
|
|
|
locs_mark(cl.simorg,desc);
|
2000-12-19 19:47:15 +00:00
|
|
|
else
|
2001-01-22 23:23:28 +00:00
|
|
|
Con_Printf("loc add <description> :marks the current location with the description and records the information into a loc file.\n");
|
2001-01-06 07:24:44 +00:00
|
|
|
}
|
|
|
|
|
2001-01-22 23:23:28 +00:00
|
|
|
if (stricmp(Cmd_Argv(1),"rename") == 0) {
|
|
|
|
if (Cmd_Argc () >= 3)
|
2001-01-23 14:48:05 +00:00
|
|
|
locs_edit(cl.simorg,desc);
|
2001-01-06 07:24:44 +00:00
|
|
|
else
|
2001-01-22 23:23:28 +00:00
|
|
|
Con_Printf("loc rename <description> :changes the description of the nearest location marker\n");
|
2001-01-06 07:24:44 +00:00
|
|
|
}
|
2001-01-22 23:23:28 +00:00
|
|
|
|
|
|
|
if (stricmp(Cmd_Argv(1),"delete") == 0) {
|
|
|
|
if (Cmd_Argc () == 2)
|
2001-01-23 14:48:05 +00:00
|
|
|
locs_del(cl.simorg);
|
2001-01-22 23:23:28 +00:00
|
|
|
else
|
|
|
|
Con_Printf("loc delete :removes nearest location marker\n");
|
2001-01-06 07:24:44 +00:00
|
|
|
}
|
2001-01-22 23:23:28 +00:00
|
|
|
|
|
|
|
if (stricmp(Cmd_Argv(1),"move") == 0) {
|
|
|
|
if (Cmd_Argc () == 2)
|
2001-01-23 14:48:05 +00:00
|
|
|
locs_edit(cl.simorg,NULL);
|
2001-01-06 07:24:44 +00:00
|
|
|
else
|
2001-01-22 23:23:28 +00:00
|
|
|
Con_Printf("loc move :moves the nearest location marker to your current location\n");
|
2000-12-19 19:47:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2000-12-08 06:51:37 +00:00
|
|
|
void
|
2001-01-05 21:10:41 +00:00
|
|
|
Locs_Init (void)
|
2000-12-03 23:52:54 +00:00
|
|
|
{
|
2001-01-22 23:23:28 +00:00
|
|
|
Cmd_AddCommand ("loc", locs_loc, "Location marker editing commands: 'loc help' for more");
|
2000-12-03 23:52:54 +00:00
|
|
|
}
|
2001-01-22 23:23:28 +00:00
|
|
|
|