ACTOR HESerpentTorch : SerpentTorch Replaces SerpentTorch
{
	Game Heretic
	Radius 12
	Height 54
	+SOLID
	States
	{
	Spawn:
		SRTC A 2
		TNT1 A 0 A_CheckSight("NoSpecialFX")
		TNT1 A 0 A_Playsound("HETorch", 1, 1, 1)
		TNT1 A 0 A_SPawnItem("SerpentTorch_Flames")
		TNT1 A 0 A_SpawnItem("SerpentTorch_Flare",0,52)
		Goto Stay
	Stay:
		SRTC AA 14 A_CustomMissile ("TorchBall", 59, 0, random (0, 140), 2, random (0, 160))
		SRTC A 0 A_CustomMissile ("RealisticFireSparks", 59, 0, random (0, 140), 2, random (0, 160))
		Loop
	NoSpecialFX:
		SRTC ABC 3 Bright
	Goto Spawn
	}
}

Actor SerpentTorch_Flames : HESerpentTorch
{
	XScale 0.9
	YScale 1.2
	Renderstyle Add
	Alpha 0.9
	+CLIENTSIDEONLY
	+NONETID
	+THRUACTORS
	states
	{
	Spawn:
		TRKR ABCDEFGHIJKL 1 BRIGHT
		Loop
	}
}

Actor SerpentTorch_Flare : SerpentTorch_Flames
{
	XScale 0.7
	YScale 0.5
	+NOGRAVITY
	states
	{
	Spawn:
		TRKR OP 2 BRIGHT
		Loop
	}
}

ACTOR TorchBall
{
	Speed 0
	PROJECTILE
	-FORCEXYBILLBOARD
	+NOINTERACTION
	+NOCLIP
	+NOGRAVITY
    +CLIENTSIDEONLY
	+NONETID
	+THRUACTORS
	+DOOMBOUNCE
	Alpha 1.0
	Renderstyle Add
	YScale 1.2
	XScale 1.6
	States
	{
    Spawn:
        FRFX ABABABAB 2 BRIGHT
        Stop
	}
}

ACTOR RealisticFireSparks
{
	Speed 0
	-FORCEXYBILLBOARD
	+NOINTERACTION
	+NOCLIP
	Alpha 1.0
	Renderstyle Add
    YScale 1.0
	XScale -1.0
	States
	{
    Spawn:
        SPFN ABCDEFGHIJKLMNOPQRSTUVWXYZ 1 BRIGHT
		SPFM ABCDEFG 1 BRIGHT
        Stop
	}
}

Actor BrazierFire : SerpentTorch_Flames
{
XScale 1.0
YScale 0.6
Alpha 0.7
Radius 0
Height 0
+NOGRAVITY
states
	{
	Spawn:
		NF4R ABCDEFGHIJKLMNOPQ 1 BRIGHT
		Stop
	}
}

/*
ACTOR HEFireBrazier : FireBrazier Replaces FireBrazier
{
	Game Heretic
	Radius 16
	Height 44
	+SOLID
	States
	{
	Spawn:
		KFR1 N 2 BRIGHT
		TNT1 A 0 A_Playsound("HETorch", 1, 1, 1)
		Goto Stay
	Stay:
		KFR1 NA 16 BRIGHT A_CustomMissile ("BrazierFire", 46, 0, random (40, 180), 2, random (50, 130))
		KFR1 N 0 A_CustomMissile ("RealisticFireSparks", 46, 0, random (0, 140), 2, random (0, 160))
		Loop
	}
}*/

ACTOR BrutalFireBrazier Replaces FireBrazier
{
	Radius 11
	Height 37
	+SOLID
	States
	{
	Spawn:
		TNT1 A 0 NoDelay //A_JumpIf(CallACS("GetSFXCVar") == 1, "NoSpecialFX")
	    //TNT1 A 0 A_CheckSight("NoSpecialFX")
		TNT1 A 0 A_SpawnItem("RedFlare", 0, 41)
		TNT1 A 0 A_Jump(200,2)
		KFR1 N 0 A_CustomMissile ("RealisticFireSparks", 46, 0, random (0, 140), 2, random (0, 160))
		KFR1 N 0 A_CustomMissile ("BrazierFire", 41, 0, random (40, 180), 2, random (50, 130))

		KFR1 N 2 bright A_CustomMissile ("RealFlameTrails", 41, 0, random (0, 360), 2, random (70, 110))
		KFR1 N 2 Bright A_SpawnItem("RedFlare", 0, 41)
		TNT1 A 0 A_Jump(200,2)
		KFR1 N 0 A_CustomMissile ("RealisticFireSparks", 46, 0, random (0, 140), 2, random (0, 160))
		
		KFR1 N 2 bright A_CustomMissile ("RealFlameTrails", 41, 0, random (0, 360), 2, random (70, 110))
		KFR1 N 2 Bright A_SpawnItem("RedFlare", 0, 41)
		TNT1 A 0 A_Jump(220,2)
		KFR1 N 0 A_CustomMissile ("RealisticFireSparks", 46, 0, random (0, 140), 2, random (0, 160))
		
		KFR1 N 2 bright A_CustomMissile ("RealFlameTrails", 41, 0, random (0, 360), 2, random (70, 110))
		KFR1 N 2 Bright A_SpawnItem("RedFlare", 0, 41)
		TNT1 A 0 A_Jump(200,2)
		KFR1 N 0 A_CustomMissile ("RealisticFireSparks", 46, 0, random (0, 140), 2, random (0, 160))
		
		KFR1 N 2 bright A_CustomMissile ("RealFlameTrails", 41, 0, random (0, 360), 2, random (70, 110))
		KFR1 N 2 Bright A_SpawnItem("RedFlare", 0, 41)
		Loop
	NoSpecialFX:
		KFR1 A 1 Bright //ABCDEFGH 3 Bright
		Goto Spawn
	}
}

