actor IceBrood : broodslime
{
	Speed 20
    bloodtype Dukebloodsplatter
	Obituary "%o couldn't dodge a Cold Spore's frigid booger."
	Translation "126:126=194:194", "125:125=199:199", "6:6=203:203", "111:111=193:193", "101:101=195:195", "109:109=197:197", "91:91=193:193", "5:5=197:197", "0:0=207:207", "8:8=207:207", "120:120=192:192", "119:119=195:195", "112:116=192:195", "107:107=201:201", "113:124=192:198", "100:109=193:196", "144:151=194:201", "73:75=197:199"
	states
	{
	see:
		TNT1 AAA 0 a_spawnitemex("iceparticle",0,0,0,0,0,-3)
		WSLI AABBCCBB 2 a_chase 
		TNT1 A 0 a_takeinventory ("slimecooldown", 3)
		TNT1 A 0 a_playsound ("wyvern/fly",0)
		TNT1 A 0 a_playsound ("Broodslime/wing",0,1,0,2.0)
		TNT1 AAAA 0 a_spawnitemex("iceparticle",0,0,0,0,0,-3)				
		loop
	missile:
		TNT1 a 0
		WSLI DEF 4 bright a_facetarget
		TNT1 A 0 a_jumpifinventory ("slimecooldown",1, "weakshot")
		TNT1 A 0 a_playsound ("Broodslime/attack",0)
		WSLI F 3 A_custommissile ("iceslimeshot")
		TNT1 A 0 a_giveinventory ("slimecooldown", 50)
		WSLI F 2
		goto see
	weakshot:
		TNT1 A 0
		TNT1 A 0 a_playsound ("Broodslime/attack",0)
		WSLI F 3 A_custommissile ("weakiceslimeshot")
		TNT1 A 0 a_takeinventory ("slimecooldown", 10)
		WSLI F 2
		goto see
	pain:
		WSLI G 4
		TNT1 A 0 a_takeinventory ("PowerKickedStatus",999)
		TNT1 A 0 A_TakeInventory ("PowerTerrorStatus",999)
		WSLI G 4 a_pain
		goto see
	death:
		TNT1 A 0
		TNT1 A 1 a_fall
		TNT1 A 0 a_spawnitemex ("groundiceslime",0,0,5,0,0,5,0,SXF_NOCHECKPOSITION)
		TNT1 AAAAAA 0 a_spawnitemex("iceparticle",0,0,0,random(-10,10),random(-10,10),15) 		
		TNT1 AAAAAAAAAAA 0 a_spawnitemex("iceparticle",0,0,0,random(-10,10),random(-10,10),15) 		
		TNT1 A 1
		stop
	xdeath:
		TNT1 A 0
		TNT1 A 1 a_fall
		TNT1 A 0 a_scream
		TNT1 AAAAAA 0 a_spawnitemex("iceparticle",0,0,0,random(-10,10),random(-10,10),15) 		
		TNT1 AAAAAAAAAAAAA 0 a_spawnitemex("iceparticle",0,0,0,random(-10,10),random(-10,10),15) 		
		TNT1 AAAAAAAAAA 0 a_spawnitemex ("DukeBloodSplatter",0,0,0,random(-10,10),random(-10,10),random(5,10))       
		TNT1 AAAAAAAAAA 0 a_spawnitemex ("DukeBloodSplatter",0,0,0,random(-15,20),random(-14,16),random(5,10))       
		TNT1 AAAAAAAA 0 a_spawnitemex ("DukeBloodSplatter",0,0,0,random(-10,10),random(-10,10),random(5,10))       
		TNT1 AAAAAA 0 a_spawnitemex ("DukeBloodSplatter",0,0,0,random(-10,10),random(-10,10),random(5,10))       
		TNT1 A 1
		stop	
	}
}


