mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 10:01:40 +00:00
About The Pull Request Ports tgstation/TerraGov-Marine-Corps#2977, overrides click proc to return focus back to chat bar using winsets also ports tgstation/TerraGov-Marine-Corps#1904 which has two sets of defaults for hotkey and classic mode fixes #47672 fixes #47659 much credit to @Rohesie and the TGMC team for a bunch of these improvements Why It's Good For The Game lets the non-hotkey players walk and talk again Changelog cl add: Custom keybinds will now check what style (classic / hotkey) you prefer when resetting if you use classic mode make sure to reset your keybinds to default! add: multiple keybind support tweak: non-hotkey mode keeps focus on chat fix: pressing 4 as cyborg now properly cycles fix: AI location hotkeys now work again /cl
70 lines
1.7 KiB
Plaintext
70 lines
1.7 KiB
Plaintext
/datum/keybinding/robot
|
|
category = CATEGORY_ROBOT
|
|
weight = WEIGHT_ROBOT
|
|
|
|
|
|
/datum/keybinding/robot/moduleone
|
|
hotkey_keys = list("1")
|
|
name = "module_one"
|
|
full_name = "Toggle module 1"
|
|
description = "Equips or unequips the first module"
|
|
|
|
/datum/keybinding/robot/moduleone/down(client/user)
|
|
if(!iscyborg(user.mob))
|
|
return FALSE
|
|
var/mob/living/silicon/robot/R = user.mob
|
|
R.toggle_module(1)
|
|
return TRUE
|
|
|
|
/datum/keybinding/robot/moduletwo
|
|
hotkey_keys = list("2")
|
|
name = "module_two"
|
|
full_name = "Toggle module 2"
|
|
description = "Equips or unequips the second module"
|
|
|
|
/datum/keybinding/robot/moduletwo/down(client/user)
|
|
if(!iscyborg(user.mob))
|
|
return FALSE
|
|
var/mob/living/silicon/robot/R = user.mob
|
|
R.toggle_module(2)
|
|
return TRUE
|
|
|
|
/datum/keybinding/robot/modulethree
|
|
hotkey_keys = list("3")
|
|
name = "module_three"
|
|
full_name = "Toggle module 3"
|
|
description = "Equips or unequips the third module"
|
|
|
|
/datum/keybinding/robot/modulethree/down(client/user)
|
|
if(!iscyborg(user.mob))
|
|
return FALSE
|
|
var/mob/living/silicon/robot/R = user.mob
|
|
R.toggle_module(3)
|
|
return TRUE
|
|
|
|
/datum/keybinding/robot/intent_cycle
|
|
hotkey_keys = list("4")
|
|
name = "cycle_intent"
|
|
full_name = "Cycle intent left"
|
|
description = "Cycles the intent left"
|
|
|
|
/datum/keybinding/robot/intent_cycle/down(client/user)
|
|
if(!iscyborg(user.mob))
|
|
return FALSE
|
|
var/mob/living/silicon/robot/R = user.mob
|
|
R.a_intent_change(INTENT_HOTKEY_LEFT)
|
|
return TRUE
|
|
|
|
/datum/keybinding/robot/unequip_module
|
|
hotkey_keys = list("Q")
|
|
name = "unequip_module"
|
|
full_name = "Unequip module"
|
|
description = "Unequips the active module"
|
|
|
|
/datum/keybinding/robot/unequip_module/down(client/user)
|
|
if(!iscyborg(user.mob))
|
|
return FALSE
|
|
var/mob/living/silicon/robot/R = user.mob
|
|
R.uneq_active()
|
|
return TRUE
|