Full Auto Thermal Drill (#9017)

Added a full auto mode to the mining thermal drill.
This commit is contained in:
Geeves
2020-06-07 09:08:12 +02:00
committed by GitHub
parent 58bb9ad0d6
commit 36bb5a75c7
2 changed files with 11 additions and 1 deletions

View File

@@ -458,7 +458,8 @@
firemodes = list(
list(mode_name="2 second burst", burst=10, burst_delay = 1, fire_delay = 20),
list(mode_name="4 second burst", burst=20, burst_delay = 1, fire_delay = 40),
list(mode_name="6 second burst", burst=30, burst_delay = 1, fire_delay = 60)
list(mode_name="6 second burst", burst=30, burst_delay = 1, fire_delay = 60),
list(mode_name="point-burst auto", can_autofire = TRUE, burst = 1, fire_delay = 1, burst_accuracy = list(0,-1,-1,-2,-2,-2,-3,-3), dispersion = list(1.0, 1.0, 1.0, 1.0, 1.2))
)
action_button_name = "Wield thermal drill"
@@ -466,6 +467,9 @@
needspin = FALSE
/obj/item/gun/energy/vaurca/thermaldrill/special_check(var/mob/user)
var/datum/firemode/current_mode = firemodes[sel_mode]
if(current_mode.can_autofire)
return ..()
if(is_charging)
to_chat(user, "<span class='danger'>\The [src] is already charging!</span>")
return 0