mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +00:00
Disables phasing downward through catwalks
This commit is contained in:
@@ -73,3 +73,10 @@
|
|||||||
. = ..()
|
. = ..()
|
||||||
if(isliving(usr))
|
if(isliving(usr))
|
||||||
playsound(src, pick('sound/effects/footstep/catwalk1.ogg', 'sound/effects/footstep/catwalk2.ogg', 'sound/effects/footstep/catwalk3.ogg', 'sound/effects/footstep/catwalk4.ogg', 'sound/effects/footstep/catwalk5.ogg'), 25, 1)
|
playsound(src, pick('sound/effects/footstep/catwalk1.ogg', 'sound/effects/footstep/catwalk2.ogg', 'sound/effects/footstep/catwalk3.ogg', 'sound/effects/footstep/catwalk4.ogg', 'sound/effects/footstep/catwalk5.ogg'), 25, 1)
|
||||||
|
|
||||||
|
/obj/structure/catwalk/CheckExit(atom/movable/O, turf/target)
|
||||||
|
if(O.checkpass(PASSGRILLE))
|
||||||
|
return 1
|
||||||
|
if(target && target.z < src.z)
|
||||||
|
return 0
|
||||||
|
return 1
|
||||||
@@ -57,7 +57,10 @@
|
|||||||
if(!A.CanPass(src, start, 1.5, 0))
|
if(!A.CanPass(src, start, 1.5, 0))
|
||||||
to_chat(src, "<span class='warning'>\The [A] blocks you.</span>")
|
to_chat(src, "<span class='warning'>\The [A] blocks you.</span>")
|
||||||
return 0
|
return 0
|
||||||
Move(destination)
|
//VOREStation Edit
|
||||||
|
if(!Move(destination))
|
||||||
|
return 0
|
||||||
|
//VOREStation Edit End
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
/mob/observer/zMove(direction)
|
/mob/observer/zMove(direction)
|
||||||
|
|||||||
Reference in New Issue
Block a user