Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

md blips now show to people in 1 tile radius #404

Merged
merged 3 commits into from
Sep 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading