Unmodularize keybindings.

This commit is contained in:
Ghommie
2019-11-13 23:57:49 +01:00
parent c4849ead74
commit 2f1a76c21e
7 changed files with 25 additions and 37 deletions
@@ -15,4 +15,7 @@
if("4")
a_intent_change("harm")
return
if("C")
toggle_combat_mode()
return
return ..()
+11 -1
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 ..()
+11 -1
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 ..()