Commit for lpeters:

Prevents you from entering the disposal chute from any direction except that in which it is facing. Fixes issue 918.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5403 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
johnsonmt88@gmail.com
2012-12-26 19:32:22 +00:00
parent 7d7aae0334
commit 08e2733c0c
+11 -2
View File
@@ -195,7 +195,7 @@
/obj/machinery/disposal/deliveryChute
name = "Delivery chute"
desc = "A chute for big and small packages alike!"
density = 0
density = 1
icon_state = "intake"
var/c_mode = 0
@@ -213,7 +213,16 @@
update()
return
HasEntered(AM as mob|obj) //Go straight into the chute
Bumped(var/atom/movable/AM) //Go straight into the chute
switch(dir)
if(NORTH)
if(AM.loc.y != src.loc.y+1) return
if(EAST)
if(AM.loc.x != src.loc.x+1) return
if(SOUTH)
if(AM.loc.y != src.loc.y-1) return
if(WEST)
if(AM.loc.x != src.loc.x-1) return
if(istype(AM, /obj/item/projectile) || istype(AM, /obj/item/weapon/dummy)) return
if(istype(AM, /obj))