forked from UNLOZE/sm-plugins
LagCompensation public release
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user