Implement IsMultiplayer() into HLGameRules class.

Improve player networking
This commit is contained in:
Marco Cawthorne 2022-05-01 17:04:38 -07:00
parent 2228ab48a0
commit a7903a585e
Signed by: eukara
GPG Key ID: C196CD8BA993248A
3 changed files with 22 additions and 5 deletions

View File

@ -14,6 +14,12 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
bool
HLGameRules::IsMultiplayer(void)
{
return true;
}
/* we check what fields have changed over the course of the frame and network
* only the ones that have actually changed */
void

View File

@ -272,13 +272,11 @@ player::SendEntity
float
player::SendEntity(entity ePEnt, float fChanged)
{
if (health <= 0 && ePEnt != this) {
/* don't broadcast invisible players */
if (IsFakeSpectator() && ePEnt != this)
return (0);
}
if (clienttype(ePEnt) != CLIENTTYPE_REAL) {
if (!GetModelindex() && ePEnt != this)
return (0);
}
if (ePEnt != self) {
fChanged &= ~PLAYER_ITEMS;

View File

@ -39,3 +39,16 @@ bind "f2" "vote no"
seta "con_color" "193 207 204"
seta "vgui_color" "0 255 0"
seta "cross_color" "0 255 0"
// disable some nuclide niceties
seta v_muzzledlight 0
// config compat
alias mp_timelimit timelimit
alias mp_fraglimit fraglimit
// video settings
seta gl_overbright 0
seta gl_ldr 1
seta r_lightmap_format rgb8