Added banging against windows with harm intent

This commit is contained in:
Whitellama
2012-11-21 04:00:52 -08:00
parent 900b931c34
commit 71b8045ee4

View File

@@ -119,13 +119,17 @@
if(reinf) new /obj/item/stack/rods( src.loc) if(reinf) new /obj/item/stack/rods( src.loc)
src.density = 0 src.density = 0
del(src) del(src)
return else if (usr.a_intent == "hurt")
playsound(src.loc, 'Glassknock.ogg', 80, 1)
usr.visible_message("\red [usr.name] bangs against the [src.name]!", \
"\red You bang against the [src.name]!", \
"You hear a banging sound.")
else else
playsound(src.loc, 'Glassknock.ogg', 80, 1) playsound(src.loc, 'Glassknock.ogg', 80, 1)
usr.visible_message("[usr.name] knocks on the [src.name].", \ usr.visible_message("[usr.name] knocks on the [src.name].", \
"You knock on the [src.name].", \ "You knock on the [src.name].", \
"You hear a knocking sound.") "You hear a knocking sound.")
return return
/obj/structure/window/attack_paw() /obj/structure/window/attack_paw()
if ((HULK in usr.mutations)) if ((HULK in usr.mutations))