VoIP: Save own voice when recording a demo.
We fake a server packet and write it directly to the demo file at the point where we'd transmit to the server. This is a little nasty, but it seems to be the most reasonable solution.
This commit is contained in:
parent
28c48a8cf9
commit
a7b854d65f
4 changed files with 34 additions and 2 deletions
|
@ -641,8 +641,8 @@ qboolean CL_ShouldIgnoreVoipSender(int sender)
|
|||
{
|
||||
if (!voip->integer)
|
||||
return qtrue; // VoIP is disabled.
|
||||
else if (sender == clc.clientNum)
|
||||
return qtrue; // this is us, don't output our own voice.
|
||||
else if ((sender == clc.clientNum) && (!clc.demoplaying))
|
||||
return qtrue; // ignore own voice (unless playing back a demo).
|
||||
else if (clc.voipMuteAll)
|
||||
return qtrue; // all channels are muted with extreme prejudice.
|
||||
else if (clc.voipIgnore[sender])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue