mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-22 12:38:05 +07:00
Fixed overly sensitive shoot-kicking
This commit is contained in:
parent
b20a2f74c4
commit
7f40247b89
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user