actor groundiceslime : groundslime
{
	Speed 20
    bloodtype Dukebloodsplatter
	Obituary "%o couldn't dodge a Brood slime's snotrocket."
	Translation "126:126=194:194", "125:125=199:199", "6:6=203:203", "111:111=193:193", "101:101=195:195", "109:109=197:197", "91:91=193:193", "5:5=197:197", "0:0=207:207", "8:8=207:207", "120:120=192:192", "119:119=195:195", "112:116=192:195", "107:107=201:201", "113:124=192:198", "100:109=193:196", "144:151=194:201", "73:75=197:199"
	states
	{
	missile:
		TNT1 A 0
		GSLI A 1 a_jumpifcloser (300, "considerjump")
	considerjump:
		TNT1 A 0
		GSLI A 1 a_jump (80,"jumpattack")
	arcshot:
		GSLI A 3 a_facetarget
		GSLI B 4 a_facetarget
		GSLI B 4 a_facetarget
		TNT1 A 0 a_playsound ("Broodslime/attack",0)
		GSLI C 1 a_custommissile ("iceslimearcball",10)
		GSLI C 3
		goto see
	land:
		GSLI C 2 a_stop
		GSLI C 1 
		TNT1 A 0 a_playsound ("broodslime/slimeballhit",0)
		TNT1 AAAAAA 0 a_spawnitemex("iceparticle",0,0,0,random(-10,10),random(-10,10),15) 		
		GSLI B 2
		GSLI A 2 
		TNT1 AAAAA 0 a_spawnitemex("iceslimeegg",0,0,0,random(-20,20),random(-20,20),15,0,SXF_NOCHECKPOSITION) 		
		GSLI B 5
		GSLI C 2
		GSLI A 1
		goto see
	split:
		TNT1 A 0
		TNT1 A 0 a_playsound ("broodslime/split",0)
		GSPT A 4
		GSPT B 4
		GSPT C 4
		GSPT BC 2
		GSPT BC 2
		GSPT D 2
		GSLI B 1 a_spawnitemex ("clonediceslime",0,0,0,random(-20,20),random(-20,20),15,0,SXF_NOCHECKPOSITION)
		TNT1 A 0 a_takeinventory ("nosplit", 99)
		TNT1 A 0 a_takeinventory ("splitcounter", 999)
		GSLI B 15 a_facetarget
		goto see
	pain:
		TNT1 A 0 a_takeinventory ("splitcounter", 5)
		TNT1 A 0 A_TakeInventory ("PowerTerrorStatus",999)
 		TNT1 A 0 A_TakeInventory ("PowerKickedStatus",999)
		GSLI F 6 
		GSLI F 6 a_pain
		goto see
	death:
		TNT1 A 0
		TNT1 A 1 a_fall
		TNT1 A 0 a_scream
		TNT1 AAAAAA 0 a_spawnitemex("iceparticle",0,0,0,random(-10,10),random(-10,10),15) 		
		TNT1 AAAAAAAAAAA 0 a_spawnitemex("iceparticle",0,0,0,random(-10,10),random(-10,10),15) 		
		TNT1 AAAAAAAA 0 a_spawnitemex ("DukeBloodSplatter",0,0,0,random(-10,10),random(-10,10),random(5,10))       
		TNT1 AAAAAAAA 0 a_spawnitemex ("DukeBloodSplatter",0,0,0,random(-15,20),random(-14,16),random(5,10))       
		TNT1 AAAA 0 a_spawnitemex ("DukeBloodSplatter",0,0,0,random(-10,10),random(-10,10),random(5,10))       
		TNT1 AAAA 0 a_spawnitemex ("DukeBloodSplatter",0,0,0,random(-10,10),random(-10,10),random(5,10))       
		stop
	}
}


actor clonediceslime : groundiceslime
{ 
	states
	{
	spawn:
		TNT1 A 0
		GSLI AAAABBBB 8 a_look
		loop
	}
}

actor iceslimeshot : slimeshot 
{
	Speed 25
	scale 2
	Damage (10)
	damagetype "icearrow"
	Translation "126:126=194:194", "125:125=199:199", "6:6=203:203", "111:111=193:193", "101:101=195:195", "109:109=197:197", "91:91=193:193", "5:5=197:197", "0:0=207:207", "8:8=207:207", "120:120=192:192", "119:119=195:195", "112:116=192:195", "107:107=201:201", "113:124=192:198", "100:109=193:196", "144:151=194:201", "73:75=197:199"
	Projectile
	states
	{
	spawn:
		SLAT AB 5 a_spawnitemex("iceparticle",0,0,0,random(-5,5),random(-3,3),-3)
		TNT1 AAA 0 a_spawnitemex("iceparticle",0,0,0,random(-5,5),random(-3,3),-3)			
		loop
	death:
		TNT1 AAAAAAA 0 a_spawnitemex("iceparticle",0,0,0,random(-10,10),random(-10,10),15) 		
		TNT1 AAAAAAAA 0 a_spawnitemex("iceslimeegg",0,0,0,random(-10,10),random(-10,10),10,0,SXF_NOCHECKPOSITION) 		
		TNT1 A 0 a_playsound ("broodslime/slimeballhit",0)
		TNT1 A 0 a_playsound ("broodslime/slimeballsplit",0)
		SLAT CDEF 4
		stop
	}
}

