mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-13 17:23:44 +01:00
Boxing Ring files & Icons
Currently uses procs from window.dm. Might change in the future.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
/obj/structure/boxingrope
|
||||
name = "Boxing Ropes"
|
||||
desc = "Do not exit the ring."
|
||||
density = 1
|
||||
anchored = 1
|
||||
icon = 'icons/obj/boxing_rope_ch.dmi'
|
||||
icon_state = "ringrope"
|
||||
layer = OBJ_LAYER
|
||||
|
||||
/obj/structure/boxingrope/CanPass(atom/movable/mover, turf/target) //Taken from window.dm
|
||||
if(istype(mover) && mover.checkpass(PASSGLASS))
|
||||
return TRUE
|
||||
if((get_dir(loc, target) & dir) || (get_dir(mover, target) == turn(dir, 180)))
|
||||
return !density
|
||||
else
|
||||
return TRUE
|
||||
|
||||
/obj/structure/boxingrope/CheckExit(atom/movable/O as mob|obj, target as turf)
|
||||
if(istype(O) && O.checkpass(PASSGLASS))
|
||||
return 1
|
||||
if(get_dir(O.loc, target) == dir)
|
||||
return 0
|
||||
return 1
|
||||
|
||||
/obj/structure/boxingropeenter
|
||||
name = "Ring entrance"
|
||||
desc = "Do not exit the ring."
|
||||
density = 0
|
||||
anchored = 1
|
||||
icon = 'icons/obj/boxing_rope_ch.dmi'
|
||||
icon_state = "ringrope"
|
||||
layer = OBJ_LAYER
|
||||
Reference in New Issue
Block a user