AntiBhopCheat: never notify hacker, keep logging him

auto unrestrict hyperscrollers
make sm_stats more useful
only do stats after streak ended (aka on next jump)
totally untested lmao
This commit is contained in:
BotoX
2019-08-09 15:35:17 +02:00
parent 62fd56c2b5
commit dd698bcc73
2 changed files with 100 additions and 36 deletions
+56 -4
View File
@@ -10,13 +10,17 @@ methodmap CPlayer < Basic
Basic myclass = new Basic();
myclass.SetInt("iClient", client);
myclass.SetBool("bFlagged", false);
myclass.SetBool("bHackGlobal", false);
myclass.SetBool("bHyperGlobal", false);
myclass.SetInt("iHackFlagged", 0);
myclass.SetInt("iHyperFlagged", 0);
myclass.SetInt("iJumps", 0);
myclass.SetInt("iHyperJumps", 0);
myclass.SetInt("iHackJumps", 0);
myclass.SetArray("aJumps", {0, 0, 0}, 3);
myclass.SetInt("iLastStreakTick", -1);
myclass.SetHandle("hStreak", new CStreak());
myclass.SetHandle("hStreaks", new ArrayList(1));
@@ -35,15 +39,51 @@ methodmap CPlayer < Basic
}
}
property bool bFlagged
property bool bHackGlobal
{
public get()
{
return this.GetBool("bFlagged");
return this.GetBool("bHackGlobal");
}
public set(bool value)
{
this.SetBool("bFlagged", value);
this.SetBool("bHackGlobal", value);
}
}
property bool bHyperGlobal
{
public get()
{
return this.GetBool("bHyperGlobal");
}
public set(bool value)
{
this.SetBool("bHyperGlobal", value);
}
}
property int iHackFlagged
{
public get()
{
return this.GetInt("iHackFlagged");
}
public set(int value)
{
this.SetInt("iHackFlagged", value);
}
}
property int iHyperFlagged
{
public get()
{
return this.GetInt("iHyperFlagged");
}
public set(int value)
{
this.SetInt("iHyperFlagged", value);
}
}
@@ -83,6 +123,18 @@ methodmap CPlayer < Basic
}
}
property int iLastStreakTick
{
public get()
{
return this.GetInt("iLastStreakTick");
}
public set(int value)
{
this.SetInt("iLastStreakTick", value);
}
}
public void GetJumps(int value[3])
{
this.GetArray("aJumps", value, sizeof(value));