ACTOR DogWS : QCDE_MonsterSmall
{
	Health 45
	Radius 12
	Height 36
	Speed 23
	PainChance 255
	Scale 1.1
	Species "Nazi"
	Monster
	+FLOORCLIP
    +NOTDMATCH
    +THRUGHOST
	+DONTHURTSPECIES
	+THRUSPECIES
	SeeSound "dog/sight"
	PainSound "dog/pain"
	DeathSound "dog/death"
	ActiveSound "dog/active"
	Tag "Dog"
	Obituary "%o was bitten by a dog."
	States 
	{
		Idle:
			WDOI A 0 A_Look
			WDOI A 10 
			Loop
		See:
			WDOG AAABBCCCDD 2 A_Chase
			Loop
		Melee:
			WDOG E 5 A_FaceTarget
			WDOG F 6 A_FaceTarget
			WDOG G 4 A_CustomMeleeAttack(random(14,22),"dog/bite","dog/bite")
			WDOG E 5
			WDOG A 5
			Goto See
		Pain:
			WDOG H 3
			WDOG H 3 A_Pain
			Goto See
		DeathChecksDone:
			WDOG H 7
			WDOG I 8 A_Scream
			WDOG J 7 A_NoBlocking
		Death.Corpse:
			WDOG K -1
			Stop
	    XDeathChecksDone:
		    TNT1 A 0 A_PlaySound("quake2/Misc/GibExplosion")
            TNT1 A 0 A_SpawnItemEx("GibDropperSmall",0,0,28,0,0,0,0,SXF_NOCHECKPOSITION|SXF_USEBLOODCOLOR)
            Goto DeathChecksDone
		Raise:
	        TNT1 A 0 ACS_NamedExecuteAlways("QCDE_DamageTracker",0,1)
            WDOG KJIH 5
			Goto See
	}
}