New Human Mobs will have the appearance of the client's preferences

New human mobs created via Admin Simple Transform, Admin Spawn Antagonist, and Wizard Apprentice functions will take on the appearance of the players' preferences, instead of the boring default Bald, White Male.

Also fixes an minor issue with using transfer_to() a new observer mob.
This commit is contained in:
ikarrus
2014-04-27 14:40:28 -06:00
parent 7abac87bf0
commit c7041eefce
3 changed files with 6 additions and 6 deletions
+1
View File
@@ -64,6 +64,7 @@
/obj/item/weapon/antag_spawner/contract/spawn_antag(var/client/C, var/turf/T, var/type = "")
new /obj/effect/effect/harmless_smoke(T)
var/mob/living/carbon/human/M = new/mob/living/carbon/human(T)
C.prefs.copy_to(M)
M.key = C.key
M << "<B>You are the [usr.real_name]'s apprentice! You are bound by magic contract to follow their orders and help them in accomplishing their goals."
switch(type)
+1 -5
View File
@@ -392,11 +392,7 @@ client/proc/one_click_antag()
//First we spawn a dude.
var/mob/living/carbon/human/new_character = new(pick(latejoin))//The mob being spawned.
new_character.gender = pick(MALE,FEMALE)
var/datum/preferences/A = new()
A.copy_to(new_character)
G_found.client.prefs.copy_to(new_character)
ready_dna(new_character)
new_character.key = G_found.key
@@ -44,10 +44,13 @@
var/mob/living/carbon/C = src
var/mob/living/carbon/D = M
D.dna = C.dna
updateappearance(D)
else
if(istype(M, /mob/living/carbon/human))
src.client.prefs.copy_to(M)
ready_dna(M)
if(mind)
if(mind && istype(M, /mob/living))
mind.transfer_to(M)
else
M.key = key