ACTOR Guncaster3 : Guncaster
{
	Player.ColorRange 187, 202
	
	Player.ColorSet 0, "Cygnis", 165, 180, 176
	Player.ColorSet 1, "Neymathir", 122, 138, 138
	Player.ColorSet 2, "Vermathin", 33, 44, 39
	Player.ColorSet 3, "Surtra", 164, 171, 169
	Player.ColorSet 4, "Azaron", 186, 195, 191
	Player.ColorSet 5, "Leurith", 0, 15, 0
	Player.ColorSet 6, "Blain", 146, 161, 155
	Player.ColorSet 7, "Xaeratustra", 231, 239, 239
	
	//Player.SpawnClass Any
	//Player.FlechetteType "CasterPoisonBag"
	
	//We're inheriting, we don't care about start items
	//Player.StartItem VisionToggler
	//Player.StartItem Dergfist
	
	//Player.StartItem Longhorn2
	//Player.StartItem BlueMana 20
	//Player.StartItem Mana 100
	//Player.StartItem Dosh 400 
	
	States
	{
	Spawn:
		CYG3 A -1
		Stop
 	 See:
		CYG3 A 0 A_JumpIfInventory("PowerBerserkDamage",1,"SeeBerserk")
 		CYG3 A 0 A_SpawnItemEx("GuncasterStep", 0, 0, 0, 0, 0, -10, 0,0, 0) 
		CYG3 AB 5
 		CYG3 C 0 A_SpawnItemEx("GuncasterStep", 0, 0, 0, 0, 0, -10, 0,0, 0)
		CYG3 CD 5
		Goto Spawn
	SeeBerserk:
 		CYG3 A 0 A_SpawnItemEx("BerserkStep", 0, 0, 0, 0, 0, -10, 0,0, 0) 
		CYG3 AB 5
 		CYG3 C 0 A_SpawnItemEx("BerserkStep", 0, 0, 0, 0, 0, -10, 0,0, 0)
		CYG3 CD 5
		Goto Spawn
	Melee:
		CYG3 F 6 Bright
		Goto Missile
	Missile:
		CYG3 E 12
		Goto Spawn
	Pain:
		CYG3 G 3
		CYG3 G 3 A_Pain
		Goto Spawn
	Death:
	AltSkinDeath:
		CYG3 H 5
		CYG3 I 5 A_PlayerScream
		CYG3 J 5 A_NoBlocking
		CYG3 K 5
		CYG3 L -1
		Stop
	XDeath:
	AltSkinXDeath:
		CYG3 H 5
		CYG3 I 5 A_PlayerScream
		CYG3 J 5 A_NoBlocking
		CYG3 K 5
		CYG3 L -1
		Stop
	Death.Acid:
		CYG3 G 1
		"####" "#" 1 A_Playsound("Gumpop/Expand",5)
		"####" "###################################" 1 A_SetScale(ScaleX+frandom(0.01,0.025))
		"####" "#" 1 A_Playsound("Gumpop/Pop",5)
		TNT1 AAAAAA 0 A_CustomMissile ("CeilBloodLauncherLong", 0, 0, random (0, 360), 2, random (50, 130))
		TNT1 AA 0 A_CustomMissile ("XDeath1", 32, 0, random (0, 360), 2, random (0, 160))
		TNT1 AA 0 A_CustomMissile ("XDeath2", 32, 0, random (0, 360), 2, random (0, 160))
		TNT1 AA 0 A_CustomMissile ("XDeath3", 32, 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeath4", 32, 0, random (0, 360), 2, random (0, 160))
		TNT1 AAAAAAAA 0 A_CustomMissile ("SuperWallRedBlood", 40, 0, random (0, 360), 2, random (-5, 5))
		TNT1 AAAA 0 A_CustomMissile ("Instestin", 32, 0, random (0, 360), 2, random (0, 160))
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAA 0 A_CustomMissile ("Brutal_FlyingBlood", 35, 0, random (0, 360), 2, random (0, 160))
		TNT1 AAAAAA 0 A_CustomMissile ("SuperGoreSpawner", 32, 0, random (0, 360), 2, random (50, 130))
		TNT1 A 0 A_ChangeFlag("SOLID", 0)
		TNT1 A 0 A_ChangeFlag("FLOORCLIP", 1)
		XMED ABCDE 5
		Wait
	}

}