mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
Adds true observing -- letting you see what your target sees (#24855)
* bring it back now y'all * adds a bunch of other changes * pretty much works at this point * grep * Fixes some bugs, still chasing some down * Add observers to recursive mob check, ensuring they can see messages from their orbitted atom * tidy some things up * resolve * remove unnecessary checks * Address todos, minor cleanups * oh dear * initial testing * Fix some vulnerabilities (oops) * Fix some other bugs from testing * ci fixes * Add some contingencies against clicking things you shouldn't * fix some noted bugs * Add observe to admin jump, improve messaging * add a few more fixes that should mostly address some runtimes * oh this wasn't really great * one last thing * Fix suit inventory problem * Remove merge artifact * Add some missing parens * Prevents you from observing other ghosts, and should fix the getting stuck outside of your body issue. * we love testing * adds to player panel * Fix more bugs with observers getting stuck outside of their body * cleans up player panel, verb offerings * shit * Update code/_onclick/hud/alert.dm welp Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com> Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com> * Fixes some targeting issues * Fixes targeting on aobserve * Fix some weird storage bugs * clean up some doulbed up follow links * Update code/modules/admin/player_panel.dm Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com> * Adds some checks for ghost observe * Remove mentor debug log * ahhhhhhhhh that'll do it * Cleans up some additional checks that were not quite what they should have been * better logging, too * mochi review * one more thing * Gets robot huds mostly working * hopefully fix folks not getting observe * Fix order of operations causing a runtime on qdeleting * Remove some unnecessary stack traces * Apply suggestions from code review Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com> * Fix bug with items in your inventory disappearing on changing HUD modes * Fix some bugs with the observe verbs * possibly fix nullspace issues * funny review * missed one --------- Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com> Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
var/default_button_position = SCRN_OBJ_IN_LIST
|
||||
/// Map of huds viewing a button with our action -> their button
|
||||
var/list/viewers = list()
|
||||
/// Whether or not this will be shown to observers
|
||||
var/show_to_observers = TRUE
|
||||
|
||||
|
||||
/datum/action/New(Target)
|
||||
@@ -49,6 +51,8 @@
|
||||
Remove(owner)
|
||||
owner = M
|
||||
RegisterSignal(owner, COMSIG_PARENT_QDELETING, PROC_REF(clear_ref), override = TRUE)
|
||||
SEND_SIGNAL(src, COMSIG_ACTION_GRANTED, owner)
|
||||
SEND_SIGNAL(owner, COMSIG_MOB_GRANTED_ACTION, src)
|
||||
GiveAction(M)
|
||||
|
||||
/datum/action/proc/Remove(mob/remove_from)
|
||||
@@ -64,6 +68,9 @@
|
||||
if(isnull(owner))
|
||||
return
|
||||
|
||||
SEND_SIGNAL(src, COMSIG_ACTION_REMOVED, owner)
|
||||
SEND_SIGNAL(owner, COMSIG_MOB_REMOVED_ACTION, src)
|
||||
|
||||
if(target == owner)
|
||||
RegisterSignal(target, COMSIG_PARENT_QDELETING, PROC_REF(clear_ref), override = TRUE)
|
||||
if(owner == remove_from)
|
||||
|
||||
@@ -163,6 +163,7 @@
|
||||
orbiter.animate_movement = SLIDE_STEPS
|
||||
if(!QDELETED(parent))
|
||||
SEND_SIGNAL(parent, COMSIG_ATOM_ORBIT_STOP, orbiter)
|
||||
SEND_SIGNAL(orbiter, COMSIG_ATOM_ORBITER_STOP, parent)
|
||||
|
||||
orbiter.transform = get_cached_transform(orbiter)
|
||||
orbiter.layer = get_orbiter_layer(orbiter)
|
||||
|
||||
Reference in New Issue
Block a user