971ef6a416
* Custom movement hotkeys and restore macros for T, O and M * stray comma * update movement keys on SSinput initialize * use cardinals
223 lines
5.0 KiB
Plaintext
223 lines
5.0 KiB
Plaintext
/datum/keybinding/mob
|
|
category = CATEGORY_HUMAN
|
|
weight = WEIGHT_MOB
|
|
|
|
|
|
/datum/keybinding/mob/face_north
|
|
key = "Ctrl-W"
|
|
name = "face_north"
|
|
full_name = "Face North"
|
|
description = ""
|
|
|
|
/datum/keybinding/mob/face_north/down(client/user)
|
|
var/mob/M = user.mob
|
|
M.northface()
|
|
return TRUE
|
|
|
|
|
|
/datum/keybinding/mob/face_east
|
|
key = "Ctrl-D"
|
|
name = "face_east"
|
|
full_name = "Face East"
|
|
description = ""
|
|
|
|
/datum/keybinding/mob/face_east/down(client/user)
|
|
var/mob/M = user.mob
|
|
M.eastface()
|
|
return TRUE
|
|
|
|
|
|
/datum/keybinding/mob/face_south
|
|
key = "Ctrl-S"
|
|
name = "face_south"
|
|
full_name = "Face South"
|
|
description = ""
|
|
|
|
/datum/keybinding/mob/face_south/down(client/user)
|
|
var/mob/M = user.mob
|
|
M.southface()
|
|
return TRUE
|
|
|
|
/datum/keybinding/mob/face_west
|
|
key = "Ctrl-A"
|
|
name = "face_west"
|
|
full_name = "Face West"
|
|
description = ""
|
|
|
|
/datum/keybinding/mob/face_west/down(client/user)
|
|
var/mob/M = user.mob
|
|
M.westface()
|
|
return TRUE
|
|
|
|
/datum/keybinding/mob/stop_pulling
|
|
key = "H"
|
|
name = "stop_pulling"
|
|
full_name = "Stop pulling"
|
|
description = ""
|
|
|
|
/datum/keybinding/mob/stop_pulling/down(client/user)
|
|
var/mob/M = user.mob
|
|
if(!M.pulling)
|
|
to_chat(user, "<span class='notice'>You are not pulling anything.</span>")
|
|
else
|
|
M.stop_pulling()
|
|
return TRUE
|
|
|
|
/datum/keybinding/mob/cycle_intent_right
|
|
key = "Home"
|
|
name = "cycle_intent_right"
|
|
full_name = "cycle intent right"
|
|
description = ""
|
|
|
|
/datum/keybinding/mob/cycle_intent_right/down(client/user)
|
|
var/mob/M = user.mob
|
|
M.a_intent_change(INTENT_HOTKEY_RIGHT)
|
|
return TRUE
|
|
|
|
/datum/keybinding/mob/cycle_intent_left
|
|
key = "Insert"
|
|
name = "cycle_intent_left"
|
|
full_name = "cycle intent left"
|
|
description = ""
|
|
|
|
/datum/keybinding/mob/cycle_intent_left/down(client/user)
|
|
var/mob/M = user.mob
|
|
M.a_intent_change(INTENT_HOTKEY_LEFT)
|
|
return TRUE
|
|
|
|
/datum/keybinding/mob/swap_hands
|
|
key = "X"
|
|
name = "swap_hands"
|
|
full_name = "Swap hands"
|
|
description = ""
|
|
|
|
/datum/keybinding/mob/swap_hands/down(client/user)
|
|
var/mob/M = user.mob
|
|
M.swap_hand()
|
|
return TRUE
|
|
|
|
/datum/keybinding/mob/activate_inhand
|
|
key = "Z"
|
|
name = "activate_inhand"
|
|
full_name = "Activate in-hand"
|
|
description = "Uses whatever item you have inhand"
|
|
|
|
/datum/keybinding/mob/activate_inhand/down(client/user)
|
|
var/mob/M = user.mob
|
|
M.mode()
|
|
return TRUE
|
|
|
|
/datum/keybinding/mob/drop_item
|
|
key = "Q"
|
|
name = "drop_item"
|
|
full_name = "Drop Item"
|
|
description = ""
|
|
|
|
/datum/keybinding/mob/drop_item/down(client/user)
|
|
if(iscyborg(user.mob)) //cyborgs can't drop items
|
|
return FALSE
|
|
var/mob/M = user.mob
|
|
var/obj/item/I = M.get_active_held_item()
|
|
if(!I)
|
|
to_chat(user, "<span class='warning'>You have nothing to drop in your hand!</span>")
|
|
else
|
|
user.mob.dropItemToGround(I)
|
|
return TRUE
|
|
|
|
/datum/keybinding/mob/toggle_move_intent
|
|
key = "Alt"
|
|
name = "toggle_move_intent"
|
|
full_name = "Hold to toggle move intent"
|
|
description = "Held down to cycle to the other move intent, release to cycle back"
|
|
|
|
/datum/keybinding/mob/toggle_move_intent/down(client/user)
|
|
var/mob/M = user.mob
|
|
M.toggle_move_intent()
|
|
return TRUE
|
|
|
|
/datum/keybinding/mob/toggle_move_intent/up(client/user)
|
|
var/mob/M = user.mob
|
|
M.toggle_move_intent()
|
|
return TRUE
|
|
|
|
/datum/keybinding/mob/toggle_move_intent_alternative
|
|
key = "Unbound"
|
|
name = "toggle_move_intent_alt"
|
|
full_name = "press to cycle move intent"
|
|
description = "Pressing this cycle to the opposite move intent, does not cycle back"
|
|
|
|
/datum/keybinding/mob/toggle_move_intent_alternative/down(client/user)
|
|
var/mob/M = user.mob
|
|
M.toggle_move_intent()
|
|
return TRUE
|
|
|
|
/datum/keybinding/mob/target_head_cycle
|
|
key = "Numpad8"
|
|
name = "target_head_cycle"
|
|
full_name = "Target: Cycle head"
|
|
description = ""
|
|
|
|
/datum/keybinding/mob/target_head_cycle/down(client/user)
|
|
user.body_toggle_head()
|
|
return TRUE
|
|
|
|
/datum/keybinding/mob/target_r_arm
|
|
key = "Numpad4"
|
|
name = "target_r_arm"
|
|
full_name = "Target: right arm"
|
|
description = ""
|
|
|
|
/datum/keybinding/mob/target_r_arm/down(client/user)
|
|
user.body_r_arm()
|
|
return TRUE
|
|
|
|
/datum/keybinding/mob/target_body_chest
|
|
key = "Numpad5"
|
|
name = "target_body_chest"
|
|
full_name = "Target: Body"
|
|
description = ""
|
|
|
|
/datum/keybinding/mob/target_body_chest/down(client/user)
|
|
user.body_chest()
|
|
return TRUE
|
|
|
|
/datum/keybinding/mob/target_left_arm
|
|
key = "Numpad6"
|
|
name = "target_left_arm"
|
|
full_name = "Target: left arm"
|
|
description = ""
|
|
|
|
/datum/keybinding/mob/target_left_arm/down(client/user)
|
|
user.body_l_arm()
|
|
return TRUE
|
|
|
|
/datum/keybinding/mob/target_right_leg
|
|
key = "Numpad1"
|
|
name = "target_right_leg"
|
|
full_name = "Target: Right leg"
|
|
description = ""
|
|
|
|
/datum/keybinding/mob/target_right_leg/down(client/user)
|
|
user.body_r_leg()
|
|
return TRUE
|
|
|
|
/datum/keybinding/mob/target_body_groin
|
|
key = "Numpad2"
|
|
name = "target_body_groin"
|
|
full_name = "Target: Groin"
|
|
description = ""
|
|
|
|
/datum/keybinding/mob/target_body_groin/down(client/user)
|
|
user.body_groin()
|
|
return TRUE
|
|
|
|
/datum/keybinding/mob/target_left_leg
|
|
key = "Numpad3"
|
|
name = "target_left_leg"
|
|
full_name = "Target: left leg"
|
|
description = ""
|
|
|
|
/datum/keybinding/mob/target_left_leg/down(client/user)
|
|
user.body_l_leg()
|
|
return TRUE
|