tgui core 3.2.0 (#17715)

* tgui core 3.2.0

* .

* try tg method here

* .
This commit is contained in:
Kashargul
2025-05-19 22:53:57 +02:00
committed by GitHub
parent 271405059b
commit 033c99579b
9 changed files with 45 additions and 18 deletions
+6 -2
View File
@@ -95,11 +95,13 @@
LateChoices()
return TRUE
if("observe")
if(QDELETED(src))
return FALSE
if(!SSticker || SSticker.current_state == GAME_STATE_INIT)
to_chat(src, span_warning("The game is still setting up, please try again later."))
return TRUE
if(tgui_alert(src,"Are you sure you wish to observe? If you do, make sure to not use any knowledge gained from observing if you decide to join later.","Observe Round?",list("Yes","No")) == "Yes")
if(!client)
if(QDELETED(src) || !client)
return TRUE
//Make a new mannequin quickly, and allow the observer to take the appearance
@@ -130,9 +132,11 @@
if(!client.holder && !CONFIG_GET(flag/antag_hud_allowed)) // For new ghosts we remove the verb from even showing up if it's not allowed.
remove_verb(observer, /mob/observer/dead/verb/toggle_antagHUD) // Poor guys, don't know what they are missing!
mind.transfer_to(observer, TRUE)
observer.key = key
observer.set_respawn_timer(time_till_respawn()) // Will keep their existing time if any, or return 0 and pass 0 into set_respawn_timer which will use the defaults
observer.client.init_verbs()
QDEL_NULL(mind)
qdel(src)
return TRUE
+1
View File
@@ -12,6 +12,7 @@
if(!spawning)//Here so that if they are spawning and log out, the other procs can play out and they will have a mob to come back to.
key = null//We null their key before deleting the mob, so they are properly kicked out.
QDEL_NULL(mind)
qdel(src)
return