Skip to content

Commit

Permalink
md blips now show to people in 1 tile radius (#404)
Browse files Browse the repository at this point in the history
Co-authored-by: Doubleumc <[email protected]>
  • Loading branch information
AndroBetel and Doubleumc committed Sep 4, 2024
1 parent 7481c88 commit c81fa64
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/game/objects/items/devices/motion_detector.dm
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@

range_bounds.set_shape(cur_turf.x, cur_turf.y, detector_range * 2)

var/list/ping_receivers = list()
for(var/mob/living/carbon/human/humans in range(1, human_user))
ping_receivers += humans

var/list/ping_candidates = SSquadtree.players_in_range(range_bounds, cur_turf.z, QTREE_EXCLUDE_OBSERVER | QTREE_SCAN_MOBS)

for(var/A in ping_candidates)
Expand All @@ -230,7 +234,8 @@
apply_debuff(M)
ping_count++
if(human_user)
show_blip(human_user, M)
for(var/mob/living/carbon/human/show_ping_to as anything in ping_receivers)
show_blip(show_ping_to, M)

for(var/mob/hologram/holo as anything in GLOB.hologram_list)
if(!holo.motion_sensed)
Expand Down

0 comments on commit c81fa64

Please sign in to comment.