//------------------------------------------------------------------------------
actor MagePlayer : PlayerPawn
{
	Health 100
	Radius 16
	Height 64
	PainChance 255
	RadiusDamageFactor 0.25
	PainSound "PlayerMagePain"
	Player.ViewHeight 48
	Player.ForwardMove 0.88, 0.92
	Player.SideMove 0.875, 0.925
	Player.ColorRange 146, 163
	Player.HexenArmor 5, 5, 15, 10, 25
	Player.JumpZ 9
	Player.SoundClass "mage"
	Player.DisplayName "Mage"
	Player.HealRadiusType "Mana"
	Player.InvulnerabilityMode "Reflective"
	Player.SpawnClass "Mage"
	Player.ScoreIcon "mageface"
	Player.StartItem "MWeapWand"
	states
	{
	Spawn:
		MAGE A -1
		Stop
	See:
		MAGE ABCD 4
		Loop
	Melee:
	Missile:
		MAGE E 8
		MAGE F 8 Bright
		Goto Spawn
	Pain:
		MAGE G 4
		MAGE G 4 A_Pain
		Goto Spawn
	Death:
		MAGE H 6
		MAGE I 6 A_PlayerScream
		MAGE JK 6
		MAGE L 6 A_NoBlocking
		MAGE M 6
		MAGE N -1
		Stop
	XDeath:
		MAGE O 5 A_PlayerScream
		MAGE P 5
		MAGE R 5 A_NoBlocking
		MAGE STUVW 5
		MAGE X -1
		Stop
	Ice:
		MAGE Y 5 A_FreezeDeath
		MAGE Y 1 A_FreezeDeathChunks
		Wait
	Burn:
		FDTH E 5 Bright A_PlaySound("*burndeath")
		FDTH F 4 Bright
		FDTH G 5 Bright
		FDTH H 4 Bright A_PlayerScream
		FDTH I 5 Bright
		FDTH J 4 Bright
		FDTH K 5 Bright
		FDTH L 4 Bright
		FDTH M 5 Bright
		FDTH N 4 Bright
		FDTH O 5 Bright
		FDTH P 4 Bright
		FDTH Q 5 Bright
		FDTH R 4 Bright
		FDTH S 5 Bright A_NoBlocking
		FDTH T 4 Bright
		FDTH U 5 Bright
		FDTH V 4 Bright
		ACLO E 35 A_CheckPlayerDone
		Wait
		ACLO E 8
		Stop
	}
}
