summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2009-10-06 06:05:18 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:40 +0000
commit7e5f69e66c03299cde62da178f3c9b97319c20ba (patch)
tree193ef354bd55f3d426cbfdae7cec635539754938 /src/game/g_cmds.c
parent4c26128cbf19552bb3939e0b1b0a518a793e946f (diff)
* Remove tell, tell_target, tell_attacker. Depreciated by /m
* Remove outdated refrence to the "boost" command
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 2a5b5e7a..4cbfa35b 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -757,17 +757,6 @@ void G_Say( gentity_t *ent, gentity_t *target, int mode, const char *chatText )
ent->client->pers.netname );
color = COLOR_CYAN;
break;
-
- case SAY_TELL:
- if( target && OnSameTeam( target, ent ) &&
- Team_GetLocationMsg( ent, location, sizeof( location ) ) )
- Com_sprintf( name, sizeof( name ), "[%s" S_COLOR_WHITE "] (%s): ",
- ( ent ) ? ent->client->pers.netname : "console", location );
- else
- Com_sprintf( name, sizeof( name ), "[%s" S_COLOR_WHITE "]: ",
- ( ent ) ? ent->client->pers.netname : "console" );
- color = COLOR_MAGENTA;
- break;
}
Q_strncpyz( text, chatText, sizeof( text ) );
@@ -880,41 +869,6 @@ static void Cmd_Say_f( gentity_t *ent )
/*
==================
-Cmd_Tell_f
-==================
-*/
-static void Cmd_Tell_f( gentity_t *ent )
-{
- int targetNum;
- gentity_t *target;
- char *p;
- char arg[MAX_TOKEN_CHARS];
-
- if( trap_Argc( ) < 2 )
- return;
-
- trap_Argv( 1, arg, sizeof( arg ) );
- targetNum = atoi( arg );
-
- if( targetNum < 0 || targetNum >= level.maxclients )
- return;
-
- target = &g_entities[ targetNum ];
- if( !target || !target->inuse || !target->client )
- return;
-
- p = ConcatArgs( 2 );
-
- G_LogPrintf( "tell: %s^7 to %s^7: %s\n", ent->client->pers.netname, target->client->pers.netname, p );
- G_Say( ent, target, SAY_TELL, p );
- // don't tell to the player self if it was already directed to this player
- // also don't send the chat back to a bot
- if( ent != target )
- G_Say( ent, ent, SAY_TELL, p );
-}
-
-/*
-==================
Cmd_VSay_f
==================
*/
@@ -3156,7 +3110,6 @@ commands_t cmds[ ] = {
{ "unignore", 0, Cmd_Ignore_f },
// communication commands
- { "tell", CMD_MESSAGE, Cmd_Tell_f },
{ "callvote", CMD_MESSAGE, Cmd_CallVote_f },
{ "callteamvote", CMD_MESSAGE|CMD_TEAM, Cmd_CallTeamVote_f },
{ "say_area", CMD_MESSAGE|CMD_TEAM, Cmd_SayArea_f },