mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
* 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>
60 lines
1.6 KiB
Plaintext
60 lines
1.6 KiB
Plaintext
/datum/keybinding/movement
|
|
category = CATEGORY_MOVEMENT
|
|
weight = WEIGHT_HIGHEST
|
|
|
|
/datum/keybinding/movement/north
|
|
hotkey_keys = list("W", "North")
|
|
name = "North"
|
|
full_name = "Move North"
|
|
description = "Moves your character north"
|
|
keybind_signal = COMSIG_KB_MOVEMENT_NORTH_DOWN
|
|
|
|
/datum/keybinding/movement/south
|
|
hotkey_keys = list("S", "South")
|
|
name = "South"
|
|
full_name = "Move South"
|
|
description = "Moves your character south"
|
|
keybind_signal = COMSIG_KB_MOVEMENT_SOUTH_DOWN
|
|
|
|
/datum/keybinding/movement/west
|
|
hotkey_keys = list("A", "West")
|
|
name = "West"
|
|
full_name = "Move West"
|
|
description = "Moves your character left"
|
|
keybind_signal = COMSIG_KB_MOVEMENT_WEST_DOWN
|
|
|
|
/datum/keybinding/movement/east
|
|
hotkey_keys = list("D", "East")
|
|
name = "East"
|
|
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
|