actor weakiceslimeshot : weakslimeshot
{
	scale 1
	Translation "126:126=194:194", "125:125=199:199", "6:6=203:203", "111:111=193:193", "101:101=195:195", "109:109=197:197", "91:91=193:193", "5:5=197:197", "0:0=207:207", "8:8=207:207", "120:120=192:192", "119:119=195:195", "112:116=192:195", "107:107=201:201", "113:124=192:198", "100:109=193:196", "144:151=194:201", "73:75=197:199"
	states
	{
	death:
		TNT1 AAAAAAA 0 a_spawnitemex("iceparticle",0,0,0,random(-10,10),random(-10,10),15) 		
		TNT1 AAAA 0 a_spawnitemex("iceslimeegg",0,0,0,random(-10,10),random(-10,10),10) 		
		TNT1 A 0 a_playsound ("broodslime/slimeballhit",0)
		TNT1 A 0 a_playsound ("broodslime/slimeballsplit",0)
		SLAT CDEF 4
		stop
	}
}

actor iceslimearcball  : slimearcball 
{
	damagetype "icearrow"
	Translation "126:126=194:194", "125:125=199:199", "6:6=203:203", "111:111=193:193", "101:101=195:195", "109:109=197:197", "91:91=193:193", "5:5=197:197", "0:0=207:207", "8:8=207:207", "120:120=192:192", "119:119=195:195", "112:116=192:195", "107:107=201:201", "113:124=192:198", "100:109=193:196", "144:151=194:201", "73:75=197:199"
	states
	{
	spawn:
		TNT1 A 0
		SLAT G 1 bright a_spawnitemex ("icearctrail")
		TNT1 A 0 thrustthingz (0,45,0,0)
	flying:
		SLAT G 1 bright a_spawnitemex ("icearctrail")		
		SLAT H 1 bright a_spawnitemex ("icearctrail")
		loop
	Death:
		TNT1 A 0 a_changeflag ("nogravity", 1)
		TNT1 A 0 a_playsound ("broodslime/slimeballhit",0)
		TNT1 A 0 a_playsound ("broodslime/slimeballsplit",0)
		TNT1 AA 0 a_spawnitemex("iceslimeegg",0,0,0,random(-10,10),random(-10,10),10,0,SXF_NOCHECKPOSITION) 		
		SLAT CDEF 4 bright
		stop
	}
}

actor icearctrail : arctrail
{
	+NOINTERACTION
	+clientsideonly
	Radius 4
	Height 5
	scale 0.80
	Translation "126:126=194:194", "125:125=199:199", "6:6=203:203", "111:111=193:193", "101:101=195:195", "109:109=197:197", "91:91=193:193", "5:5=197:197", "0:0=207:207", "8:8=207:207", "120:120=192:192", "119:119=195:195", "112:116=192:195", "107:107=201:201", "113:124=192:198", "100:109=193:196", "144:151=194:201", "73:75=197:199"
	States
	{
	Spawn:
		TNT1 A 0
		TNT1 A 2
		SLAT G 5 bright
		SLAT G 1 Bright a_fadeout (0.40)
		wait
	}
}


actor iceslimeegg : slimeegg
{
	Translation "126:126=194:194", "125:125=199:199", "6:6=203:203", "111:111=193:193", "101:101=195:195", "109:109=197:197", "91:91=193:193", "5:5=197:197", "0:0=207:207", "8:8=207:207", "120:120=192:192", "119:119=195:195", "112:116=192:195", "107:107=201:201", "113:124=192:198", "100:109=193:196", "144:151=194:201", "73:75=197:199"
	states
	{
	spawn:
		LSLI D 1
		loop
	death:
		TNT1 A 0 a_spawnitem ("icebroodling")
		stop
	}
}

actor icebroodling : broodling
{
 	damagetype "icearrow"
	bloodtype dukebloodsplatter
	Obituary "%o fell under the weight of the Broodlings"
	Translation "126:126=194:194", "125:125=199:199", "6:6=203:203", "111:111=193:193", "101:101=195:195", "109:109=197:197", "91:91=193:193", "5:5=197:197", "0:0=207:207", "8:8=207:207", "120:120=192:192", "119:119=195:195", "112:116=192:195", "107:107=201:201", "113:124=192:198", "100:109=193:196", "144:151=194:201", "73:75=197:199"
	states
	{
	burst:
		TNT1 AAAA 0 a_spawnitemex("iceparticle",0,0,0,random(-10,10),random(-10,10),10) 		
		TNT1 AAAA 0 a_spawnitemex("iceparticle",0,0,0,random(-10,10),random(-10,10),10) 		
		TNT1 AAAAAA 0 a_spawnitemex("iceparticle",0,0,0,random(-10,10),random(-10,10),10) 		
		TNT1 A 0 a_playsound ("broodling/burst",0)
		TNT1 A 0 a_custommeleeattack (5,0,0,"icearrow")
		TNT1 A 0 a_fall
		TNT1 A 1
		stop
	death:
		TNT1 A 0 a_fall
		TNT1 A 0 a_playsound ("broodling/die",0)
		TNT1 AAAA 0 a_spawnitemex ("DukeBloodSplatter",0,0,0,random(-10,10),random(-10,10),random(5,10))       
		TNT1 A 1
		stop
	}
}