ACTOR RealFlameTrails
{
	Radius 1
	Height 1
	Speed 4
    +NOBLOCKMAP
    +NOTELEPORT
    +DONTSPLASH
	+MISSILE
	+FORCEYBILLBOARD
    +CLIENTSIDEONLY
    +NOINTERACTION
	+NOCLIP
	+DONTBLAST
	RenderStyle Add
    YScale 0.8
	Alpha 1.0
	Gravity 0
	States
	{
    Spawn:
	    TNT1 A 0
        FIR1 AABBCCDEFGHII 1 BRIGHT
	        //   FIR1 ABC 2 BRIGHT
       // FIR2 ABCDEF 2 BRIGHT
        Stop
	}
}

ACTOR BrutalWallTorch : WallTorch Replaces WallTorch
{
	Game Heretic
	Radius 6
	Height 16
	+NOGRAVITY
	+FIXMAPTHINGPOS
	States
	{
	Spawn:
		WTRH A 0
		TNT1 A 0 A_CheckSight("NoSpecialFX")
		TNT1 A 0 A_Playsound("HETorch", 1, 1, 1)
		TNT1 A 0 A_SPawnItem("WallTorch_Flames",0,73)
		TNT1 A 0 A_SpawnItem("WallTorch_Flare",0,73)
		Goto Stay
	Stay:
		WTRH AA 16 BRIGHT A_CustomMissile ("RealisticFireSparks", 73, 0, random (0, 140), 2, random (0, 160))
		WTRH A 0 
		Loop
	NoSpecialFX:
		WTRH ABC 4 Bright
		Goto Spawn
	}
}

Actor WallTorch_Flames : BrutalWallTorch
{
	XScale 1
	YScale 1
	Renderstyle Add
	Alpha 0.9
	+CLIENTSIDEONLY
	+NONETID
	+THRUACTORS
	states
	{
	Spawn:
		CFCF ABCDEFGHIJKLMN 1 BRIGHT
		Loop
	}
}

Actor WallTorch_Flare : WallTorch_Flames
{
	XScale 0.6
	YScale 0.4
	states
	{
	Spawn:
		TRKR OP 2 BRIGHT
		Loop
	}
}

ACTOR HEKeyGizmoFloatBlue : KeyGizmoFloatBlue Replaces KeyGizmoFloatBlue
{
	Radius 16
	Height 16
	+SOLID
	//+NOGRAVITY
	//+FLOATBOB
	States
	{
	Spawn:
		KGZB A 5 //Bright
		loop
	}
}

ACTOR HEKeyGizmoFloatGreen : KeyGizmoFloatGreen Replaces KeyGizmoFloatGreen
{
	Radius 16
	Height 16
	+SOLID
	//+NOGRAVITY
	//+FLOATBOB
	States
	{
	Spawn:
		KGZG A 5 //Bright
		loop
	}
}

ACTOR HEKeyGizmoFloatYellow Replaces KeyGizmoFloatYellow
{
	Radius 16
	Height 16
	Monster
	gravity 0.1
	-SHOOTABLE
	-COUNTKILL
	+SOLID
	+LOOKALLAROUND
	+AMBUSH
	+QUICKTORETALIATE
	-NOGRAVITY
	-FLOATBOB
	States
	{
	Spawn:
		TNT1 A 0 A_JumpIfCloser(380,"Fly")
		TNT1 A 0 A_JumpIfCloser(512,"Fall")
		TNT1 A 0 A_JumpIfInTargetInventory("KeyYellow",1,3)
		KGZY A 5 A_LookEx
		TNT1 A 0 A_Jump(256,3)
		TNT1 A 0 A_SpawnItem("YellowFlare", 0, 0)	
		KGZY A 5 BRIGHT A_LookEx
		TNT1 A 0
	See:
		TNT1 A 0 A_JumpIfCloser(380,"Fly")
		TNT1 A 0 A_JumpIfInTargetInventory("KeyYellow",1,3)
		KGZY A 5 
		TNT1 A 0 A_Jump(256,2)
		KGZY A 2 BRIGHT A_SpawnItem("YellowFlare", 0, 0)	
		TNT1 A 0 
		goto Spawn
	Fly:
		TNT1 A 0 A_ChangeFlag("NOGRAVITY",1)
		TNT1 A 0 A_ChangeFlag("FLOATBOB",1)
		TNT1 A 0 A_JumpIfInTargetInventory("KeyYellow",1,3)
		KGZY A 2 
		TNT1 A 0 A_Jump(256,2)
		KGZY B 2 BRIGHT A_SpawnItem("YellowFlare", 0, 0)
		TNT1 A 0 
		goto Spawn
	Fall:
		TNT1 A 0 A_ChangeFlag("NOGRAVITY",0)
		TNT1 A 0 A_ChangeFlag("FLOATBOB",0)
		TNT1 A 0 A_JumpIfInTargetInventory("KeyYellow",1,3)
		KGZY A 2 
		TNT1 A 0 A_Jump(256,2)
		KGZY A 2 BRIGHT A_SpawnItem("YellowFlare", 0, 0) 
		TNT1 A 0 
		goto Spawn
	}
}

