ghost roles fix
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/H = user
|
||||
H.checkloadappearance() // GS13 EDIT
|
||||
//see code/modules/mob/dead/new_player/preferences.dm at approx line 545 for comments!
|
||||
//this is largely copypasted from there.
|
||||
|
||||
|
||||
@@ -56,6 +56,12 @@
|
||||
if(send_to_spawnpoint)
|
||||
move_to_spawnpoint()
|
||||
|
||||
//GS13 EDIT START
|
||||
var/mob/living/carbon/human/H = owner.current
|
||||
H.checkloadappearance()
|
||||
//GS13 EDIT END
|
||||
|
||||
|
||||
/datum/antagonist/nukeop/get_team()
|
||||
return nuke_team
|
||||
|
||||
|
||||
@@ -30,6 +30,11 @@
|
||||
create_objectives()
|
||||
if(move_to_lair)
|
||||
send_to_lair()
|
||||
//GS13 EDIT START
|
||||
var/mob/living/carbon/human/H = owner.current
|
||||
H.mirrorcanloadappearance = TRUE
|
||||
H.checkloadappearance()
|
||||
//GS13 EDIT END
|
||||
. = ..()
|
||||
if(allow_rename)
|
||||
rename_wizard()
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
var/banType = "lavaland"
|
||||
var/ghost_usable = TRUE
|
||||
var/skip_reentry_check = FALSE //Skips the ghost role blacklist time for people who ghost/suicide/cryo
|
||||
var/mirrorcanloadappearance = TRUE //GS13 EDIT
|
||||
|
||||
///override this to add special spawn conditions to a ghost role
|
||||
/obj/effect/mob_spawn/proc/allow_spawn(mob/user, silent = FALSE)
|
||||
@@ -139,6 +140,7 @@
|
||||
M.mind.assigned_role = assignedrole
|
||||
special(M, name)
|
||||
MM.name = M.real_name
|
||||
M.checkloadappearance() // GS13 EDIT
|
||||
if(uses > 0)
|
||||
uses--
|
||||
if(!permanent && !uses)
|
||||
@@ -251,6 +253,10 @@
|
||||
W.assignment = id_job
|
||||
W.registered_name = H.real_name
|
||||
W.update_label()
|
||||
//GS13 EDIT START
|
||||
if (mirrorcanloadappearance)
|
||||
H.mirrorcanloadappearance = TRUE
|
||||
//GS13 EDIT END
|
||||
|
||||
//Instant version - use when spawning corpses during runtime
|
||||
/obj/effect/mob_spawn/human/corpse
|
||||
|
||||
Reference in New Issue
Block a user