Merge pull request #333 from Jay-Sparrow/cloning

Cloning fix
This commit is contained in:
Dahlular
2020-07-17 19:39:51 -06:00
committed by GitHub
+4 -3
View File
@@ -204,9 +204,6 @@
H.give_genitals(TRUE)
H.suiciding = FALSE
H.custom_body_size = H.client.prefs.body_size
//H.size_multiplier = (max(min( round((H.custom_body_size)), MAX_BODYSIZE),MIN_BODYSIZE)* 0.01) //Not working dont know why.
H.resize(H.custom_body_size * 0.01)
attempting = FALSE
return TRUE
@@ -383,6 +380,10 @@
qdel(fl)
unattached_flesh.Cut()
//Do the resize on ejection. The clone pod seems to do a lot of matrix transforms the way size code does, so we will handle our resize after.
mob_occupant.previous_size = 1 //Set the previous size to default so the resize properly set health and speed.
mob_occupant.custom_body_size = mob_occupant.client.prefs.body_size
mob_occupant.resize(mob_occupant.custom_body_size * 0.01)
occupant = null
/obj/machinery/clonepod/proc/malfunction()