//A god dammed Wizard from the god dammed Mayhem Mansion!. (Need to fix the projectile shooting count [seriously, this one is pretty, pretty, preeeeeeeeeeeeetty weird for me]).

class DaWizord : Actor
{
	//$Category Desgraciados
	//$Title The Wizard Toy
	
	actor unjuguetevivo;
	Default
	{
	health 1250;
	height 70;
	radius 24;
	speed 10;
	Painchance 60;
	DamageFactor "Kaboomz",0;
	DamageFactor "ice",2;
	DamageFactor "Grenade", 0.10;
	DamageFactor "Diabetes", 0;
	DamageFactor "Ass", 0;
	DamageFactor "Air", 0;
	DamageFactor "Radiation", 50;
	DamageFactor "Maser", 0.3;
	DamageFactor "Steel", 0.1;
	DamageFactor "Time", 15;
	DamageFactor "HipTo", 0;
	DamageFactor "Bloon", 0.5;
	DamageFactor "Powder", 0.7;
	DamageFactor "Huje", 0;
	DamageFactor "Fire", 3;
	DamageFactor "Images", 0;
	DamageFactor "Poison", 1;
	DamageFactor "Ramming", 0.1;
	DamageFactor "Lightning", 1;
	Mass 1234567890;
	scale 0.5;
	Monster;
	+NOICEDEATH;
	+MISSILEMORE;
	+MISSILEEVENMORE;
	+FLOORCLIP;
	+DONTOVERLAP;
	+DONTMORPH;
	+NOBLOOD;
	seesound "FantasiadeDisney/WIZSEE";
	activesound "FantasiadeDisney/WIZSEE";
	painsound "FantasiadeDisney/SCREAM02";
	deathsound "FantasiadeDisney/SCREAM02";
	Obituary "%o was hocus pocus'd by the wizard toy.";
	Tag "Wizard toy";
	}
	States
	{
	Spawn:
		TOYY A 5 A_look();
		loop;
	See:
		TOYY ABCD 7 A_Chase();
		Loop;
	Missile:
		TOYY G 0 A_PlaySound("FantasiadeDisney/WIZATK",5);
		TOYY G 9 A_FaceTarget();
		TOYY H 0 A_Playsound("FantasiadeDisney/DSTVSHOT");
		TOYY HHH 2 A_SpawnProjectile("Staticblast",28,0,random(-1,1));
		TOYY H 7;
		TOYY G 9;
		TOYY H 0 A_Playsound("FantasiadeDisney/POP01");
		TOYY HHHHHHH 2 A_SpawnProjectile("UnFrisbee",28,0,random(-4,4),0);
		TOYY H 4;
		Goto See;
	Pain:
		TOYY E 2;
		TOYY E 2 A_Pain();
		Goto See;
	Death:
		TOYY I 0;
		TOYY I 0;
		TOYY II 0;
		TOYY I 5 A_Scream();
		TOYY J 5 A_NoBlocking();
		TOYY K 5;
		TOYY LMNOPQR 5;
		stop;
	}
}

class Staticblast : Actor
{
	Default
	{
	Radius 6;
	Height 8;
	Speed 13;
	Damage 6;
	Scale 0.5;
	Projectile;
	+RANDOMIZE;
	DeathSound "fatso/shotx";
	SeeSound "FantasiadeDisney/MWOO";
	}
	States
	{
	Spawn:
		TVBL AB 4 bright;
		Loop;
	Death:
		TVBL A 1 bright;
		Stop;
	}
}

class UnFrisbee : Actor //Need to fix the weaveness like the og 
{
	Default
	{
	Radius 3;
	height 8;
	speed 13;
	Damage 5;
	Gravity .2;
	DamageType "Kaboomz";
	Projectile;
	+RANDOMIZE;
	+NOGRAVITY;
	deathsound "FantasiadeDisney/FACEDETH";
	obituary "%o exploded in a thousand pieces!";
	}
	States
	{
	Spawn:
		BYCZ A 3 bright A_Weave(3,0,1.0,0.0);
		loop;
	Death:
		BEWM A 0 A_SetScale(1.1,0.8);
		BEWM A 6 Bright A_Explode(10,90);
		BEWM BCDE 5 Bright;
		Stop;
	}
}