This commit is contained in:
Fluffy
2023-12-24 11:18:41 +00:00
committed by GitHub
parent 5f9e01fd27
commit 51a96cb43e
19 changed files with 88 additions and 38 deletions
@@ -128,7 +128,7 @@
QDEL_IN(record, 2 SECOND) // Need to restart the search if you've lost contact with the object.
if(contact.scannable) // Scannable objects are the only ones that give off notifications to prevent spam
visible_message(SPAN_NOTICE("\The [src] states, \"Contact lost with [record.name].\""))
playsound(loc, "sound/machines/sensors/contact_lost.ogg", 30, 1)
playsound(loc, 'sound/machines/sensors/contact_lost.ogg', 30, 1)
objects_in_view -= contact
continue
@@ -152,12 +152,12 @@
objects_in_view[contact] += round(sensors.sensor_strength**2)
if(!muted)
visible_message(SPAN_NOTICE("<b>\The [src]</b> states, \"Contact '[contact.unknown_id]' tracing [objects_in_view[contact]]% complete, bearing [bearing_estimate], error +/- [bearing_variability].\""))
playsound(loc, "sound/machines/sensors/contactgeneric.ogg", 10, 1) //Let players know there's something nearby.
playsound(loc, 'sound/machines/sensors/contactgeneric.ogg', 10, 1) //Let players know there's something nearby.
if(objects_in_view[contact] >= 100) // Identification complete.
record = new /datum/overmap_contact(src, contact)
contact_datums[contact] = record
if(contact.scannable)
playsound(loc, "sound/machines/sensors/newcontact.ogg", 30, 1)
playsound(loc, 'sound/machines/sensors/newcontact.ogg', 30, 1)
visible_message(SPAN_NOTICE("<b>\The [src]</b> states, \"New contact identified, designation [record.name], bearing [bearing].\""))
record.show()
animate(record.marker, alpha=255, 2 SECOND, 1, LINEAR_EASING)