Files
Paradise/code/datums/keybindings/human_keybinds.dm
Chap d90a70ecda [REFACTOR] Consolidates SLOT_FLAG and SLOT_HUD into one ITEM_SLOT flag (#26743)
* IT WORKS UP UNTIL THIS POINT

* Consolidates SLOT_FLAG and SLOT_HUD into one

* Remove cover_both_ears

* SLOT_HUD to ITEM_SLOT

* Remove clothing_trait changes for the time being

* Remove accidental copy-paste

* Re-add no-slip var

* More failure to copy-paste correctly

* Leftover flag

* Combine left and right slot flags where possible

* UNGOOF MY DEFINES, PHAND IS NOT A THING

* Minor spacing changes

* Some more fixes from merge

* Seperates ITEM SLOT AMOUNT into two defines

* ON SECOND THOUGHT LETS NOT DO THAT.

* Addresses Contra's review

* Thank you GREP

* Rename ITEM_SLOT_FEET to ITEM_SLOT_SHOES

* Added a comment to the bitmasks in clothing defines

* Rename ITEM_SLOT_TIE to ITEM_SLOT_ACCESSORY

* These are for a seperate PR.

* Magboot fixes

* Requested changes

* Re-add accidental removal

* Wrong flags

* Update code/__DEFINES/clothing_defines.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Signed-off-by: Chap <erwin@lombok.demon.nl>

* Requested changes

* Merge fixes

* Fix double headset

* Fixes multiple accessories

---------

Signed-off-by: Chap <erwin@lombok.demon.nl>
Co-authored-by: Adrer <adrermail@gmail.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
2024-11-13 13:02:29 +00:00

53 lines
1.3 KiB
Plaintext

/datum/keybinding/human
category = KB_CATEGORY_HUMAN
/datum/keybinding/human/can_use(client/C, mob/M)
return ishuman(M) && ..()
/datum/keybinding/human/bag_equip
name = "Equip Held Object To Bag"
keys = list("ShiftB")
/datum/keybinding/human/bag_equip/down(client/C)
. = ..()
var/mob/living/carbon/human/M = C.mob
M.quick_equip_item(ITEM_SLOT_BACK)
/datum/keybinding/human/belt_equip
name = "Equip Held Object To Belt"
keys = list("ShiftE")
/datum/keybinding/human/belt_equip/down(client/C)
. = ..()
var/mob/living/carbon/human/M = C.mob
M.quick_equip_item(ITEM_SLOT_BELT)
/datum/keybinding/human/suit_equip
name = "Equip Held Object To Suit Storage"
keys = list("ShiftQ")
/datum/keybinding/human/suit_equip/down(client/C)
. = ..()
var/mob/living/carbon/human/M = C.mob
M.quick_equip_item(ITEM_SLOT_SUIT_STORE)
/datum/keybinding/human/toggle_holster
name = "Toggle Holster"
keys = list("H")
/datum/keybinding/human/toggle_holster/down(client/C)
. = ..()
var/mob/living/carbon/human/M = C.mob
if(!M.w_uniform)
return
var/obj/item/clothing/accessory/holster/H = locate() in M.w_uniform
H?.handle_holster_usage(M)
/datum/keybinding/human/parry
name = "Parry"
keys = list("Space")
/datum/keybinding/human/parry/down(client/C)
. = ..()
SEND_SIGNAL(C.mob, COMSIG_HUMAN_PARRY)