- Added wall mounted first aid closet for later use with the medicine and alternative treatments project
- Added lockable mounted medical closet for later use (medicine project)
- Wall mounted closets can now be walked on even when closed (set the wall_mounted variable to 1) - does not apply to fire extinguisher and axe closet as those use special code.
- Set hydrant closet as wall-mounted for later use (dangercon project)

Bugfixes:
- If you open and close an emagged closet, it will now show as broken, not normal unlocked.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1877 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2011-07-18 00:11:39 +00:00
parent 8daf95e7c9
commit bfb8668883
4 changed files with 32 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
return get_turf(src)
/obj/closet/CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
if(air_group || (height==0)) return 1
if(air_group || (height==0 || wall_mounted)) return 1
return opened
+5 -2
View File
@@ -2,7 +2,7 @@
return get_turf(src)
/obj/secure_closet/CanPass(atom/movable/mover, turf/target, height=0, air_group=0)
if(air_group || (height==0)) return 1
if(air_group || (height==0) || wall_mounted) return 1
return src.opened
@@ -69,7 +69,10 @@
M.client.eye = src
M.loc = src
src.icon_state = src.icon_closed
if(broken)
src.icon_state = src.icon_off
else
src.icon_state = src.icon_closed
src.opened = 0
playsound(src.loc, 'click.ogg', 15, 1, -3)
return 1