mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-16 09:34:21 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user