Merge pull request #11829 from Couls/diagonal-movement-misc-fixes

Diagonal Movement tweaks
This commit is contained in:
variableundefined
2019-07-13 12:24:11 +08:00
committed by GitHub
8 changed files with 58 additions and 41 deletions
+1 -4
View File
@@ -185,7 +185,4 @@ var/list/adminhelp_ignored_words = list("unknown","the","a","an","of","monkey","
else
send2irc(source, "[msg] - All admins AFK ([admin_number_afk]/[admin_number_total]) or skipped ([admin_number_ignored]/[admin_number_total])")
return admin_number_present
/client/proc/get_adminhelp()
var/msg = input(src, "Please describe your problem concisely and an admin will help as soon as they're able.", "Adminhelp contents") as text|null
adminhelp(msg)
+7 -10
View File
@@ -1,22 +1,19 @@
/datum/admins/key_down(_key, client/user)
switch(_key)
if("F3")
if("F5")
user.get_admin_say()
return
if("F5")
if("F6")
user.admin_ghost()
return
if("F6")
if("F7")
player_panel_new()
return
if("F7")
user.togglebuildmodeself()
return
if("F8")
if(user.keys_held["Ctrl"])
user.stealth()
else
user.invisimin()
user.cmd_admin_pm_panel()
return
if("F9")
user.stealth()
return
if("F10")
user.get_dead_say()
+18 -16
View File
@@ -1,18 +1,20 @@
/mob/living/carbon/key_down(_key, client/user)
switch(_key)
if("R", "Southwest") // Southwest is End
toggle_throw_mode()
return
if("1")
a_intent_change("help")
return
if("2")
a_intent_change("disarm")
return
if("3")
a_intent_change("grab")
return
if("4")
a_intent_change("harm")
return
user.keys_held[_key] = world.time
if(!user.keys_held["Shift"])
switch(_key)
if("R", "Southwest") // Southwest is End
toggle_throw_mode()
return
if("1")
a_intent_change("help")
return
if("2")
a_intent_change("disarm")
return
if("3")
a_intent_change("grab")
return
if("4")
a_intent_change("harm")
return
return ..()
+5 -2
View File
@@ -17,10 +17,13 @@
if(keys_held["Ctrl"] && keys_held["Shift"]) // Is this command ever used?
winset(src, null, "command=.options")
else
get_adminhelp()
adminhelp()
return
if("F2") // Screenshot. Hold shift to choose a name and location to save in
winset(src, null, "command=.screenshot [!keys_held["shift"] ? "auto" : ""]")
ooc()
return
if("F4")
mob.me_verb()
return
if("F12") // Toggles minimal HUD
mob.button_pressed_F12()
+14 -1
View File
@@ -93,7 +93,20 @@
if("Numpad3")
user.body_l_leg()
return
else
switch(_key)
if("Numpad1")
a_intent_change("help")
return
if("Numpad2")
a_intent_change("disarm")
return
if("Numpad3")
a_intent_change("grab")
return
if("Numpad4")
a_intent_change("harm")
return
if(client.keys_held["Ctrl"] && client.prefs.toggles & AZERTY)
switch(SSinput.alt_movement_keys[_key])
if(NORTH)
@@ -6,6 +6,9 @@
if("4")
a_intent_change(INTENT_HOTKEY_LEFT)
return
if("X")
cycle_modules()
return
if("Q")
uneq_active()
return