Actor PlantSuccubus : SuccubusBase
{
	Obituary  "%o had their life uprooted by an Poisonivy Succubus"
	Tag "PoisonIvy Succubus"
    DamageFactor ice,1.2
    DamageFactor Fire,1.2
	BloodColor "Green"
	+DONTHURTSPECIES
	+MissileMore
    Species "Nobles"
	States
	{
	Spawn:
	    SUC5 B 10 Bright A_Look
        Loop 
	See:
		TNT1 A 0 A_SpawnItem("HumanishStep",0,0,0,0)
		SUC5 AABB 3 A_Chase
		TNT1 A 0 A_SpawnItem("HumanishStep",0,0,0,0)
		SUC5 CCDD 3 A_Chase
		Loop
	Missile:
        TNT1 A 0 A_Jump(100, "PlantAttack")
		TNT1 A 0 A_Jump(75, "SpreadPoison")
		TNT1 A 0 A_Jump(75, "RapidBurst")
		TNT1 A 0 A_Jump(55, "Swarm")
	PlantAttack:
	    SUC5 E 8 Bright A_FaceTarget 
        SUC5 F 8 Bright A_FaceTarget
        SUC5 G 1 Bright A_Custommissile ("PlantShotLS", 27, 0, 0)
        TNT1 A 0 A_Jump(100, "RapidBurst")
		Goto See
	SpreadPoison:
        SUC5 E 8 Bright A_FaceTarget 
        SUC5 F 8 Bright A_FaceTarget
        SUC5 G 1 Bright A_Custommissile ("PlantShotLS", 27, 0, 25)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 20)
        TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 15)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 10)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 5)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 0)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -5)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -10)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -15)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -20)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -25)
	    SUC5 E 8 Bright
	    GoTo See	
	RapidBurst:
	    SUC5 E 8 Bright A_FaceTarget 
        SUC5 F 8 Bright A_FaceTarget
        SUC5 G 1 Bright A_Custommissile ("PlantShotLS", 27, 0, 0)
		SUC5 E 8 Bright A_FaceTarget 
        SUC5 F 8 Bright A_FaceTarget
        SUC5 G 1 Bright A_Custommissile ("PlantShotLS", 27, 0, 0)
		SUC5 E 8 Bright A_FaceTarget 
        SUC5 F 8 Bright A_FaceTarget
        SUC5 G 1 Bright A_Custommissile ("PlantShotLS", 27, 0, 0)
		SUC5 E 8 Bright A_FaceTarget 
        SUC5 F 8 Bright A_FaceTarget
        SUC5 G 1 Bright A_Custommissile ("PlantShotLS", 27, 0, 0)
		SUC5 E 8 Bright A_FaceTarget 
        SUC5 F 8 Bright A_FaceTarget
        SUC5 G 1 Bright A_Custommissile ("PlantShotLS", 27, 0, 0)
		SUC5 E 8 Bright A_FaceTarget 
        SUC5 F 8 Bright A_FaceTarget
        SUC5 G 1 Bright A_Custommissile ("PlantShotLS", 27, 0, 0)
		SUC5 A 20 Bright
		Goto See
	Swarm:
	    SUC5 E 8 Bright A_FaceTarget 
        SUC5 F 8 Bright A_FaceTarget
        SUC5 G 1 Bright A_Custommissile ("PlantShotLS", 27, 0, 25)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 20)
        TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 15)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 10)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 5)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 0)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -5)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -10)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -15)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -20)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -25)
	    SUC5 E 8 Bright A_FaceTarget 
        SUC5 F 8 Bright A_FaceTarget
        SUC5 G 1 Bright A_Custommissile ("PlantShotLS", 27, 0, 25)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 20)
        TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 15)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 10)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 5)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 0)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -5)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -10)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -15)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -20)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -25)
	    SUC5 E 8 Bright A_FaceTarget 
        SUC5 F 8 Bright A_FaceTarget
        SUC5 G 1 Bright A_Custommissile ("PlantShotLS", 27, 0, 25)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 20)
        TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 15)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 10)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 5)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 0)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -5)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -10)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -15)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -20)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -25)
	    SUC5 E 8 Bright A_FaceTarget 
        SUC5 F 8 Bright A_FaceTarget
        SUC5 G 1 Bright A_Custommissile ("PlantShotLS", 27, 0, 25)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 20)
        TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 15)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 10)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 5)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, 0)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -5)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -10)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -15)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -20)
	    TNT1 A 0 Bright A_Custommissile ("PlantShotLS", 27, 0, -25)
	    SUC5 E 16 Bright
	    Goto See
	Pain: 
        SUC5 L 2 Bright 
        SUC5 L 2 Bright A_Pain 
        Goto See
	Death: 
		SUC5 M 7 Bright
		SUC5 N 7 Bright A_Scream 
		SUC5 O 7 Bright
		SUC5 P 7  A_NoBlocking 
		SUC5 QRST 7
		SUC5 U -1 
		Stop 
	Raise:
		SUC5 UTSRQ 8 Bright
		SUC5 P 0 A_PlaySoundEx("pyr/resurrected", 3)
		SUC5 PONM 8 Bright
		Goto See 
	}
}

actor PlantShotLS : FastProjectile
{
    PoisonDamage 24
	DeathSound "weapons/bowhit"
	SeeSound "weapons/wandhit"
	Radius 4
	Height 4
	Speed 14
	Damage 8
	States
	{
	Spawn:
		TNT1 A 0 A_Jump(192,1)
		TNT1 A 0 A_SpawnItemEx("PGSLeafPurple",frandom(-4,4),frandom(-4,4),frandom(-4,4))
		TNT1 AA 0 A_SpawnItemEx("PGSLeaf",frandom(-4,4),frandom(-4,4),frandom(-4,4))
		TNT1 A 0 A_ChangeVelocity(0,frandom(-0.03,0.03),frandom(-0.04,0.04),CVF_RELATIVE)
		TNT1 A 0 A_ScaleVelocity(1.05)
		TNT1 A 2
		loop
	Death:
		TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("PGSLeaf",-2,0,1,frandom(-8,8),frandom(-8,8),frandom(-8,8),random(0,360),SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS,0)
		FX01 EF 3 BRIGHT
		FX01 GH 3 BRIGHT 
		Stop
	}
}

ACTOR PGSLeaf
{
	+NOGRAVITY
	RenderStyle "Normal"
	Scale 0.75
	Height 4
	Radius 4
	States
	{
	Spawn:
		TNT1 A 0
		TNT1 A 0 A_Jump(128,"Sideways")
		FX01 EEEFFFGGGHHH 1 BRIGHT
		Stop
	Sideways:
		FX01 IIIJJJKKKLLL 1 BRIGHT
		Stop
	}
}

ACTOR PGSLeafPurple : PGSLeaf
{
	States
	{
	Spawn:
		TNT1 A 0
		TNT1 A 0 A_Jump(128,"Sideways")
		FX02 EEEFFFGGGHHH 1 BRIGHT
		Stop
	Sideways:
		FX02 IIIJJJKKKLLL 1 BRIGHT
		Stop
	}
}