some small things (#17693)

* some small things

* .

* clean this up

* potentially fix nulls in player list

* .

* Fixes

* Update machine_stacking.dm

---------

Co-authored-by: C.L. <killer65311@gmail.com>
This commit is contained in:
Kashargul
2025-05-15 00:56:26 -04:00
committed by GitHub
co-authored by C.L.
parent 52acbfa688
commit f84536fc3a
9 changed files with 19 additions and 22 deletions
+4
View File
@@ -374,6 +374,9 @@
/mob/verb/abandon_mob()
set name = "Return to Menu"
set category = "OOC.Game"
if(istype(src, /mob/new_player))
to_chat(src, span_boldnotice("You are already in the lobby!"))
return
if(stat != DEAD || !ticker)
to_chat(src, span_boldnotice("You must be dead to use this!"))
@@ -443,6 +446,7 @@
if(!client)
log_game("[key] AM failed due to disconnect.")
qdel(M)
M.key = null
return
M.has_respawned = TRUE //When we returned to main menu, send respawn message
+3 -2
View File
@@ -129,9 +129,10 @@
observer.name = observer.real_name
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!
observer.key = key
mind.transfer_to(observer, TRUE)
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(src)
return TRUE
+1 -2
View File
@@ -26,8 +26,7 @@
created_for = ckey
if(!QDELETED(src))
addtimer(CALLBACK(src, PROC_REF(do_after_login)), 4 SECONDS, TIMER_DELETE_ME)
addtimer(CALLBACK(src, PROC_REF(do_after_login)), 4 SECONDS, TIMER_DELETE_ME)
/mob/new_player/proc/do_after_login()
PRIVATE_PROC(TRUE)