diff --git a/code/modules/keybindings/bindings_mob.dm b/code/modules/keybindings/bindings_mob.dm index f49235acf41d..8703794631a5 100644 --- a/code/modules/keybindings/bindings_mob.dm +++ b/code/modules/keybindings/bindings_mob.dm @@ -80,4 +80,4 @@ if("Alt") toggle_move_intent() return - return ..() \ No newline at end of file + return ..() diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index bd802e2babab..89a8184f791b 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -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 diff --git a/yogstation/code/modules/keybindings/bindings_mob.dm b/yogstation/code/modules/keybindings/bindings_mob.dm index cd855c627ae8..97e023cb37fe 100644 --- a/yogstation/code/modules/keybindings/bindings_mob.dm +++ b/yogstation/code/modules/keybindings/bindings_mob.dm @@ -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 ..() \ No newline at end of file + return ..()