Actor BasePlayerPawn : PlayerPawn
{
	Species "Player"
	Radius 16
	Height 64
	PainChance 256
	Speed 1
	
	+NOSKIN
	+THRUSPECIES
	+NOICEDEATH
	+DONTBLAST
	-NODAMAGETHRUST
	+DONTHARMSPECIES
	+QUICKTORETALIATE
	+NOTHRUSTWHENINVUL
	
	Player.JumpZ 9
	Player.Viewheight 48
	Player.ForwardMove 1.0,1.0
	Player.SideMove 1.0,1.0
	Player.MaxHealth 99999
	Player.HexenArmor 0, 0, 0, 0, 0
	Player.DamageScreenColor "Black", 0
	Player.AttackZOffset 12
	RadiusDamageFactor 0.25
	DamageFactor AcolyteHealing, 0
	DamageFactor "PhysicalPlayer", 0
	DamageFactor "ArcanePlayer", 0
	DamageFactor "FirePlayer", 0
	DamageFactor "IcePlayer", 0
	DamageFactor "LightningPlayer", 0
	DamageFactor "PoisonPlayer", 0
	DamageFactor "HolyPlayer", 0
    DamageFactor "ShadowPlayer", 0
	Damagefactor "Suicide", 1000
	Damagefactor "Telefrag", 1000
}

//----------------------------MODIFIED CLASSES
Actor NewFighterPlayer : BasePlayerPawn Replaces FighterPlayer
{	
	Health 130
	Player.SpawnClass "Fighter"
	Player.DisplayName "Fighter"
	Player.Portrait "P_FWALK1"
	Player.SoundClass "fighter"
	Player.ScoreIcon "FITEFACE"
	PainSound "PlayerFighterPain"
	Player.StartItem "CurrentMaxHealth", 130
	Player.StartItem "ImAFighter"
	Player.StartItem "SpikedGauntlets",1
	Player.StartItem "Level",1
	Player.StartItem "MP",22
	Player.StartItem "Rolling", 6
	Player.StartItem "Strength",15
	Player.StartItem "Agility",12
	Player.StartItem "Constitution",15
	Player.StartItem "Wisdom",5
	Player.StartItem "Intellect",5
	Player.StartItem "Charisma",10
	Player.StartItem "LvlUp",1
	Player.ColorRange 246, 254
	States
	{
	Spawn:
		FIGH A -1
		Loop
	See:
		FIGH ABCD 4
		Goto Spawn
	Missile:
	Melee:
		FIGH E 0 A_GiveInventory("BracersOfForceActivate")
		FIGH EF 8
		Goto Spawn
	Pain:
	Pain.Physical:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Arcane:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Fire:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Ice:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Lightning: Pain.Electric:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Poison: Pain.PoisonCloud: Pain.Slime: Pain.Nature:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Holy:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Shadow:
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Bleed:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.ShadowTime:
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	PainAnim:
	PainAnimTime:
		FIGH G 4
		FIGH G 4 A_Pain
		Goto Spawn
	Pain.ManaDrain:
		FIGH G 0 A_TakeInventory("Mana1", 5)
		FIGH G 0 A_TakeInventory("Mana2", 5)
		Goto Pain.Holy
	Death:
	Death.Physical:
	Death.Bleed:
	Death.TeleFrag:
	Death.Suicide:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Arcane: Death.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Fire: Death.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Burn
	Death.Ice: Death.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Ice
	Death.Lightning: Death.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Poison: Death.PoisonCloud: Death.Slime: Death.Nature: Death.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Holy: Death.ManaDrain: Death.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Shadow: Death.ShadowTime: 
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	DeathAnim:
		FIGH H 6
		FIGH I 6 A_PlayerScream
		FIGH JK 6
		FIGH L 6 A_NoBlocking
		FIGH M 6
		FIGH N -1
		Stop
	XDeath:
	XDeath.Physical:
	XDeath.Bleed:
	XDeath.TeleFrag:
	XDeath.Suicide:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Arcane: XDeath.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Fire: XDeath.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Burn
	XDeath.Ice: XDeath.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Ice
	XDeath.Lightning: XDeath.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Poison: XDeath.PoisonCloud: XDeath.Slime: XDeath.Nature: XDeath.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Holy: XDeath.ManaDrain: XDeath.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Shadow: XDeath.ShadowTime: 
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeathAnim: 
		FIGH O 0 A_SpawnItem("GIBBER")
		FIGH O 5 A_PlayerScream
		FIGH P 5 //A_SkullPop("BloodyFighterSkull")
		FIGH R 5 A_NoBlocking
		FIGH STUV 5
		FIGH W -1
		Stop
	Ice:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		NULL A 0 A_NoBlocking
		NULL A 0 A_PlaySound("misc/freeze")
		NULL A 1 A_SpawnItemEx("FighterIceCorpse",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TRANSFERSCALE)
		NULL AA -1
		Stop
	Burn:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		FDTH A 5 BRIGHT A_PlaySound("*burndeath")
		FDTH B 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
	}
}


