From 08e2733c0cbd156155f75bb9191fb9658b4f499d Mon Sep 17 00:00:00 2001 From: "johnsonmt88@gmail.com" Date: Wed, 26 Dec 2012 19:32:22 +0000 Subject: [PATCH] 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 --- code/modules/recycling/sortingmachinery.dm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/code/modules/recycling/sortingmachinery.dm b/code/modules/recycling/sortingmachinery.dm index 3c6d54f2907..3485e5edb81 100644 --- a/code/modules/recycling/sortingmachinery.dm +++ b/code/modules/recycling/sortingmachinery.dm @@ -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))