mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
[MIRROR] Adds keybinds for moving up/down z-levels (#4893)
* Adds keybinds for moving up/down z-levels (#58345) * movin' on up * removes unnecessary lines * Adds keybinds for moving up/down z-levels Co-authored-by: Ryll Ryll <3589655+Ryll-Ryll@users.noreply.github.com>
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
return TRUE
|
||||
|
||||
/datum/keybinding/mob/swap_hands
|
||||
hotkey_keys = list("X", "Northeast") // PAGEUP
|
||||
hotkey_keys = list("X")
|
||||
name = "swap_hands"
|
||||
full_name = "Swap hands"
|
||||
description = ""
|
||||
@@ -36,7 +36,7 @@
|
||||
return TRUE
|
||||
|
||||
/datum/keybinding/mob/activate_inhand
|
||||
hotkey_keys = list("Z", "Southeast") // Southeast = PAGEDOWN
|
||||
hotkey_keys = list("Z")
|
||||
name = "activate_inhand"
|
||||
full_name = "Activate in-hand"
|
||||
description = "Uses whatever item you have inhand"
|
||||
|
||||
@@ -29,3 +29,31 @@
|
||||
full_name = "Move East"
|
||||
description = "Moves your character east"
|
||||
keybind_signal = COMSIG_KB_MOVEMENT_EAST_DOWN
|
||||
|
||||
/datum/keybinding/movement/zlevel_upwards
|
||||
hotkey_keys = list("Northeast") // PGUP
|
||||
name = "Upwards"
|
||||
full_name = "Move Upwards"
|
||||
description = "Moves your character up a z-level if possible"
|
||||
keybind_signal = COMSIG_KB_MOVEMENT_ZLEVEL_MOVEUP_DOWN
|
||||
|
||||
/datum/keybinding/movement/zlevel_upwards/down(client/user)
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
user.mob.up()
|
||||
return TRUE
|
||||
|
||||
/datum/keybinding/movement/zlevel_downwards
|
||||
hotkey_keys = list("Southeast") // PGDOWN
|
||||
name = "Downwards"
|
||||
full_name = "Move Downwards"
|
||||
description = "Moves your character down a z-level if possible"
|
||||
keybind_signal = COMSIG_KB_MOVEMENT_ZLEVEL_MOVEDOWN_DOWN
|
||||
|
||||
/datum/keybinding/movement/zlevel_downwards/down(client/user)
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
user.mob.down()
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user