mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
Adds head-only target hotkey (#81222)
## About The Pull Request Adds a new optional hotkey that targets only the head and does not cycle to eyes or mouth. Currently the way the numpad hotkeys work on /tg/ is every key targets one body part... except 8. Numpad 8 Currently cycles through head-eyes-mouth, despite _**numpad 7 already handling mouth and numpad 9 already handling eyes**_. There's no head-only key.
This commit is contained in:
@@ -80,6 +80,8 @@
|
||||
switch(keybind_signal)
|
||||
if(COMSIG_KB_MOB_TARGETCYCLEHEAD_DOWN)
|
||||
user.body_toggle_head()
|
||||
if(COMSIG_KB_MOB_TARGETHEAD_DOWN)
|
||||
user.body_head()
|
||||
if(COMSIG_KB_MOB_TARGETEYES_DOWN)
|
||||
user.body_eyes()
|
||||
if(COMSIG_KB_MOB_TARGETMOUTH_DOWN)
|
||||
@@ -108,6 +110,13 @@
|
||||
description = "Pressing this key targets the head, and continued presses will cycle to the eyes and mouth. This will impact where you hit people, and can be used for surgery."
|
||||
keybind_signal = COMSIG_KB_MOB_TARGETCYCLEHEAD_DOWN
|
||||
|
||||
/datum/keybinding/mob/target/head
|
||||
hotkey_keys = list("Unbound")
|
||||
name = "target_head"
|
||||
full_name = "Target: Head"
|
||||
description = "Pressing this key targets the head. This will impact where you hit people, and can be used for surgery."
|
||||
keybind_signal = COMSIG_KB_MOB_TARGETHEAD_DOWN
|
||||
|
||||
/datum/keybinding/mob/target/eyes
|
||||
hotkey_keys = list("Numpad7")
|
||||
name = "target_eyes"
|
||||
|
||||
Reference in New Issue
Block a user