diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-09-29 22:37:26 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-09-29 22:37:26 +0000 |
commit | 8e63ee03fd01d4b78ab283c58e6619a72b6a5bde (patch) | |
tree | 1f7e5ae9d80f24887a14849fa909af04cabc719c /source | |
parent | 5b1969053745b8c29e0044953b744d5759c0bccd (diff) |
Implemented `mvd_chase_msgs' cvar, MVD observers in chasecam mode will no
longer receive team chat by default.
Diffstat (limited to 'source')
-rw-r--r-- | source/mvd_client.c | 2 | ||||
-rw-r--r-- | source/mvd_local.h | 5 | ||||
-rw-r--r-- | source/mvd_parse.c | 3 |
3 files changed, 5 insertions, 5 deletions
diff --git a/source/mvd_client.c b/source/mvd_client.c index c19ca4d..f267008 100644 --- a/source/mvd_client.c +++ b/source/mvd_client.c @@ -42,6 +42,7 @@ cvar_t *mvd_debug; cvar_t *mvd_timeout; cvar_t *mvd_wait_delay; cvar_t *mvd_wait_percent; +cvar_t *mvd_chase_msgs; // ==================================================================== @@ -1451,6 +1452,7 @@ void MVD_Register( void ) { mvd_timeout = Cvar_Get( "mvd_timeout", "120", 0 ); mvd_wait_delay = Cvar_Get( "mvd_wait_delay", "20", 0 ); mvd_wait_percent = Cvar_Get( "mvd_wait_percent", "50", 0 ); + mvd_chase_msgs = Cvar_Get( "mvd_chase_msgs", "0", 0 ); Cmd_Register( c_mvd ); } diff --git a/source/mvd_local.h b/source/mvd_local.h index d96779b..2535527 100644 --- a/source/mvd_local.h +++ b/source/mvd_local.h @@ -169,11 +169,8 @@ extern qboolean mvd_dirty; extern cvar_t *mvd_shownet; extern cvar_t *mvd_debug; -extern cvar_t *mvd_pause; -extern cvar_t *mvd_nextserver; extern cvar_t *mvd_timeout; -extern cvar_t *mvd_autoscores; -extern cvar_t *mvd_safecmd; +extern cvar_t *mvd_chase_msgs; void MVD_DPrintf( const char *fmt, ... ) q_printf( 1, 2 ); void MVD_Dropf( mvd_t *mvd, const char *fmt, ... ) diff --git a/source/mvd_parse.c b/source/mvd_parse.c index 5873bcf..f5893d9 100644 --- a/source/mvd_parse.c +++ b/source/mvd_parse.c @@ -380,7 +380,8 @@ static void MVD_UnicastPrint( mvd_t *mvd, qboolean reliable, mvd_player_t *playe if( level == PRINT_CHAT && ( client->uf & UF_MUTE_PLAYERS ) ) { continue; } - target = client->target ? client->target : mvd->dummy; + target = mvd_chase_msgs->integer ? + client->target ? client->target : mvd->dummy : mvd->dummy; if( target == player ) { cl->AddMessage( cl, data, length, reliable ); } |