ACTOR ZCorpseSleepingX : ZCorpseSleeping replaces ZCorpseSleeping
{
	Radius 20
	Height 16
	Scale 1.0
	Health 100
	Mass 5000
	-SOLID
	+SHOOTABLE
	GibHealth 10
	damagefactor "Blood", 0.0    damagefactor "GreenBlood", 0.0    damagefactor "BlueBlood", 0.0    damagefactor "Taunt", 0.0    damagefactor "KillMe", 0.0  damagefactor "Avoid", 0.0  damagefactor "Taunt", 0.0
	bloodtype "DeadBlood"
	
	States
	{
		Spawn:
		CP52 A 1
		Goto Stand
		
		Stand:
		CP52 A 2
		loop
		
		Death:
        TNT1 A 0
		TNT1 A 0 A_Jump(128, "Death.Torso", "Death.Legs")
		XDeath:
		Death.ExplosiveImpact:
        TNT1 A 0 A_Scream
		TNT1 AA 0 A_CustomMissile ("XDeath2", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 AAAA 0 A_CustomMissile ("XDeath4", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeath3", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 AA 0 A_CustomMissile ("XDeath1", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("PZombieHead", random(2, 6), 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeathPZArm1", random(2, 6), 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeathPZArm1", random(2, 6), 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeathPZombieLeg1", random(2, 6), 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeathPZombieLeg1", random(2, 6), 0, random (0, 360), 2, random (0, 160))
		TNT1 AAAA 0 A_SpawnItem ("Blood")
		Stop
		
		Death.Torso:
        TNT1 A 0
        TNT1 A 0 A_Scream
		TNT1 A 0 A_CustomMissile ("XDeath2", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 AAA 0 A_CustomMissile ("XDeath4", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeath3", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeath1", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("PZombieHead", random(2, 6), 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeathPZArm1", random(2, 6), 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeathPZArm1", random(2, 6), 0, random (0, 360), 2, random (0, 160))
		TNT1 AAAA 0 A_SpawnItem ("Blood")
		TNT1 A 0 A_SpawnItem ("ZCorpseLegsOnly")
		Stop
		
		Death.Legs:
        TNT1 A 0
        TNT1 A 0 A_Scream
		TNT1 A 0 A_CustomMissile ("XDeath2", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 AAA 0 A_CustomMissile ("XDeath4", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeath3", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeath1", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeathPZombieLeg1", random(2, 6), 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeathPZombieLeg1", random(2, 6), 0, random (0, 360), 2, random (0, 160))
		TNT1 AAAA 0 A_SpawnItem ("Blood")
		TNT1 A 0 A_SpawnItem ("ZCorpseTorsoOnly")
		Stop
	}
}

ACTOR ZCorpseTorsoOnly : ZCorpseSleepingX
{
	Health 70
	
	States
	{
	Spawn:
		CP52 B 1
		Goto Stand
		
		Stand:
		CP52 B 2
		loop
		
		Death:
		XDeath:
		Death.ExplosiveImpact:
        TNT1 A 0
        TNT1 A 0 A_Scream
		TNT1 A 0 A_CustomMissile ("XDeath2", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 AA 0 A_CustomMissile ("XDeath4", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeath3", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeath1", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("PZombieHead", random(2, 6), 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeathPZArm1", random(2, 6), 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeathPZArm1", random(2, 6), 0, random (0, 360), 2, random (0, 160))
		TNT1 AAAA 0 A_SpawnItem ("Blood")
		Stop
	}
}

ACTOR ZCorpseLegsOnly : ZCorpseSleepingX
{
	Health 70
	
	States
	{
	Spawn:
		CP52 C 1
		Goto Stand
		
		Stand:
		CP52 C 2
		loop
		
		Death:
		XDeath:
		Death.ExplosiveImpact:
        TNT1 A 0
        TNT1 A 0 A_Scream
		TNT1 A 0 A_CustomMissile ("XDeath2", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 AA 0 A_CustomMissile ("XDeath4", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeath3", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeath1", 5, 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeathPZombieLeg1", random(2, 6), 0, random (0, 360), 2, random (0, 160))
		TNT1 A 0 A_CustomMissile ("XDeathPZombieLeg1", random(2, 6), 0, random (0, 360), 2, random (0, 160))
		TNT1 AAAA 0 A_SpawnItem ("Blood")
		Stop
	}
}