mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-16 12:07:48 +00:00
* Replaces intents with combat mode * updates * a * Update living_defense.dm * https://github.com/tgstation/tgstation/pull/56638/files * gunsafety! Co-authored-by: Qustinnus <Floydje123@hotmail.com> Co-authored-by: Gandalf2k15 <jzo123@hotmail.com>
38 lines
940 B
Plaintext
38 lines
940 B
Plaintext
/datum/keybinding/carbon
|
|
category = CATEGORY_CARBON
|
|
weight = WEIGHT_MOB
|
|
|
|
/datum/keybinding/carbon/can_use(client/user)
|
|
return iscarbon(user.mob)
|
|
|
|
/datum/keybinding/carbon/toggle_throw_mode
|
|
hotkey_keys = list("R", "Southwest") // END
|
|
name = "toggle_throw_mode"
|
|
full_name = "Toggle throw mode"
|
|
description = "Toggle throwing the current item or not."
|
|
category = CATEGORY_CARBON
|
|
keybind_signal = COMSIG_KB_CARBON_TOGGLETHROWMODE_DOWN
|
|
|
|
/datum/keybinding/carbon/toggle_throw_mode/down(client/user)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
var/mob/living/carbon/C = user.mob
|
|
C.toggle_throw_mode()
|
|
return TRUE
|
|
|
|
/datum/keybinding/carbon/give
|
|
hotkey_keys = list("G")
|
|
name = "Give_Item"
|
|
full_name = "Give item"
|
|
description = "Give the item you're currently holding"
|
|
keybind_signal = COMSIG_KB_CARBON_GIVEITEM_DOWN
|
|
|
|
/datum/keybinding/carbon/give/down(client/user)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
var/mob/living/carbon/C = user.mob
|
|
C.give()
|
|
return TRUE
|