Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
Doubleumc committed May 18, 2024
1 parent 5da327a commit bee355c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
12 changes: 10 additions & 2 deletions code/modules/mob/living/carbon/human/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1272,10 +1272,18 @@

if(!H || H.w_uniform?.sensor_mode != SENSOR_MODE_LOCATION)
return
if(H.z != src.z || get_dist(src,H) < 1 || src == H)

var/atom/tracking_atom = H
if(tracking_atom.z != src.z && SSinterior.in_interior(tracking_atom))
var/datum/interior/interior = SSinterior.get_interior_by_coords(tracking_atom.x, tracking_atom.y, tracking_atom.z)
var/atom/exterior = interior.exterior
if(exterior)
tracking_atom = exterior

if(tracking_atom.z != src.z || get_dist(src, tracking_atom) < 1 || src == tracking_atom)
hud_used.locate_leader.icon_state = "trackondirect[tracking_suffix]"
else
hud_used.locate_leader.setDir(Get_Compass_Dir(src,H))
hud_used.locate_leader.setDir(Get_Compass_Dir(src, tracking_atom))
hud_used.locate_leader.icon_state = "trackon[tracking_suffix]"

/mob/living/carbon/proc/locate_nearest_nuke()
Expand Down
6 changes: 6 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/life.dm
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,12 @@ Make sure their actual health updates immediately.*/
queen_locator()
return

if(tracking_atom.loc.z != loc.z && SSinterior.in_interior(tracking_atom))
var/datum/interior/interior = SSinterior.get_interior_by_coords(tracking_atom.x, tracking_atom.y, tracking_atom.z)
var/atom/exterior = interior.exterior
if(exterior)
tracking_atom = exterior

if(tracking_atom.loc.z != loc.z || get_dist(src, tracking_atom) < 1 || src == tracking_atom)
locator.icon_state = "trackondirect"
else
Expand Down

0 comments on commit bee355c

Please sign in to comment.