ACTOR DruidPlayer : PlayerPawn //
{
	Health 90
	Player.MaxHealth 90
	ReactionTime 0
	PainChance 255
	Radius 16
	Height 56
	Speed 1.2
	Species "PlayerAlly"
	+NOSKIN
	+NODAMAGETHRUST
	+Playerpawn.NOTHRUSTWHENINVUL
	+FLOORCLIP
	PainSound "PlayerDruidPain"
	DamageFactor "Acid", 0
	DamageFactor "Poison", 0
	DamageFactor "Blast", 0
	DamageFactor "Light", 0
	DamageFactor "Rocky", 0
	DamageFactor "Water", 0
	RadiusDamageFactor 0.25
	Player.JumpZ 9
	Player.Viewheight 48
	Player.SpawnClass "Druid"
	Player.DisplayName "Illitheya the Druid"
	Player.Portrait "CHASDRU2"
	//Player.Portrait "DRUWALK1"
	Player.SoundClass "druid"
	Player.ScoreIcon "MAGEFACE"
	Player.InvulnerabilityMode "Reflective"
	Player.HealRadiusType "Mana"
	Player.Hexenarmor 10, 20, 40, 20, 30 //Iraldatine Vest/Drayke Boots/Stylish Helm/Shield Amulet (/5 for AC)
	Player.StartItem "Baselard"
	//Player.StartItem "WandofHitScan"
	Player.StartItem "DoneStartupProcessWalp"
	Player.ForwardMove 1.2, 1.2
	Player.SideMove 1.1, 1.15
	Player.WeaponSlot 1, "Baselard" 
	Player.WeaponSlot 2, "DogMode"
	Player.WeaponSlot 3, "Hebiko"
	Player.WeaponSlot 4, "Ichival"
	Player.FlechetteType "ArtiPoisonBag2"
	States
	{
	Spawn:
		TNT1 A 0 
		TNT1 A 0 A_JumpIfInventory("DoneStartupProcessWalp",1,"DoStartUp")
		DRU1 A 1
		Loop
	DoStartUp:
		TNT1 A 0 {
		if (GameType() & GAME_Hexen) 
			{A_GiveInventory("HexenCounter",1);}
		else if (GameType() & GAME_Doom) 
			{A_GiveInventory("DoomCounter",1);
				if(GetCVar("walp_hitscanwand")==1)	
				{A_GiveInventory("WandofHitScan",1);}
			}
		else if (GameType() & GAME_Heretic) 
			{A_GiveInventory("HereticCounter",1);}
			}
		TNT1 A 0 {
		if(GetCVar("walp_doomsouls")==1)	
			{A_GiveInventory("DoomedSoulsMode",1);
			A_GiveInventory("EstusFlask",GetCVar("walp_kestuslevel")); }}
		TNT1 A 0 {if(GetCVar("screenblocks")!=11)	
			{		A_Print("$SCREENWRONG", 8);}}
		TNT1 A 0 A_TakeInventory("DoneStartupProcessWalp")
		Goto Spawn
	See:
		DRU1 ABCD 4
		Loop
	Missile:
	Melee:
		DRU1 AA 8
		Goto Spawn
	Pain:
		DRU1 A 4 A_SetBlend("DarkRed",0.6,20)
		DRU1 A 4 A_Pain
		Goto Spawn
	Pain.Fire:
		"####" G 4 A_SetBlend("DarkOrange",0.7,25)
		"####" G 4 A_Pain
		Goto Spawn
	Pain.Smoke:
		DRU1 G 4 {A_SetBlend("Black",0.9,25); A_Playsound("DruiCough",3,0.9);}
		DRU1 G 4 A_Pain
		Goto Spawn
	Pain.Purple:
		"####" G 4 A_SetBlend("Purple",0.8,25)
		"####" G 4 A_Pain
		Goto Spawn
	Pain.AcidDemon:
		DRU1 G 4 A_SetBlend("DarkGreen",0.8,25)
		DRU1 G 4 A_Pain
		Goto Spawn
	Pain.Acid:
		DRU1 G 4 A_SetBlend("DarkGreen",0.8,25)
		DRU1 G 4 A_Pain
		Goto Spawn
	Death:
		MAGE H 0 {A_GiveToChildren("LightningCheck",1); A_TakeInventory ("ChainHook");}//Removes Falcon 
		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 H 0 {A_GiveToChildren("LightningCheck",1); A_TakeInventory ("ChainHook");}	//Removes Falcon
		MAGE O 5 A_XScream
		MAGE P 5
		MAGE R 5 A_NoBlocking
		MAGE STUVW 5
		MAGE X -1
		Stop
	Ice:
		MAGE H 0 {A_GiveToChildren("LightningCheck",1); A_TakeInventory ("ChainHook");}	//Removes Falcon
		MAGE Y 5 A_FreezeDeath
		MAGE Y 1 A_FreezeDeathChunks
		Wait
	Burn:
		MAGE H 0 {A_GiveToChildren("LightningCheck",1); A_TakeInventory ("ChainHook");}	//Removes Falcon
		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 DruidWolfMode : DruidPlayer //This actually isn't used right now as Changeform powers suck.
{
	Player.JumpZ 10
	Player.Viewheight 50
	Player.Hexenarmor 15, 20, 40, 20, 30 //Iraldatine Vest/Drayke Boots/Stylish Helm/Shield Amulet (/5 for AC)
	Player.MorphWeapon "DogMode"
	States
	{
	Spawn:
		TNT1 A 0 
		TNT1 A 0 A_JumpIfInventory("DoneStartupProcessWalp",1,"DoStartUp")
		WRWF A 1
		Loop
	See:
		WRWF AB 4
		WRWF CD 4
		Loop
	Missile:
	Melee:
		WRWF EFG 8
		Goto Spawn
	Pain:
		WRWF M 4 A_SetBlend("DarkRed",0.5,20)
		WRWF M 4 A_Pain
		Goto Spawn
	Death:
		WRWF M 0 {A_GiveToChildren("LightningCheck",1); A_TakeInventory ("ChainHook");}//Removes Falcon 
		WRWF M 6 
		WRWF N 6 A_PlayerScream
		WRWF OP 6
		WRWF Q 6 A_NoBlocking
		WRWF RS 6
		WRWF T -1
		Stop	
	}
}

ACTOR DruidWeapon : Weapon
{
  Weapon.Kickback 150
  Inventory.ForbiddenTo MyrmidonPlayer, MagisterPlayer, CrusaderPlayer
  States
  {
	UpgradeBarX:
		UPG8 VU 2
	UpgradeBarLoopX:
		UPG8 T 1
		UPG8 T 0 A_JumpIfInventory("UpgradeBarKill",1,"UpgradeKill")
		Loop
	UpgradeKillX:
		UPG8 U 0 A_TakeInventory("UpgradeBarKill")
		UPG8 UV 2
		Stop
  }
}