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

@ -1,7 +1,7 @@
#Autogenerated file. Do not modify.
#Sat Mar 24 14:20:21 EDT 2018
#Sat Mar 24 18:20:40 EDT 2018
version=release
androidBuildCode=473
androidBuildCode=474
name=Mindustry
code=3.5
build=35

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);
}