Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Опубликовано:

This Addon/Mod is just tweaking the following dvars:

 

cl_maxpackets 100
cl_packetdup 1
snaps 30
rate 25000

It's not much, but it reduces my ping about 20ms.

I would recommend every serveradmin to use it, because people, that are playing on your server, will have a lower ping.

 

Source:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InfinityScript;

namespace PingFix
{
   public class PingFix : BaseScript
   {
       public PingFix()
           : base()
       {
           PlayerConnected += new Action(entity =>
           {
               entity.SpawnedPlayer += new Action(() =>
               {
                   entity.Call("setClientDvar", "cl_maxpackets", 100);
                   entity.Call("setClientDvar", "cl_packetdup", 1);
                   entity.Call("setClientDvar", "snaps", 30);
                   entity.Call("setClientDvar", "rate", 25000);
               });
           });
       }
   }
}

Compiled:

[attachment=0]PingFix.rar[/attachment]

Featured Replies

Опубликовано:

snaps 30 is a no-op, packetdup is just for connections with heavy packetloss, rate doesn't affect anything in CoD, the only dvar having any effect is maxpackets, which might cause problems for users with lower upload bandwidth

Опубликовано:
  • Автор

I loaded the script on my server, normally my ping is about 80.

After loading the script it was about 60, so for me it's usefull.

Because I don't have a good connection (2 MBit).

And it affects for all players, after they're connected, so it's not unfair, because everyone is playing with the same settings.

Опубликовано:
snaps 30 is a no-op, packetdup is just for connections with heavy packetloss, rate doesn't affect anything in CoD, the only dvar having any effect is maxpackets, which might cause problems for users with lower upload bandwidth

 

...Oh course ! Everyone knows that, right ? :geek:

Опубликовано:
  • Автор
how can i do to run this mod on my server i'm using B3 admin tool so is there gonna be any problem?

B3 shouldn't be a problem, just add the following to your server.cfg:

 

loadScript "PingFix.dll"

Опубликовано:
dekart811":33hpyfz2]It's not much, but it reduces my ping about 20ms.

 

So when you set those dvars to default, your ping instantly jumps by 20ms ?

 

Yes it does.

 

Default cl_maxpackets 30

2lk8lmt.jpg

 

Good cl_maxpackets 100

193wud.jpg

 

Also, its better to sync maxpackets with your fps. Don't set your fps on 0, because jumping fps is not really good. Its way better to lock your fps on 125 or 250. ( if your pc can handle it. Don't use 250 fps, When you are only getting 110 fps or something. Then use 125 )

 

In short:

 

com_maxfps 91 - cl_maxpackets 91

com_maxfps 125 - cl_maxpackets 100

com_maxfps 250 - cl_maxpackets 100

 

Just my experience

Опубликовано:
How do you install?????

 

You just need to paste the "PingFix.dll" file into your scripts folder. Rename it to "PingFix.auto.dll" if you want it to get loaded automatically on all of your servers.

Or use as is and add this line to the server recipe in wich you want it to get loaded:

loadScript "PingFix.dll"

  • 4 weeks later...
Опубликовано:
LuisD":298mc3zs]
How do you install?????

 

You just need to paste the "PingFix.dll" file into your scripts folder. Rename it to "PingFix.auto.dll" if you want it to get loaded automatically on all of your servers.

Or use as is and add this line to the server recipe in wich you want it to get loaded:

loadScript "PingFix.dll"

Does this also work with The clients? i mean people who don't own servers?

Опубликовано:
LuisD":34aa7654]
How do you install?????

 

You just need to paste the "PingFix.dll" file into your scripts folder. Rename it to "PingFix.auto.dll" if you want it to get loaded automatically on all of your servers.

Or use as is and add this line to the server recipe in wich you want it to get loaded:

loadScript "PingFix.dll"

Does this also work with The clients? i mean people who don't own servers?

Just open config_mp.cfg and find all the dvars and change them...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Account

Navigation

Поиск

Поиск

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.