diff --git a/code/game/objects/structures/crates_lockers/crates.dm b/code/game/objects/structures/crates_lockers/crates.dm
index 6ad94282f1e..04925223898 100644
--- a/code/game/objects/structures/crates_lockers/crates.dm
+++ b/code/game/objects/structures/crates_lockers/crates.dm
@@ -10,6 +10,36 @@
// mouse_drag_pointer = MOUSE_ACTIVE_POINTER //???
var/rigged = 0
+//Maybe move both of these procs to a root structure somewhere and have a 'climbable' var on structures.
+/obj/structure/closet/crate/proc/can_touch(var/mob/user)
+ if (!user)
+ return 0
+ if (user.stat) //zombie goasts go away
+ return 0
+ if (issilicon(user))
+ user << "You need hands for this."
+ return 0
+ return 1
+
+/obj/structure/closet/crate/verb/do_climb()
+
+ set name = "Climb crate"
+ set desc = "Climbs onto a crate."
+ set category = "Object"
+ set src in oview(1)
+
+ if (!can_touch(usr))
+ return
+
+ usr.visible_message("[usr] starts climbing onto \the [src]!")
+
+ if(!do_after(usr,50))
+ return
+
+ usr.loc = get_turf(src)
+ if (get_turf(usr) == get_turf(src))
+ usr.visible_message("[usr] climbs onto \the [src]!")
+
/obj/structure/closet/crate/can_open()
return 1
@@ -36,6 +66,11 @@
O.loc = get_turf(src)
icon_state = icon_opened
src.opened = 1
+
+ for(var/mob/living/M in get_turf(src))
+ M.Weaken(5)
+ M << "\red You topple as \the [src] moves under you!"
+
return 1
/obj/structure/closet/crate/close()
diff --git a/code/game/objects/structures/tables_racks.dm b/code/game/objects/structures/tables_racks.dm
index 81c017def59..584aba3d5ae 100644
--- a/code/game/objects/structures/tables_racks.dm
+++ b/code/game/objects/structures/tables_racks.dm
@@ -412,7 +412,7 @@
return 0
return T.straight_table_check(direction)
-/obj/structure/table/verb/can_touch(var/mob/user)
+/obj/structure/table/proc/can_touch(var/mob/user)
if (!user)
return 0
if (user.stat) //zombie goasts go away
@@ -422,20 +422,44 @@
return 0
return 1
+/obj/structure/table/verb/do_climb()
+ set name = "Climb table"
+ set desc = "Climbs onto a table."
+ set category = "Object"
+ set src in oview(1)
+
+ if (!can_touch(usr))
+ return
+
+ usr.visible_message("[usr] starts climbing onto \the [src]!")
+
+ if(!do_after(usr,50))
+ return
+
+ usr.loc = get_turf(src)
+ if (get_turf(usr) == get_turf(src))
+ usr.visible_message("[usr] climbs onto \the [src]!")
+
/obj/structure/table/verb/do_flip()
set name = "Flip table"
set desc = "Flips a non-reinforced table"
set category = "Object"
set src in oview(1)
- if(ismouse(usr))
- return
- if (!can_touch(usr))
+
+ if (!can_touch(usr) || ismouse(usr))
return
+
if(!flip(get_cardinal_dir(usr,src)))
usr << "It won't budge."
else
usr.visible_message("[usr] flips \the [src]!")
- return
+
+
+ for(var/mob/living/M in get_turf(src))
+ M.Weaken(5)
+ M << "\red You topple as \the [src] moves under you!"
+
+ return
/obj/structure/table/proc/unflipping_check(var/direction)
for(var/mob/M in oview(src,0))