//===========================================================================
//
// Revenant
//
//===========================================================================
ACTOR 22MANRevenant : ShotgunGuy 
{
	Game Doom
	SpawnID 1
	Health 90
	Radius 20
	Height 56
	Mass 100
	Speed 8
	PainChance 170
	Monster
	+FLOORCLIP
	AttackSound "XM1014/FIRE"//"W22F"
        SeeSound "Gensight"
        PainSound "Genpain"
        DeathSound "Gendeath"
        ActiveSound "Genactive"

	Obituary "$OB_SHOTGUY"

	DropItem "DropSpawner3", 96
	DropItem "DeadClip3Inv", 148
	Species "ReveMan"
	States
	{
	Spawn:
		SZOM AB 10 A_Look
		Loop
	See:
		SZOM AABBCCDD 3 A_Chase
		Loop
	Missile:
		SZOM E 10 A_FaceTarget
		TNT1 A 0 A_PlaySound("XM1014/Distant", 7)

		TNT1 A 0 A_PlaySound("XM1014/FIRE", CHAN_WEAPON)
		TNT1 A 0 A_CustomBulletAttack(22.5, 0, 3, random(2,5)*2, "BulletPuff", 0, CBAF_NORANDOM)		
		TNT1 AAAAA 0 A_CustomMissile("Tracer_Monster", 36, 0, random(-7, 7), 1, random(-4, 4))		

TNT1 A 0 A_ChangeFlag("NOPAIN", true)
		SZOM F 3 BRIGHT //A_SPosAttackUseAtkSound
		SZOM E 14
TNT1 A 0 A_ChangeFlag("NOPAIN", false)
		Goto See
	Pain:
		SZOM G 3
		SZOM G 3 A_Pain
		Goto See
		
	Pain.FLASHBANGFREEZE:
TNT1 A 0 A_ChangeFlag("NOPAIN", true)
		SZOM G 3
		SZOM A 175 A_Pain
TNT1 A 0 A_ChangeFlag("NOPAIN", false)
		Goto See
		
		
	Death:
//TNT1 A 0 A_GiveToTarget("MoneySystem", 90)
		SZOM H 5
		SZOM I 5 A_Scream
		SZOM J 5 A_NoBlocking
		SZOM KLM 5
		SZOM N -1
		Stop



XDeath:
//TNT1 A 0 A_GiveToTarget("MoneySystem", 180)
SZOM M 0 A_SpawnItemEx("NashGore_GibPieceGenerator9",0,0,0,0,0,0,0,128)
SZOM M 0 A_SpawnItemEx("NashGore_GibPieceGenerator10",0,0,0,0,0,0,0,128)
SZOM M 0 A_SpawnItemEx("NashGore_GibPieceGenerator11",0,0,0,0,0,0,0,128)
SZOM M 0 A_SpawnItemEx("NashGore_GibPieceGenerator11",0,0,0,0,0,0,0,128)
SZOM M 0 A_SpawnItemEx("NashGore_GibGenerator",0,0,0,0,0,0,0,128)
SZOM N 5
SZOM N 0 A_SpawnItemEx("NashGore_GibGenerator",0,0,0,0,0,0,0,128)
SZOM O 5 A_XScream
SZOM O 0 A_SpawnItemEx("NashGore_GibGenerator",0,0,0,0,0,0,0,128)
SZOM P 5 A_NoBlocking
SZOM P 0 A_SpawnItemEx("NashGore_GibGenerator",0,0,0,0,0,0,0,128)
SZOM QRSTUV 5
SZOM W -1
stop
	Raise:
		SZOM N 5
		SZOM MLKJIH 5
		Goto See
	}
}