mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-21 04:48:18 +01:00
Full Auto Fire Fix (#10091)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user