mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
Look Up (#9082)
Shift clicking the up-hint in the top right corner will now indicate any open turfs in a radius around you, as long as it's in your line of sight.
This commit is contained in:
@@ -286,9 +286,29 @@
|
||||
usr.client.drop_item()
|
||||
|
||||
if("up hint")
|
||||
var/list/modifiers = params2list(params)
|
||||
if(modifiers["shift"])
|
||||
if(ishuman(usr))
|
||||
var/mob/living/carbon/human/H = usr
|
||||
if(H.last_special + 50 > world.time)
|
||||
return
|
||||
H.last_special = world.time
|
||||
to_chat(usr, SPAN_NOTICE("You take look around to see if there are any holes in the roof around."))
|
||||
for(var/turf/T in view(usr.client.view + 3, usr)) // slightly extra to account for moving while looking for openness
|
||||
if(T.density)
|
||||
continue
|
||||
var/turf/above_turf = GetAbove(T)
|
||||
if(!isopenspace(above_turf))
|
||||
continue
|
||||
var/image/up_image = image(icon = 'icons/mob/screen/generic.dmi', icon_state = "arrow_up", loc = T)
|
||||
up_image.plane = LIGHTING_LAYER + 1
|
||||
up_image.layer = LIGHTING_LAYER + 1
|
||||
usr << up_image
|
||||
addtimer(CALLBACK(GLOBAL_PROC, /proc/qdel, up_image), 12)
|
||||
return
|
||||
var/turf/T = GetAbove(usr)
|
||||
if (!T)
|
||||
to_chat(usr, "<span class='notice'>There is nothing above you!</span>")
|
||||
to_chat(usr, SPAN_NOTICE("There is nothing above you!"))
|
||||
else if (T.is_hole)
|
||||
to_chat(usr, "<span class='notice'>There's no roof above your head! You can see up!</span>")
|
||||
else
|
||||
@@ -419,4 +439,4 @@
|
||||
if(hud.mymob && iscarbon(hud.mymob))
|
||||
var/mob/living/carbon/C = hud.mymob
|
||||
if(C.handcuffed)
|
||||
overlays |= handcuff_overlay
|
||||
overlays |= handcuff_overlay
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
author: Geeves
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- rscadd: "Shift clicking the up-hint in the top right corner will now indicate any open turfs in a radius around you, as long as it's in your line of sight."
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 164 KiB After Width: | Height: | Size: 160 KiB |
Reference in New Issue
Block a user