Merge pull request #12650 from Citadel-Station-13/silicons-patch-7
adds a keybind to toggle active blocking instead of only press-hold
This commit is contained in:
@@ -25,6 +25,17 @@
|
||||
var/mob/living/L = user.mob
|
||||
L.keybind_stop_active_blocking()
|
||||
|
||||
/datum/keybinding/living/active_block_toggle
|
||||
name = "active_block_toggle"
|
||||
full_name = "Block (Toggle)"
|
||||
category = CATEGORY_COMBAT
|
||||
description = "Toggles active blocking system using currenet in hand object, or any found object if applicable."
|
||||
|
||||
/datum/keybinding/living/active_block_toggle/down(client/user)
|
||||
var/mob/living/L = user.mob
|
||||
L.keybind_toggle_active_blocking()
|
||||
return TRUE
|
||||
|
||||
/datum/keybinding/living/active_parry
|
||||
hotkey_keys = list("Insert", "G")
|
||||
name = "active_parry"
|
||||
|
||||
Reference in New Issue
Block a user