mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
More MayRespawn checks.
Astral projecting wizards/cultists may no longer respawn as something else.
This commit is contained in:
@@ -620,6 +620,12 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
|||||||
return 1
|
return 1
|
||||||
|
|
||||||
mob/dead/observer/MayRespawn(var/feedback = 0)
|
mob/dead/observer/MayRespawn(var/feedback = 0)
|
||||||
|
if(!client || !mind)
|
||||||
|
return 0
|
||||||
|
if(mind.current && mind.current.stat != DEAD)
|
||||||
|
if(feedback)
|
||||||
|
src << "<span class='warning'>Your non-dead body prevent you from respawning.</span>"
|
||||||
|
return 0
|
||||||
if(config.antag_hud_restricted && has_enabled_antagHUD == 1)
|
if(config.antag_hud_restricted && has_enabled_antagHUD == 1)
|
||||||
if(feedback)
|
if(feedback)
|
||||||
src << "<span class='warning'>antagHUD restrictions prevent you from respawning.</span>"
|
src << "<span class='warning'>antagHUD restrictions prevent you from respawning.</span>"
|
||||||
|
|||||||
Reference in New Issue
Block a user