LagCompensation public release

This commit is contained in:
xen
2020-02-23 21:28:06 +02:00
parent 2ffcf0caba
commit 18779939f4
3 changed files with 256 additions and 87 deletions
+4 -2
View File
@@ -6,12 +6,14 @@
#pragma semicolon 1
#pragma newdecls required
#define MAX_MISSED_TICKS 16
public Plugin myinfo =
{
name = "AntiLagSwitch",
author = "BotoX",
description = "",
version = "0.0",
version = "1.0",
url = ""
};
@@ -72,7 +74,7 @@ public void OnClientDisconnect(int client)
public void OnPrePlayerThinkFunctions()
{
int minimum = GetGameTickCount() - 32;
int minimum = GetGameTickCount() - MAX_MISSED_TICKS;
for(int client = 1; client <= MaxClients; client++)
{
if(IsClientInGame(client) && (IsFakeClient(client) || g_LastProcessed[client] < minimum))