mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-25 01:22:13 +00:00
Add ringers (#3414)
Adds ringers at Juani's request. Pretty much a console you can use your PDA on to add it to a list, then, there is a button someone can click and it will ping you.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
//-------------------------------
|
||||
// Buttons
|
||||
// Sender: intended to be used by buttons, when the button is pressed it will call activate() on all connected /button
|
||||
// Sender: intended to be used by buttons, when the button is pressed it will call activate() on all connected /button
|
||||
// receivers.
|
||||
// Receiver: does whatever the subtype does. deactivate() by default calls activate(), so you will have to override in
|
||||
// Receiver: does whatever the subtype does. deactivate() by default calls activate(), so you will have to override in
|
||||
// it in a subtype if you want it to do something.
|
||||
//-------------------------------
|
||||
/datum/wifi/sender/button/activate(mob/living/user)
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
//-------------------------------
|
||||
// Doors
|
||||
// Sender: sends an open/close request to all connected /door receivers. Utilises spawn_sync to trigger all doors to
|
||||
// Sender: sends an open/close request to all connected /door receivers. Utilises spawn_sync to trigger all doors to
|
||||
// open at approximately the same time. Waits until all doors have finished opening before returning.
|
||||
// Receiver: will try to open/close the parent door when activate/deactivate is called.
|
||||
//-------------------------------
|
||||
@@ -35,7 +35,7 @@
|
||||
return
|
||||
|
||||
var/datum/spawn_sync/S = new()
|
||||
|
||||
|
||||
for (var/thing in GET_LISTENERS(id))
|
||||
var/listener/L = thing
|
||||
var/datum/wifi/receiver/button/door/D = L.target
|
||||
@@ -102,7 +102,7 @@
|
||||
var/obj/machinery/power/emitter/E = parent
|
||||
if(istype(E) && !E.active)
|
||||
E.activate(user) //if the emitter is not active, trigger the activate proc to toggle it
|
||||
|
||||
|
||||
/datum/wifi/receiver/button/emitter/deactivate(mob/living/user)
|
||||
var/obj/machinery/power/emitter/E = parent
|
||||
if(istype(E) && E.active)
|
||||
@@ -159,7 +159,6 @@
|
||||
var/obj/machinery/igniter/I = parent
|
||||
if(I.on)
|
||||
I.ignite()
|
||||
|
||||
//-------------------------------
|
||||
// Sparker
|
||||
// Triggers the parent /sparker to ignite().
|
||||
@@ -172,7 +171,7 @@
|
||||
|
||||
//-------------------------------
|
||||
// Mass Driver
|
||||
// Sender: carries out a sequence of first opening all connected doors, then activating all connected mass drivers,
|
||||
// Sender: carries out a sequence of first opening all connected doors, then activating all connected mass drivers,
|
||||
// then closes all connected doors. It will wait before continuing the sequence after opening/closing the doors.
|
||||
// Receiver: Triggers the parent mass dirver to activate.
|
||||
//-------------------------------
|
||||
|
||||
Reference in New Issue
Block a user