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:
Swift
2024-02-08 12:01:52 -06:00
committed by GitHub
parent 0a496f180c
commit 9dc8c12cb0
3 changed files with 25 additions and 4 deletions
+9
View File
@@ -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"