Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code/modules/keybindings/bindings_mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@
if("Alt")
toggle_move_intent()
return
return ..()
return ..()
28 changes: 28 additions & 0 deletions code/modules/mob/mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,34 @@
client.last_turn = world.time + MOB_FACE_DIRECTION_DELAY
return TRUE

/mob/verb/eastshift()
set hidden = TRUE
if(!canface())
return FALSE
if(pixel_x <= 16)
pixel_x++

/mob/verb/westshift()
set hidden = TRUE
if(!canface())
return FALSE
if(pixel_x >= -16)
pixel_x--

/mob/verb/northshift()
set hidden = TRUE
if(!canface())
return FALSE
if(pixel_y <= 16)
pixel_y++

/mob/verb/southshift()
set hidden = TRUE
if(!canface())
return FALSE
if(pixel_y >= -16)
pixel_y--

/mob/proc/IsAdvancedToolUser()//This might need a rename but it should replace the can this mob use things check
return FALSE

Expand Down
22 changes: 17 additions & 5 deletions yogstation/code/modules/keybindings/bindings_mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,28 @@

switch(dir)
if(NORTH)
northface()
if(user.prefs.bindings.isheld_key("Shift"))
northshift()
else
northface()
return
if(SOUTH)
southface()
if(user.prefs.bindings.isheld_key("Shift"))
southshift()
else
southface()
return
if(WEST)
westface()
if(user.prefs.bindings.isheld_key("Shift"))
westshift()
else
westface()
return
if(EAST)
eastface()
if(user.prefs.bindings.isheld_key("Shift"))
eastshift()
else
eastface()
return

return ..()
return ..()