Fixed overly sensitive shoot-kicking

This commit is contained in:
Anuken
2018-03-24 19:10:17 -04:00
parent b20a2f74c4
commit 7f40247b89
2 changed files with 4 additions and 4 deletions

View File

@@ -172,13 +172,13 @@ public class NetServer extends Module{
TraceInfo info = admins.getTrace(Net.getConnection(id).address);
Weapon weapon = (Weapon)Upgrade.getByID(packet.weaponid);
float wtrc = 40f;
float wtrc = 60f;
if(!Timers.get(info.ip + "-weapontrace", wtrc)){
info.fastShots ++;
}else{
if(info.fastShots - 1 > (int)(wtrc / (weapon.getReload() / 2f))){
if(info.fastShots - 6 > (int)(wtrc / (weapon.getReload() / 2f))){
kick(id, KickReason.kick);
}