Facehugger to Full alien, all player controlled

This commit is contained in:
ZomgPonies
2014-01-19 16:45:20 -05:00
parent f0438a52b8
commit 65d023dd93
15 changed files with 11757 additions and 11761 deletions
+4 -6
View File
@@ -417,24 +417,22 @@ Alien plants should do something if theres a lot of poison
proc/Grow()
icon_state = "egg"
status = GROWN
new /obj/item/clothing/mask/facehugger(src)
return
proc/Burst(var/kill = 1) //drops and kills the hugger if any is remaining
if(status == GROWN || status == GROWING)
var/obj/item/clothing/mask/facehugger/child = GetFacehugger()
icon_state = "egg_hatched"
flick("egg_opening", src)
status = BURSTING
spawn(15)
status = BURST
loc.contents += child//need to write the code for giving it to the alien later
if(kill && istype(child))
child.Die()
var/mob/living/carbon/alien/facehugger/F = new /mob/living/carbon/alien/facehugger(src.loc)
if(kill)
F.stat=2
else
for(var/mob/M in range(1,src))
if(CanHug(M))
child.Attach(M)
F.Attach(M)
break