Merge pull request #9804 from Ghommie/Ghommie-cit351

Unmodularize keybindings.
This commit is contained in:
kevinz000
2019-11-14 16:36:55 -07:00
committed by Archie
parent b6d264ec5b
commit ca55e5f8b0
7 changed files with 25 additions and 37 deletions

View File

@@ -15,4 +15,7 @@
if("4")
a_intent_change("harm")
return
if("C")
toggle_combat_mode()
return
return ..()

View File

@@ -1,4 +1,7 @@
/mob/living/carbon/human/key_down(_key, client/user)
if("Shift")
sprint_hotkey(TRUE)
return
if(client.keys_held["Shift"])
switch(_key)
if("E") // Put held thing in belt or take out most recent thing from belt
@@ -56,4 +59,11 @@
return
stored.attack_hand(src) // take out thing from backpack
return
return ..()
return ..()
/mob/living/carbon/human/key_up(_key, client/user)
switch(_key)
if("Shift")
sprint_hotkey(FALSE)
return
return ..()

View File

@@ -9,4 +9,14 @@
if("Q")
uneq_active()
return
return ..()
if("Shift")
sprint_hotkey(TRUE)
return
return ..()
/mob/living/silicon/robot/key_up(_key, client/user)
switch(_key)
if("Shift")
sprint_hotkey(FALSE)
return
return ..()