Door Interact Tweaks

This commit is contained in:
Casey
2021-12-08 04:17:15 +00:00
committed by Chompstation Bot
parent 680cffa88a
commit 90c9ef5f3f
2 changed files with 1561 additions and 1 deletions
+2 -1
View File
@@ -72,6 +72,7 @@
/* // CHOMPEDIT: disabling becaue alt-clicking to view a turf is pretty important.
/obj/structure/simple_door/AltClick(mob/user as mob)
. = ..()
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
if(!Adjacent(user))
return
@@ -79,7 +80,7 @@
src.visible_message("<span class='warning'>[user] hammers on \the [src]!</span>", "<span class='warning'>Someone hammers loudly on \the [src]!</span>")
src.add_fingerprint(user)
playsound(src, knock_hammer_sound, 50, 0, 3)
else
else if(user.a_intent == I_HELP)
src.visible_message("[user] knocks on \the [src].", "Someone knocks on \the [src].")
src.add_fingerprint(user)
playsound(src, knock_sound, 50, 0, 3)