Full Auto Fire Fix (#10091)

This commit is contained in:
Geeves
2020-09-28 13:35:45 +02:00
committed by GitHub
parent 7ee11e341f
commit 157c899df1
2 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -297,11 +297,11 @@
return FALSE
if(world.time < next_fire_time)
if (world.time % 3) //to prevent spam
if(world.time % 3 && !can_autofire) //to prevent spam
to_chat(user, SPAN_WARNING("\The [src] is not ready to fire again!"))
return FALSE
var/shoot_time = (burst - 1) * burst_delay
var/shoot_time = max((burst - 1) * burst_delay, burst_delay)
user.setClickCooldown(shoot_time)
user.setMoveCooldown(shoot_time)
next_fire_time = world.time + shoot_time