mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
Ports /tg/ spatial grid system, refactors telecomms, destroys lag (#15140)
This commit is contained in:
@@ -138,7 +138,7 @@ when portals are shortly lived, or when portals are made to be obvious with spec
|
||||
|
||||
/obj/effect/map_effect/portal/master/Initialize()
|
||||
LAZYADD(all_portal_masters, src)
|
||||
LAZYADD(listening_objects, src)
|
||||
become_hearing_sensitive()
|
||||
find_lines()
|
||||
..()
|
||||
return INITIALIZE_HINT_LATELOAD
|
||||
@@ -150,7 +150,6 @@ when portals are shortly lived, or when portals are made to be obvious with spec
|
||||
|
||||
/obj/effect/map_effect/portal/master/Destroy()
|
||||
LAZYREMOVE(all_portal_masters, src)
|
||||
LAZYREMOVE(listening_objects, src)
|
||||
for(var/thing in portal_lines)
|
||||
qdel(thing)
|
||||
return ..()
|
||||
@@ -232,12 +231,9 @@ when portals are shortly lived, or when portals are made to be obvious with spec
|
||||
if(!counterpart)
|
||||
return
|
||||
var/turf/T = counterpart.get_focused_turf()
|
||||
var/list/mobs_to_relay = list()
|
||||
var/list/objs = list()
|
||||
get_mobs_or_objs_in_view(T, world.view, mobs_to_relay, objs)
|
||||
var/list/mobs_to_relay = get_hearers_in_view(world.view, T)
|
||||
|
||||
for(var/thing in mobs_to_relay)
|
||||
var/mob/mob = thing
|
||||
for(var/mob/mob in mobs_to_relay)
|
||||
var/rendered = span("message", "[text]")
|
||||
mob.show_message(rendered)
|
||||
|
||||
@@ -249,12 +245,9 @@ when portals are shortly lived, or when portals are made to be obvious with spec
|
||||
return
|
||||
var/rendered = span("message", "[msg]")
|
||||
var/turf/T = counterpart.get_focused_turf()
|
||||
var/list/mobs_to_relay = list()
|
||||
var/list/objs = list()
|
||||
get_mobs_or_objs_in_view(T, world.view, mobs_to_relay, objs)
|
||||
var/list/mobs_to_relay = get_hearers_in_view(world.view, T)
|
||||
|
||||
for(var/thing in mobs_to_relay)
|
||||
var/mob/mob = thing
|
||||
for(var/mob/mob in mobs_to_relay)
|
||||
mob.show_message(rendered)
|
||||
|
||||
..()
|
||||
@@ -264,12 +257,9 @@ when portals are shortly lived, or when portals are made to be obvious with spec
|
||||
if(!counterpart)
|
||||
return
|
||||
var/turf/T = counterpart.get_focused_turf()
|
||||
var/list/mobs_to_relay = list()
|
||||
var/list/objs = list()
|
||||
get_mobs_or_objs_in_view(T, world.view, mobs_to_relay, objs)
|
||||
var/list/mobs_to_relay = get_hearers_in_view(world.view, T)
|
||||
|
||||
for(var/thing in mobs_to_relay)
|
||||
var/mob/mob = thing
|
||||
for(var/mob/mob in mobs_to_relay)
|
||||
var/accent_icon = M.get_accent_icon(speaking, src)
|
||||
var/name_used = M.GetVoice()
|
||||
var/rendered = null
|
||||
|
||||
Reference in New Issue
Block a user