Merge pull request #3246 from Jey123456/altclickdeflate

alt click to deflate inflatable walls / doors.
This commit is contained in:
Fox McCloud
2016-01-16 19:52:56 -05:00
2 changed files with 42 additions and 0 deletions
@@ -111,6 +111,13 @@
if(health <= 0)
deflate(1)
/obj/structure/inflatable/AltClick()
if(usr.stat || usr.restrained())
return
if(!Adjacent(usr))
return
deflate()
/obj/structure/inflatable/proc/deflate(var/violent=0)
playsound(loc, 'sound/machines/hiss.ogg', 75, 1)
if(violent)