Skip to content

Commit

Permalink
alt face dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustKisik committed Oct 20, 2024
1 parent eabcc6f commit a858e3e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions code/_onclick/hud/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -382,4 +382,19 @@

/obj/screen/movement/Click(location, control, params)
if(istype(usr))
var/list/modifiers = params2list(params)
if(modifiers["ctrl"])
usr?.face_direction()
update_icon()
return

usr.set_next_usable_move_intent()

/obj/screen/movement/on_update_icon()
. = ..()
var/image/chached_fixeye = image('packs/infinity/icons/mob/screen/facedir.dmi', icon_state = "facedir1")
if(!isnull(usr?.facing_dir))
src.dir = usr?.facing_dir
AddOverlays(chached_fixeye)
else
ClearOverlays()
Binary file added packs/infinity/icons/mob/screen/facedir.dmi
Binary file not shown.

0 comments on commit a858e3e

Please sign in to comment.