mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 13:07:46 +01:00
Allows roundstart observers to freely use antag HUD without losing respawnability (#23009)
* First pass * do away with old antag hud variable * rework cannotPossess * some verification + cleanups * Update code/modules/mob/dead/observer/observer_base.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> * splits up log call * Slightly refactor proc calls, continuing contra's review * Log admin --------- Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
@@ -137,13 +137,6 @@
|
||||
|
||||
return 1
|
||||
|
||||
/proc/cannotPossess(A)
|
||||
var/mob/dead/observer/G = A
|
||||
if(G.has_enabled_antagHUD && GLOB.configuration.general.restrict_antag_hud_rejoin)
|
||||
return 1
|
||||
return 0
|
||||
|
||||
|
||||
/proc/iscuffed(A)
|
||||
if(iscarbon(A))
|
||||
var/mob/living/carbon/C = A
|
||||
@@ -808,6 +801,12 @@ GLOBAL_LIST_INIT(intents, list(INTENT_HELP,INTENT_DISARM,INTENT_GRAB,INTENT_HARM
|
||||
/mob/proc/attempt_listen_to_deadsay()
|
||||
|
||||
|
||||
/mob/proc/is_roundstart_observer()
|
||||
return (ckey in GLOB.roundstart_observer_keys)
|
||||
|
||||
/mob/proc/has_ahudded()
|
||||
return (ckey in GLOB.antag_hud_users)
|
||||
|
||||
/// Proc to PROPERLY set mob invisibility, huds gotta get set too!
|
||||
/mob/proc/set_invisible(invis_value)
|
||||
if(invis_value)
|
||||
|
||||
Reference in New Issue
Block a user