summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/mvd_client.c2
-rw-r--r--source/mvd_local.h5
-rw-r--r--source/mvd_parse.c3
-rw-r--r--wiki/doc/server.mdwn8
4 files changed, 12 insertions, 6 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 );
}
diff --git a/wiki/doc/server.mdwn b/wiki/doc/server.mdwn
index fe28e7d..190dedc 100644
--- a/wiki/doc/server.mdwn
+++ b/wiki/doc/server.mdwn
@@ -161,7 +161,13 @@ into running state to prevent buffer overrun.
Specifies default map used for the Waiting Room channel.
- `set mvd_chase_prefix "xv 0 yb -64"` (string)
-Specifies POV info string position on the screen.
+Specifies POV info string position on the screen. This should be a valid
+fragment of the Quake 2 layout script.
+
+- `set mvd_chase_msgs 0` (boolean)
+When enabled, observers in chasecam mode will receive messages routed to
+the chase target, otherwise they will receive messages routed to the dummy
+MVD client (which is normally in observer mode on the game server side).
Hacks
----------