mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-21 07:42:21 +00:00
* Verb cleanup * rest of the object verbs * little more object cleanup * more changes * last of it * this too * tgui * code review * time to go
53 lines
1.3 KiB
Plaintext
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(SLOT_HUD_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(SLOT_HUD_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(SLOT_HUD_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)
|