mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 06:00:23 +01:00
TG Signal Port (#18741)
* click code start * snake_span * Update click.dm * Update click.dm * Update click.dm * WIP signal organization * Moooore signals * cuffs * decon * whoops * revert this * Proper name * movable moved * These * Theeese * Sort these * Update cyborg.dm
This commit is contained in:
@@ -349,7 +349,7 @@
|
||||
video_source = comm.camera
|
||||
comm.visible_message(span_danger("[icon2html(src,viewers(src))] New video connection from [comm]."))
|
||||
update_active_camera_screen()
|
||||
RegisterSignal(video_source, COMSIG_OBSERVER_MOVED, PROC_REF(update_active_camera_screen))
|
||||
RegisterSignal(video_source, COMSIG_MOVABLE_ATTEMPTED_MOVE, PROC_REF(update_active_camera_screen))
|
||||
video_source.AddComponent(/datum/component/recursive_move)
|
||||
update_icon()
|
||||
|
||||
@@ -357,7 +357,7 @@
|
||||
// Parameters: reason - the text reason to print for why it ended
|
||||
// Description: Ends the video call by clearing video_source
|
||||
/obj/item/communicator/proc/end_video(var/reason)
|
||||
UnregisterSignal(video_source, COMSIG_OBSERVER_MOVED)
|
||||
UnregisterSignal(video_source, COMSIG_MOVABLE_ATTEMPTED_MOVE)
|
||||
show_static()
|
||||
video_source = null
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
|
||||
/obj/item/defib_kit/attack_hand(mob/living/user)
|
||||
// See important note in tethered_item.dm
|
||||
if(SEND_SIGNAL(src,COMSIG_ITEM_ATTACK_SELF,user) & COMPONENT_NO_INTERACT)
|
||||
if(SEND_SIGNAL(src,COMSIG_ITEM_ATTACK_SELF,user) & COMPONENT_CANCEL_ATTACK_CHAIN)
|
||||
return TRUE
|
||||
. = ..()
|
||||
|
||||
|
||||
@@ -40,14 +40,14 @@ GLOBAL_LIST_EMPTY(GPS_list)
|
||||
/obj/item/gps/proc/update_holder()
|
||||
|
||||
if(holder && loc != holder)
|
||||
UnregisterSignal(holder, COMSIG_OBSERVER_MOVED)
|
||||
UnregisterSignal(holder, COMSIG_MOVABLE_ATTEMPTED_MOVE)
|
||||
//GLOB.dir_set_event.unregister(holder, src)
|
||||
holder.client?.screen -= compass
|
||||
holder = null
|
||||
|
||||
if(istype(loc, /mob))
|
||||
holder = loc
|
||||
RegisterSignal(holder, COMSIG_OBSERVER_MOVED, PROC_REF(update_compass), override = TRUE)
|
||||
RegisterSignal(holder, COMSIG_MOVABLE_ATTEMPTED_MOVE, PROC_REF(update_compass), override = TRUE)
|
||||
holder.AddComponent(/datum/component/recursive_move)
|
||||
//GLOB.dir_set_event.register(holder, src, PROC_REF(update_compass))
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
/obj/item/bluespaceradio/attack_hand(mob/living/user)
|
||||
// See important note in tethered_item.dm
|
||||
if(SEND_SIGNAL(src,COMSIG_ITEM_ATTACK_SELF,user) & COMPONENT_NO_INTERACT)
|
||||
if(SEND_SIGNAL(src,COMSIG_ITEM_ATTACK_SELF,user) & COMPONENT_CANCEL_ATTACK_CHAIN)
|
||||
return TRUE
|
||||
. = ..()
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
|
||||
/obj/item/tvcamera/proc/update_feed()
|
||||
if(camera.status)
|
||||
SEND_SIGNAL(camera, COMSIG_OBSERVER_MOVED) // Forward the movement signal
|
||||
SEND_SIGNAL(camera, COMSIG_MOVABLE_ATTEMPTED_MOVE) // Forward the movement signal
|
||||
|
||||
//Assembly by roboticist
|
||||
|
||||
|
||||
Reference in New Issue
Block a user