Actor NewClericPlayer : BasePlayerPawn Replaces ClericPlayer
{
	Health 100
	PainSound "PlayerClericPain"
	Player.SpawnClass "Cleric"
	Player.DisplayName "Cleric"
	Player.SoundClass "cleric"
	Player.ScoreIcon "CLERFACE"
	Player.Portrait "P_CWALK1"
	Player.InvulnerabilityMode "Ghost"
	Player.StartItem "ImACleric"
	Player.StartItem "MaceOfContrition",1
	Player.StartItem "Level",1
	Player.StartItem "MP",37
	Player.StartItem "Strength",12
	Player.StartItem "Agility",8
	Player.StartItem "Constitution",13
	Player.StartItem "Wisdom",8
	Player.StartItem "Intellect",7
	Player.StartItem "Charisma",14
	Player.StartItem "CurrentMaxHealth", 100
	Player.StartItem "LvlUp",1
	Player.ColorRange 146, 163
	states
	{
	Spawn:
		CLER A -1
		Loop
	Pain.ManaDrain:
		CLER G 0 A_TakeInventory("Mana1", 5)
  		CLER G 0 A_TakeInventory("Mana2", 5)
    Goto Pain.Holy
	Pain:
	Pain.Physical:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Arcane:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Fire:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Ice:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Lightning: Pain.Electric:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Poison: Pain.PoisonCloud: Pain.Slime: Pain.Nature:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Holy:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Shadow:
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Bleed:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.ShadowTime:
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	PainAnim:
		CLER H 0 A_JumpIfInventory("Retribution", random(1,10), 2)
		CLER H 0 A_Jump(256,2)
		CLER H 0 A_CustomMissile("RetributionBall")//A_TakeInventory("ClericArmorBonus", 1)
		/*CLER H 0 A_JumpIfInventory("IsInquisitor", 1, 2)
		CLER H 0 A_Jump(256,2)
		CLER H 0 A_GiveInventory("MP",ACS_NamedExecuteWithResult("WOC Player Scale", 1, CONSTITUTION, 0, ACTIVATOR))//A_TakeInventory("ClericArmorBonus", 1)*/
	PainAnimTime:	
		CLER H 4
		CLER H 4 A_Pain
		Goto Spawn 
	See:
		CLER ABCD 4
		Goto Spawn
	Missile:
	Melee:
		CLER E 0 A_GiveInventory("BracersOfForceActivate")
		CLER EF 5
		CLER G 6
		Goto Spawn
	Death:
	Death.Physical:
	Death.Bleed:
	Death.TeleFrag:
	Death.Suicide:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Arcane: Death.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Fire: Death.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Burn
	Death.Ice: Death.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Ice
	Death.Lightning: Death.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Poison: Death.PoisonCloud: Death.Slime: Death.Nature: Death.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Holy: Death.ManaDrain: Death.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Shadow: Death.ShadowTime: 
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	DeathAnim:
		CLER I 6
		CLER J 6 A_PlayerScream
		CLER KL 6
		CLER M 6 A_NoBlocking
		CLER NOP 6
		CLER Q -1
		Stop
	XDeath:
	XDeath.Physical:
	XDeath.Bleed:
	XDeath.TeleFrag:
	XDeath.Suicide:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Arcane: XDeath.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Fire: XDeath.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Burn
	XDeath.Ice: XDeath.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Ice
	XDeath.Lightning: XDeath.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Poison: XDeath.PoisonCloud: XDeath.Slime: XDeath.Nature: XDeath.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Holy: XDeath.ManaDrain: XDeath.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Shadow: XDeath.ShadowTime: 
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeathAnim: 
		CLER R 0 A_SpawnItem("GIBBER")
		CLER R 5 A_PlayerScream
		CLER S 5
		CLER T 5 A_NoBlocking
		CLER UVWXYZ 5
		CLER [ -1
		Stop
	Ice:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		NULL A 0 A_NoBlocking
		NULL A 0 A_PlaySound("misc/freeze")
		NULL A 1 A_SpawnItemEx("ClericIceCorpse",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TRANSFERSCALE)
		NULL AA -1
		Stop
	Burn:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		FDTH C 5 Bright A_PlaySound("*burndeath")
		FDTH D 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
	}
}

Actor NewMagePlayer : BasePlayerPawn Replaces MagePlayer
{
	Health 55
	PainSound "PlayerMagePain"
	Player.SpawnClass "Mage"
	Player.DisplayName "Mage"
	Player.SoundClass "mage"
	Player.ScoreIcon "MAGEFACE"
	Player.Portrait "P_MWALK1"
	Player.InvulnerabilityMode "Reflective"
	Player.StartItem "CurrentMaxHealth", 55
	Player.StartItem "ImAMage"
	Player.StartItem "SapphireWand",1
	Player.StartItem "Level",1
	Player.StartItem "MP",100
	Player.StartItem "Strength",7
	Player.StartItem "Agility",7
	Player.StartItem "Constitution",7
	Player.StartItem "Wisdom",14
	Player.StartItem "Intellect",15
	Player.StartItem "Charisma",10
	Player.StartItem "LvlUp",1
	Player.ColorRange 146, 163
	states
	{
	Spawn:
		MAGE A -1
		Loop
	See:
		MAGE ABCD 4
		Goto Spawn
	Missile:
	Melee:
		MAGE E 0 A_GiveInventory("BracersOfForceActivate")
		MAGE EF 8
		Goto Spawn
	Pain.ManaDrain:
		MAGE G 0 A_TakeInventory("Mana1", 5)
  		MAGE G 0 A_TakeInventory("Mana2", 5)
    	Goto Pain.Holy
	Pain:
	Pain.Physical:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Arcane:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Fire:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Ice:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Lightning: Pain.Electric:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Poison: Pain.PoisonCloud: Pain.Slime: Pain.Nature:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Holy:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Shadow:
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Bleed:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.ShadowTime:
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	PainAnim:
		MAGE G 0 A_JumpIfInventory("IsPyro",1,"Pyro")
	PainAnimTime:
		MAGE G 4
		MAGE G 4 A_Pain
		Goto Spawn
	Pyro:
		MAGE G 0 A_CustomMissile("PyroArmorBullet")
		Goto PainAnimTime
	Death:
	Death.Physical:
	Death.Bleed:
	Death.TeleFrag:
	Death.Suicide:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Arcane: Death.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Fire: Death.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Burn
	Death.Ice: Death.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Ice
	Death.Lightning: Death.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Poison: Death.PoisonCloud: Death.Slime: Death.Nature: Death.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Holy: Death.ManaDrain: Death.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Shadow: Death.ShadowTime: 
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	DeathAnim:
		MAGE H 6
		MAGE I 6 A_PlayerScream
		MAGE JK 6
		MAGE L 6 A_NoBlocking
		MAGE M 6
		MAGE N -1
		Stop
	XDeath:
	XDeath.Physical:
	XDeath.Bleed:
	XDeath.TeleFrag:
	XDeath.Suicide:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Arcane: XDeath.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Fire: XDeath.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Burn
	XDeath.Ice: XDeath.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Ice
	XDeath.Lightning: XDeath.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Poison: XDeath.PoisonCloud: XDeath.Slime: XDeath.Nature: XDeath.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Holy: XDeath.ManaDrain: XDeath.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Shadow: XDeath.ShadowTime: 
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeathAnim: 
		MAGE O 0 A_SpawnItem("GIBBER")
		MAGE O 5 A_PlayerScream
		MAGE P 5
		MAGE R 5 A_NoBlocking
		MAGE STUVW 5
		MAGE X -1
		Stop
	Ice:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		NULL A 0 A_NoBlocking
		NULL A 0 A_PlaySound("misc/freeze")
		NULL A 1 A_SpawnItemEx("MageIceCorpse",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TRANSFERSCALE)
		NULL AA -1
		Stop
	Burn:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		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
	}
}

Actor NewHunterPlayer : BasePlayerPawn
{
	Health 85
	Player.DisplayName "Hunter"
	Player.SoundClass "Hunter"
	PainSound "HUNTPN2"
	Player.SpawnClass "Cleric"
	Player.InvulnerabilityMode "Ghost"
	Player.StartItem "ImAHunter"
	Player.StartItem "Machete",1
	Player.StartItem "Level",1
	Player.StartItem "MP",54
	Player.StartItem "Strength",10
	Player.StartItem "Agility",14
	Player.StartItem "Constitution",10
	Player.StartItem "Wisdom",10
	Player.StartItem "Intellect",8
	Player.StartItem "Charisma",10
	Player.StartItem "CurrentMaxHealth", 85
	Player.StartItem "LvlUp",1
	Player.ColorRange 51, 66
	Player.Portrait P_HWALK1
	states
	{
	Pain.ManaDrain:
		HUNT G 0 A_TakeInventory("Mana1", 5)
  		HUNT G 0 A_TakeInventory("Mana2", 5)
    Goto Pain.Holy
	Spawn:
		HUNT A -1
		Loop
	See:
		HUNT ABCD 4 
		Goto Spawn
	Missile:
	Melee:
		HUNT E 0 A_GiveInventory("BracersOfForceActivate")
		HUNT EE 8
		Goto Spawn
	Pain:
	Pain.Physical:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Arcane:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Fire:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Ice:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Lightning: Pain.Electric:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Poison: Pain.PoisonCloud: Pain.Slime: Pain.Nature:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Holy:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Shadow:
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Bleed:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.ShadowTime:
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	PainAnim:
	PainAnimTime:
		HUNT F 4
		HUNT F 4 A_Pain
		Goto Spawn
	Death:
	Death.Physical:
	Death.Bleed:
	Death.TeleFrag:
	Death.Suicide:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Arcane: Death.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Fire: Death.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Burn
	Death.Ice: Death.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Ice
	Death.Lightning: Death.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Poison: Death.PoisonCloud: Death.Slime: Death.Nature: Death.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Holy: Death.ManaDrain: Death.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Shadow: Death.ShadowTime: 
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	DeathAnim:
		HUNT H 6
        HUNT I 6 A_PlayerScream
        HUNT JK 6
        HUNT L 6 A_NoBlocking
        HUNT MN 6
        HUNT O -1
        Stop
	XDeath:
	XDeath.Physical:
	XDeath.Bleed:
	XDeath.TeleFrag:
	XDeath.Suicide:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Arcane: XDeath.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Fire: XDeath.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Burn
	XDeath.Ice: XDeath.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Ice
	XDeath.Lightning: XDeath.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Poison: XDeath.PoisonCloud: XDeath.Slime: XDeath.Nature: XDeath.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Holy: XDeath.ManaDrain: XDeath.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Shadow: XDeath.ShadowTime: 
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeathAnim: 
		HUNT O 0 A_SpawnItem("GIBBER")
        HUNT Q 5 A_XScream
        HUNT R 0 A_NoBlocking
        HUNT R 5
        HUNT STUVW 5
        HUNT Y -1
        Stop
	Ice:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		NULL A 0 A_NoBlocking
		NULL A 0 A_PlaySound("misc/freeze")
		NULL A 1 A_SpawnItemEx("HunterIceCorpse",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TRANSFERSCALE)
		NULL AA -1
		Stop
	Burn:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		HUNT X 5 Bright A_PlaySound("*burndeath")
		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
	}
}

Actor NewNecromancerPlayer : BasePlayerPawn
{
	Health 70
	Player.DisplayName "Necromancer"
	Player.SoundClass "Mage"
	PainSound "PlayerMagePain"
	Player.SpawnClass "Mage"
	Player.InvulnerabilityMode "Reflective"
	Player.Portrait P_NWALK1
	Player.StartItem "ImAWarlock"
	Player.StartItem "Sickle",1
	Player.StartItem "Level",1
	Player.StartItem "MP",75
	Player.StartItem "Strength",8
	Player.StartItem "Agility",10
	Player.StartItem "Constitution",8
	Player.StartItem "Wisdom",12
	Player.StartItem "Intellect",14
	Player.StartItem "Charisma",10
	Player.StartItem "CurrentMaxHealth", 70
	Player.StartItem "LvlUp",1
	Player.ColorRange 146, 163
	states
	{
	Pain.ManaDrain:
		NECR G 0 A_TakeInventory("Mana1", 5)
  		NECR G 0 A_TakeInventory("Mana2", 5)
    Goto Pain.Holy
	Spawn: 
		NECR A -1
		Loop
	See: 
		NECR ABCD 4
		Goto Spawn
	Melee:
	Missile:
		NECR E 8 A_GiveInventory("BracersOfForceActivate")
		NECR F 8 Bright
		Goto Spawn
	Pain:
	Pain.Physical:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Arcane:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Fire:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Ice:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Lightning: Pain.Electric:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Poison: Pain.PoisonCloud: Pain.Slime: Pain.Nature:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Holy:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Shadow:
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Bleed:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.ShadowTime:
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	PainAnim:
	PainAnimTime:
		NECR G 4 
		NECR G 4 A_Pain 
		Goto Spawn
	Death:
	Death.Physical:
	Death.Bleed:
	Death.TeleFrag:
	Death.Suicide:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Arcane: Death.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Fire: Death.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Burn
	Death.Ice: Death.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Ice
	Death.Lightning: Death.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Poison: Death.PoisonCloud: Death.Slime: Death.Nature: Death.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Holy: Death.ManaDrain: Death.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Shadow: Death.ShadowTime: 
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	DeathAnim:
		NECR H 8 
		NECR I 8 A_PlayerScream  
		NECR J 4 
		NECR K 4 A_NoBlocking 
		NECR L 4 
		NECR M -1 
		Stop
	XDeath:
	XDeath.Physical:
	XDeath.Bleed:
	XDeath.TeleFrag:
	XDeath.Suicide:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Arcane: XDeath.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Fire: XDeath.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Burn
	XDeath.Ice: XDeath.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Ice
	XDeath.Lightning: XDeath.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Poison: XDeath.PoisonCloud: XDeath.Slime: XDeath.Nature: XDeath.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Holy: XDeath.ManaDrain: XDeath.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Shadow: XDeath.ShadowTime: 
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeathAnim: 
		NECR N 5 A_SpawnItem("GIBBER")
		NECR O 5 A_PlayerScream 
		NECR P 5 A_NoBlocking 
		NECR QR 5
		NECR S 5
		NECR TUV 5 
		NECR W -1
		Stop
	Ice:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		NULL A 0 A_NoBlocking
		NULL A 0 A_PlaySound("misc/freeze")
		NULL A 1 A_SpawnItemEx("NecromancerIceCorpse",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TRANSFERSCALE)
		NULL AA -1
		Stop
	Burn:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		FDTH G 5 Bright A_PlaySound("*burndeath")
		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
	}
}

ACTOR NewMetamorphesisPlayer : BasePlayerPawn
{
	Speed 0.4
	Health 1500
	Player.ColorRange 0, 0
	Player.DisplayName "Bruiser"
	player.damagescreencolor "Green",0
	player.morphweapon "BruiserWeapon"
	DamageFactor "BruiserAttack",0
	Player.SoundClass "Mage"
	States
	{
	Spawn:
		BOS4 A -1
		Loop
	See:
		BOS4 ABCD 4
		Goto Spawn
	Missile:
	Melee:
		BOS4 E 0 A_GiveInventory("BracersOfForceActivate")
		BOS4 EFG 6
		Goto Spawn
	Pain:
	Pain.Physical:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Arcane:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Fire:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Ice:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Lightning: Pain.Electric:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Poison: Pain.PoisonCloud: Pain.Slime: Pain.Nature:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Holy:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Shadow:
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Bleed:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.ShadowTime:
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	PainAnim:
	PainAnimTime:
		BOS4 Q 4
		BOS4 Q 4 A_Pain 
		Goto Spawn
	Death:
	Death.Physical:
	Death.Bleed:
	Death.TeleFrag:
	Death.Suicide:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Arcane: Death.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Fire: Death.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Burn
	Death.Ice: Death.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Ice
	Death.Lightning: Death.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Poison: Death.PoisonCloud: Death.Slime: Death.Nature: Death.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Holy: Death.ManaDrain: Death.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Shadow: Death.ShadowTime: 
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	DeathAnim:
		BOS4 R 6 Bright
		BOS4 S 6 Bright A_Scream 
		BOS4 T 6 Bright 
		BOS4 U 6 Bright
		BOS4 VW 6 Bright 
		BOS4 X 6 Bright A_SpawnItemEx("ArchonSoul",0,0,86,0,0,3,0,128)
		BOS4 YZ 6 Bright 
		BOZ4 Z -1 Bright
		Stop
	}
}


Actor NewAssassinPlayer : BasePlayerPawn
{
	Health 75
	PainSound "ASSNPN2"
	Player.DisplayName "Assassin"
	Player.StartItem "CurrentMaxHealth", 75
	Player.SoundClass "Assassin"
	Player.SpawnClass "Fighter"
	Player.InvulnerabilityMode "none"
	Player.Portrait P_AWALK1
	Scale 1.14
	Player.StartItem "ImAnAssassin"
	Player.StartItem "AssassinDagger",1
	Player.StartItem "Level",1
	Player.StartItem "MP",46
	Player.StartItem "Strength",9
	Player.StartItem "Agility",15
	Player.StartItem "Constitution",10
	Player.StartItem "Wisdom",8
	Player.StartItem "Intellect",10
	Player.StartItem "Charisma",10
	Player.StartItem "LvlUp",1
	Player.ColorRange 146, 163
	
	States
	{
	Spawn:
		ASSN A -1
		Stop
	See:
		ASSN ABCD 4
		Goto Spawn
	Missile:
	Melee:
		ASSN E 0 A_GiveInventory("BracersOfForceActivate")
		ASSN EF 8
		Goto Spawn
	Pain.ManaDrain:
		ASSN G 0 A_TakeInventory("Mana1", 5)
  		ASSN G 0 A_TakeInventory("Mana2", 5)
		Goto Pain.Holy
	Pain:
	Pain.Physical:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Arcane:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Fire:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Ice:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Lightning: Pain.Electric:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Poison: Pain.PoisonCloud: Pain.Slime: Pain.Nature:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Holy:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Shadow:
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 0, 1)/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnim
	Pain.Bleed:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	Pain.ShadowTime:
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto PainAnimTime
	PainAnim:
	PainAnimTime:
		ASSN O 4 //A_GiveInventory("ShadowWalkPainCheck",1)
		ASSN O 4 A_Pain
		Goto Spawn
	Death:
	Death.Physical:
	Death.Bleed:
	Death.TeleFrag:
	Death.Suicide:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Arcane: Death.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Fire: Death.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Burn
	Death.Ice: Death.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Ice
	Death.Lightning: Death.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Poison: Death.PoisonCloud: Death.Slime: Death.Nature: Death.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Holy: Death.ManaDrain: Death.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	Death.Shadow: Death.ShadowTime: 
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto DeathAnim
	DeathAnim:
		ASSN G 6 
		ASSN H 6 A_PlayerScream
		ASSN IJ 6 
		ASSN K 6 A_NoBlocking
		ASSN LM 6
		ASSN N -1
		Stop
	XDeath:
	XDeath.Physical:
	XDeath.Bleed:
	XDeath.TeleFrag:
	XDeath.Suicide:
		TNT1 A 0 A_SetBlend("Red",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Arcane: XDeath.ArcaneTime:
		TNT1 A 0 A_SetBlend("LightSlateBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Fire: XDeath.FireTime:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Burn
	XDeath.Ice: XDeath.IceTime:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto Ice
	XDeath.Lightning: XDeath.LightningTime:
		TNT1 A 0 A_SetBlend("SkyBlue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Poison: XDeath.PoisonCloud: XDeath.Slime: XDeath.Nature: XDeath.PoisonTime:
		TNT1 A 0 A_SetBlend("Green",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Holy: XDeath.ManaDrain: XDeath.HolyTime:
		TNT1 A 0 A_SetBlend("Goldenrod",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeath.Shadow: XDeath.ShadowTime: 
		TNT1 A 0 A_SetBlend("Purple",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		Goto XDeathAnim
	XDeathAnim: 
		ASSN P 0 A_SpawnItem("GIBBER")
		ASSN P 5 A_XScream
		ASSN Q 5 
		ASSN R 5 A_NoBlocking
		ASSN STUVWX 5
		ASSN Y -1
		Stop 
	Ice:
		TNT1 A 0 A_SetBlend("Blue",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		NULL A 0 A_NoBlocking
		NULL A 0 A_PlaySound("misc/freeze")
		NULL A 1 A_SpawnItemEx("AssassinIceCorpse",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
		NULL AA -1
		Stop
	Burn:
		TNT1 A 0 A_SetBlend("Orange",ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT")/100.0,ACS_NamedExecuteWithResult("WOC PLAYER PAIN SCRIPT", 1))
		FDTH G 5 Bright A_PlaySound("*burndeath")
		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
	}
}

Actor DeadFighter
{
	States
	{
	Spawn:
		DEDF A -1
		Stop
	}
}

Actor DeadCleric
{
	States
	{
	Spawn:
		DEDC A -1
		Stop
	}
}

Actor DeadMage
{
	States
	{
	Spawn:
		DEDM A -1
		Stop
	}
}

Actor DeadHunter
{
	States
	{
	Spawn:
		DEDH A -1
		Stop
	}
}

Actor DeadNecromancer
{
	States
	{
	Spawn:
		DEDN A -1
		Stop
	}
}

Actor DeadAssassin
{
	Scale 1.14
	States
	{
	Spawn:
		DEDA A -1
		Stop
	}
}

Actor DeadFighterDoom : DeadFighter { Scale 0.875 }
Actor DeadClericDoom : DeadCleric { Scale 0.875 }
Actor DeadMageDoom : DeadMage { Scale 0.875 }
Actor DeadHunterDoom : DeadHunter { Scale 0.875 }
Actor DeadNecromancerDoom : DeadNecromancer { Scale 0.875 }
Actor DeadAssassinDoom : DeadAssassin { Scale 1.0 }

Actor GibbedFighter
{
	States
	{
	Spawn:
		XDDF A -1
		Stop
	}
}

Actor GibbedCleric
{
	States
	{
	Spawn:
		XDDC A -1
		Stop
	}
}

Actor GibbedMage
{
	States
	{
	Spawn:
		XDDM A -1
		Stop
	}
}

Actor GibbedHunter
{
	States
	{
	Spawn:
		XDDH A -1
		Stop
	}
}

Actor GibbedNecromancer
{
	States
	{
	Spawn:
		XDDN A -1
		Stop
	}
}

Actor GibbedAssassin
{
	Scale 1.14
	States
	{
	Spawn:
		XDDA A -1
		Stop
	}
}

Actor GibbedFighterDoom : GibbedFighter { Scale 0.875 }
Actor GibbedClericDoom : GibbedCleric { Scale 0.875 }
Actor GibbedMageDoom : GibbedMage { Scale 0.875 }
Actor GibbedHunterDoom : GibbedHunter { Scale 0.875 }
Actor GibbedNecromancerDoom : GibbedNecromancer { Scale 0.875 }
Actor GibbedAssassinDoom : GibbedAssassin { Scale 1.0 }

ACTOR DeadMarineSpotz : Randomspawner replaces DeadMarine
{
	DropItem "DeadFighterDoom"
	DropItem "DeadClericDoom"
	DropItem "DeadMageDoom"
	DropItem "DeadHunterDoom"
	DropItem "DeadNecromancerDoom"
	DropItem "DeadAssassinDoom"
}

ACTOR GibbedMarineSpotz : Randomspawner replaces GibbedMarine
{
	DropItem "GibbedFighterDoom"
	DropItem "GibbedClericDoom"
	DropItem "GibbedMageDoom"
	DropItem "GibbedHunterDoom"
	DropItem "GibbedNecromancerDoom"
	DropItem "GibbedAssassinDoom"
}

ACTOR GibbedMarineExtraSpotz : GibbedMarineSpotz replaces GibbedMarineExtra {}