Update say_vr.dm
This commit is contained in:
@@ -144,33 +144,14 @@
|
|||||||
message = "<span class='emote'><b>[user]</b> <i>[user.say_emphasis(message)]</i></span>"
|
message = "<span class='emote'><b>[user]</b> <i>[user.say_emphasis(message)]</i></span>"
|
||||||
|
|
||||||
var/list/show_to = list()
|
var/list/show_to = list()
|
||||||
var/list/processing = list()
|
var/list/processed = list()
|
||||||
var/safety = 25
|
|
||||||
for(var/obj/structure/table/T in range(user, 1))
|
for(var/obj/structure/table/T in range(user, 1))
|
||||||
processing |= T
|
if(processed[T])
|
||||||
for(var/i = 1; i <= processing.len; ++i)
|
continue
|
||||||
var/obj/structure/table/T = processing[i]
|
for(var/obj/structure/table/T2 in T.connected_floodfill(25))
|
||||||
if(safety-- <= 0)
|
processed[T2] = TRUE
|
||||||
to_chat(user, "Table scan aborted early, some people might have not received the message (max 25)")
|
for(var/mob/living/L in range(T2, 1))
|
||||||
break
|
show_to |= L
|
||||||
if(get_dist(T, user) > 7)
|
|
||||||
continue // nah
|
|
||||||
processing |= T
|
|
||||||
for(var/mob/living/M in range(T, 1)) // no ghosts/cameramobs
|
|
||||||
show_to |= M
|
|
||||||
var/obj/structure/table/other
|
|
||||||
other = locate() in get_step(T, NORTH)
|
|
||||||
if(other)
|
|
||||||
processing |= other
|
|
||||||
other = locate() in get_step(T, SOUTH)
|
|
||||||
if(other)
|
|
||||||
processing |= other
|
|
||||||
other = locate() in get_step(T, WEST)
|
|
||||||
if(other)
|
|
||||||
processing |= other
|
|
||||||
other = locate() in get_step(T, EAST)
|
|
||||||
if(other)
|
|
||||||
processing |= other
|
|
||||||
|
|
||||||
for(var/i in show_to)
|
for(var/i in show_to)
|
||||||
var/mob/M = i
|
var/mob/M = i
|
||||||
|
|||||||
Reference in New Issue
Block a user