mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
sometimes you just want to hit rocks not shoot em
This commit is contained in:
@@ -273,9 +273,14 @@ proc/move_mining_shuttle()
|
|||||||
desc = "A rock cutter that's powerful enough to cut through rocks and xenos with ease. Ingeniously, it's powered by putting solid plasma directly into it - even plasma ore, for those miners on the go."
|
desc = "A rock cutter that's powerful enough to cut through rocks and xenos with ease. Ingeniously, it's powered by putting solid plasma directly into it - even plasma ore, for those miners on the go."
|
||||||
toolspeed = 0.05
|
toolspeed = 0.05
|
||||||
diggables = DIG_ROCKS | DIG_SOIL | DIG_WALLS | DIG_RWALLS
|
diggables = DIG_ROCKS | DIG_SOIL | DIG_WALLS | DIG_RWALLS
|
||||||
|
var/safety = FALSE // sometimes you just wanna hit rocks, not shoot them
|
||||||
var/max_ammo = 15
|
var/max_ammo = 15
|
||||||
var/current_ammo = 15
|
var/current_ammo = 15
|
||||||
|
|
||||||
|
/obj/item/weapon/pickaxe/plasmacutter/accelerator/attack_self(mob/user)
|
||||||
|
safety = !safety
|
||||||
|
to_chat(user, "<span class ='notice'>You toggle \the [src]'s safety [safety ? "on" : "off"].</span>")
|
||||||
|
|
||||||
/obj/item/weapon/pickaxe/plasmacutter/accelerator/afterattack(var/atom/A, var/mob/living/user, var/proximity_flag, var/click_parameters)
|
/obj/item/weapon/pickaxe/plasmacutter/accelerator/afterattack(var/atom/A, var/mob/living/user, var/proximity_flag, var/click_parameters)
|
||||||
if (!user.IsAdvancedToolUser() || isMoMMI(user) || istype(user, /mob/living/carbon/monkey/diona))
|
if (!user.IsAdvancedToolUser() || isMoMMI(user) || istype(user, /mob/living/carbon/monkey/diona))
|
||||||
to_chat(user, "<span class='warning'>You don't have the dexterity to do this!</span>")
|
to_chat(user, "<span class='warning'>You don't have the dexterity to do this!</span>")
|
||||||
@@ -284,9 +289,13 @@ proc/move_mining_shuttle()
|
|||||||
return
|
return
|
||||||
if(user.is_pacified(VIOLENCE_SILENT,A,src))
|
if(user.is_pacified(VIOLENCE_SILENT,A,src))
|
||||||
return
|
return
|
||||||
|
if(safety)
|
||||||
|
to_chat(user, "<span class='warning'>The safety's on!</span>")
|
||||||
|
playsound(src, 'sound/weapons/empty.ogg', 100, 1)
|
||||||
|
return
|
||||||
if(current_ammo >0)
|
if(current_ammo >0)
|
||||||
current_ammo--
|
current_ammo--
|
||||||
generic_projectile_fire(A, src, /obj/item/projectile/kinetic/cutter/, 'sound/weapons/Taser.ogg', user)
|
generic_projectile_fire(A, src, /obj/item/projectile/kinetic/cutter, 'sound/weapons/Taser.ogg', user)
|
||||||
user.delayNextAttack(4)
|
user.delayNextAttack(4)
|
||||||
else
|
else
|
||||||
src.visible_message("*click click*")
|
src.visible_message("*click click*")
|
||||||
@@ -315,7 +324,7 @@ proc/move_mining_shuttle()
|
|||||||
|
|
||||||
/obj/item/weapon/pickaxe/plasmacutter/accelerator/examine(mob/user)
|
/obj/item/weapon/pickaxe/plasmacutter/accelerator/examine(mob/user)
|
||||||
..()
|
..()
|
||||||
to_chat(user, "<span class='info'>Has [current_ammo] round\s remaining.</span>")
|
to_chat(user, "<span class='info'>It has [current_ammo] round\s remaining. The safety is [safety ? "on" : "off"].</span>")
|
||||||
|
|
||||||
/obj/item/weapon/pickaxe/diamond
|
/obj/item/weapon/pickaxe/diamond
|
||||||
name = "diamond pickaxe"
|
name = "diamond pickaxe"
|
||||||
|
|||||||
Reference in New Issue
Block a user