[MIRROR] Add ability to adjust your layer/plane (#6726)

Co-authored-by: Casey <a.roaming.shadow@gmail.com>
Co-authored-by: Raeschen <rycoop29@gmail.com>
This commit is contained in:
CHOMPStation2
2023-08-05 16:02:07 -07:00
committed by GitHub
parent 6bac7350fd
commit 17ca3a8358
3 changed files with 1612 additions and 1562 deletions

View File

@@ -279,6 +279,8 @@ default behaviour is:
is_shifted = FALSE
pixel_x = default_pixel_x
pixel_y = default_pixel_y
layer = MOB_LAYER
plane = MOB_PLANE
// End VOREstation edit
if(pulling) // we were pulling a thing and didn't lose it during our move.

View File

@@ -703,7 +703,6 @@
for(var/datum/SDQL2_query/Q as anything in GLOB.sdql2_queries)
Q.generate_stat()
if(has_mentor_powers(client) || client.holder) // CHOMPedit - Ticket System
if(statpanel("Tickets"))
GLOB.tickets.stat_entry() // CHOMPedit - Ticket System
@@ -1099,6 +1098,33 @@
if(pixel_x <= (default_pixel_x + 16))
pixel_x++
is_shifted = TRUE
/mob/verb/planeup()
set hidden = TRUE
if(!canface())
return FALSE
if(plane >= MOB_PLANE + 3) //Don't bother going too high!
return
if(layer == MOB_LAYER) //Become higher
layer = ABOVE_MOB_LAYER
plane += 1 //Increase the plane
if(plane == MOB_PLANE) //Return to normal
layer = MOB_LAYER
is_shifted = TRUE
/mob/verb/planedown()
set hidden = TRUE
if(!canface())
return FALSE
if(plane <= MOB_PLANE - 3) //Don't bother going too low!
return
if(layer == MOB_LAYER) //Become lower
layer = BELOW_MOB_LAYER
plane -= 1 //Decrease the plane
if(plane == MOB_PLANE) //Return to normal
layer = MOB_LAYER
is_shifted = TRUE
// End VOREstation edit
/mob/proc/adjustEarDamage()

View File

@@ -263,6 +263,12 @@ macro "borghotkeymode"
elem
name = "F12"
command = "F12"
elem
name = "CTRL+SHIFT+ADD"
command = "planeup"
elem
name = "CTRL+SHIFT+SUBTRACT"
command = "planedown"
macro "macro"
elem
@@ -487,6 +493,12 @@ macro "macro"
elem
name = "F12"
command = "F12"
elem
name = "CTRL+SHIFT+ADD"
command = "planeup"
elem
name = "CTRL+SHIFT+SUBTRACT"
command = "planedown"
macro "hotkeymode"
elem
@@ -768,6 +780,12 @@ macro "hotkeymode"
elem
name = "F12"
command = "F12"
elem
name = "CTRL+SHIFT+ADD"
command = "planeup"
elem
name = "CTRL+SHIFT+SUBTRACT"
command = "planedown"
macro "borgmacro"
elem
@@ -986,7 +1004,12 @@ macro "borgmacro"
elem
name = "F12"
command = "F12"
elem
name = "CTRL+SHIFT+ADD"
command = "planeup"
elem
name = "CTRL+SHIFT+SUBTRACT"
command = "planedown"
menu "menu"
elem
@@ -1525,4 +1548,3 @@ window "text_editor"
border = line
saved-params = ""
multi-line = true