/mob/living/proc/reveal(var/silent, var/message = "You have been revealed! You are no longer hidden.")
if(status_flags & HIDING)
status_flags &= ~HIDING
reset_plane_and_layer()
if(!silent && message)
to_chat(src, message)
/mob/living/proc/hide()
set name = "Hide"
set desc = "Allows to hide beneath tables or certain items. Toggled on or off."
set category = "Abilities"
if(stat == DEAD || paralysis || weakened || stunned || restrained() || buckled || LAZYLEN(grabbed_by) || has_buckled_mobs()) //VORE EDIT: Check for has_buckled_mobs() (taur riding)
return
if(status_flags & HIDING)
reveal(FALSE, "You have stopped hiding.")
else
status_flags |= HIDING
layer = HIDING_LAYER //Just above cables with their 2.44
plane = OBJ_PLANE
to_chat(src,"You are now hiding.")