//===================================================================//
//-----------------------CHEOGSH 1 NEW DECORATIONS------------------------------------------//
//===================================================================//

//----------------------------DB Numbers and spawnids---------------------------------//
//PoledMorpeh1 		22054
//PoledMorpeh2 		22055
//HangingMorpeh2 		22079 
//HangingMorpehLeg 		22080 
//HangingMorpehLegs 	22081 
//HangingMorpehTorso 	22082
//HangingMorpehTwitching 	22084 

//CrucifiedMorpeh 		22136
//CrucifiedMorpeh2 		22143
//CrucifiedMorpeh3 		22144
//SH_SpDude3 		23008 
//SH_FSpDude3 		23009,	spawnid = 187
//GuardStatue 		30333
//DeadSoulHarvester 		20101,	spawnid = 188
//DeadMaulerDemon 		20102,	spawnid = 189
//DeadSatyr 		20103,	spawnid = 190
//DeadChainguy 		22151
//DeadMalevonant 		22163
//DeadTemplier 		23010
//DeadGaut 		30334
//DeadHellKnight 		23013,	spawnid = 191
//DeadHellBaron 		23014,	spawnid = 192
//DeadArchVile 		23015,	spawnid = 193
//CrystalB1 		23005
//CrystalB2		23006
//CrystalB3		23007
//Mushroom1 		22101
//Mushroom2 		22102
//Mushroom3 		22103
//Mushroom4 		22104
//Mushroom5 		22105
//Mushroom6 		22106
//Mushroom7 		22107
//Mushroom8 		22108
//PoisonMushroom 		22109
//DeadTree1 		22118
//CHBigTree1 		22128
//CHBigTree2 		22129
//OakTree1 		22130
//OakTree2 		22131
//Bush1 			22116
//Bush2 			22117

//DeadHuman1 		22164
//DeadHuman2 		22165
//KSkull1			31803
//KSkullPack 		31807
//KSkullPack2 		31806
//RoCHBigTree1 		22166
//UnderwaterGrass3		22183
//KLogspawner		22167
//Plant1 			22168
//Plant2 			22169
//Plant3 			22170
//Plant4 			22171
//Plant5 			22172
//BigTree8 		22173
//BigTree9 		22174
//Tree11 			22175
//Tree12 			22176
//Tree13 			22177
//Tree14 			22178
//Tree15 			22179
//Tree16 			22180
//Tree17 			22181
//Tree18 			22182
//Tree19 			22184
//Tree20 			22185
//Tree21 			22186

//KBook1 			22896
//KBook1Slopped		22897
//IMineCar 			22898
//IWheelBarrow 		22899
//IHandBarrow 		22900
//IRails_line 		22901
//IRails_roundR45		22902
//IRails_roundR15		22903
//IRails_roundL15		22904
//IRails_roundL45		22905
//IRails_turnoutL		22906
//IRails_turnoutR		22907
//IRails_line_short		22908
//KGrassSpawner		22909

//CrucifiedDude1 		22145 
//Chain1 			25001
//BigBoom

//===================================================================//
//----------------------- GIBBET and CORPSES--------------------------------------------------//
//===================================================================//
ACTOR PoledMorpeh1 22054 
{
//$category Gibbet
	radius 16
	height 48
	deathheight 48
	health 40
	mass 0x7fffffff
	+SOLID
	+SHOOTABLE
	states 
	{
		spawn:
			DUMM AB 12
			Loop
		pain:
			DUMM B 4
			goto Spawn
		death:
			DUMM B 5
			DUMM B -1
			stop
		}
	}

ACTOR PoledMorpeh2 22055 
{
//$category Gibbet
	radius 16
	height 48
	+SOLID
	states 
	{
		spawn:
			DUMM B -1
			Stop
		}
	}


ACTOR HangingMorpeh2 22079 
{
//$category Gibbet
	radius 16
	height 64
	+SOLID
	+NOGRAVITY
	+SPAWNCEILING
	states 
	{
		spawn:
			DUMM A 0 nodelay A_Jump(256,"Spawn1","Spawn2")
		Spawn1:
			DUMM A -1
			Stop
		Spawn2:
			DUMM B -1
			Stop
		}
	}

ACTOR HangingMorpehLeg 22080 
{
//$category Gibbet
	radius 12
	height 60
	+SOLID
	+NOGRAVITY
	+SPAWNCEILING
	states 
	{
		spawn:
			DUMM A -1
			Stop
		}
	}

ACTOR HangingMorpehLegs 22081 
{
//$category Gibbet
	radius 10
	height 68
	+SOLID
	+NOGRAVITY
	+SPAWNCEILING
	states 
	{
		spawn:
			DUMM A -1
			Stop
		}
	}

ACTOR HangingMorpehTorso 22082 
{
//$category Gibbet
	radius 16
	height 56
	+SOLID
	+NOGRAVITY
	+SPAWNCEILING
	states 
	{
		spawn:
			DUMM A -1
			Stop
		}
	}

ACTOR HangingMorpehTwitching 22084 
{
//$category Gibbet
	radius 16
	height 64
	health 30
	mass 0x7fffffff
	+SOLID
	+NOGRAVITY
	+SPAWNCEILING
	+SHOOTABLE
	+DONTFALL
	+LOOKALLAROUND
	states 
	{
		spawn:
			DUMM A 12 
			DUMM B 10 A_SpawnItem("Bloodfall1",0,24)
			DUMM C 8
			DUMM A 0 A_Jump(128,"Spawn2")
			DUMM A 12
			DUMM B 10
			DUMM C 12
			DUMM A 8
			DUMM B 10
			DUMM C 12
			Loop
		spawn2:
			DUMM ACB 10
			DUMM A 6
			DUMM B 8 A_SpawnItem("Bloodfall1",0,24)	
			DUMM C 4
			DUMM A 8
			DUMM B 4 A_SpawnItem("Bloodfall1",0,24)
			DUMM C 4
			DUMM A 16
			DUMM B 20
			DUMM C 12
			Goto Spawn
		pain:
			DUMM A 6
			Goto Spawn
		death:
			DUMM B 10 A_Fall
			DUMM B -1
			Stop
		}
	}

ACTOR Bloodfall1 
{ 
   Height 6
   Radius 2 
   Mass 1
   Damage 0
   Speed 0
   xscale 0.8
   +MISSILE 
   +FLOORCLIP
   +DROPOFF
    RENDERSTYLE TRANSLUCENT
    ALPHA 0.56
      States 
 	{ 
    	Spawn: 
        	BLOD A 20 
        	Loop
        
    	Death:
        	BLOD A 3
         	BDSH ABCDE 6
        	Stop
    	} 
   } 

//===================================================================//
//-----------------------CHEOGSH 2 NEW DECORATIONS------------------------------------------//
//===================================================================//

//----------------------------------------------------Crucified Marines-------------------------------------//
ACTOR CrucifiedMorpeh 22136
{
//$category Gibbet
  radius 10
  height 56
  mass 0x7fffffff
  health 20
  painchance 255
  painsound "Marine2/pain"
  deathsound "Marine2/death"
  +SOLID
  +NOGRAVITY
  +SHOOTABLE
  +DONTFALL
  states
  {
  Spawn:
  	DUMM A 64
	DUMM B 14 A_PlaySound("Marine2/active")
	DUMM AB 64
	DUMM A 80
	DUMM B 12 A_PlaySound("Marine2/active")
	DUMM AB 80
  	Loop
  Pain:
  	DUMM B 6
  	DUMM B 8 A_Pain
  	Goto Spawn
  Death:
  	DUMM B 0 A_SpawnItem("CrucifiedMorpeh2",0)
  	Stop
  }
}

ACTOR CrucifiedMorpeh2 22143
{
//$category Gibbet
  radius 10
  height 56
  +SOLID
  +NOGRAVITY
  +DONTFALL
  states
  {
  Spawn:
	DUMM C -1
  	Stop
  }
}

//----------------------Crucified Morpeh 3---------------------------//
ACTOR CrucifiedMorpeh3 22144
{
//$category Gibbet
  radius 24
  height 16
  +SOLID
  states
  {
  Spawn:
	DUMM A -1
  	Stop
  }
}

//-----------------------------Gore Marines-------------------------------------//
ACTOR SH_SpDude3 23008 
{
//$category Gibbet
	radius 16
	height 64
  	mass 0x7fffffff
  	health 30
  	painchance 255
  	painsound "Marine2/pain"
  	deathsound "Marine2/death"
  	+SOLID
  	+NOGRAVITY
  	+SHOOTABLE
  	+DONTFALL
  	+NORADIUSDMG
	states 
	{
		spawn:
			DUMM AB 8
			DUMM C 8 A_PlaySound("Marine2/active")
			DUMM D 8
			DUMM EFGHIJK 6
			DUMM L 8
			DUMM MNOPQRSTUVWXYZ 6
			DUM1 AB 6
			DUM1 CD 8
			DUMM AB 10
			DUMM C 10 A_PlaySound("Marine2/active")
			DUMM D 10
			DUMM EFGHIJKLM 7 
			DUMM N 8
			DUMM OPQRS 4
			DUMM TUVWXYZ 2
			DUM1 AB 3
			DUM1 CD 4
			Loop
	  	Pain:
  			DUMM C 6
  			DUMM D 8 A_Pain
  			Goto Spawn
  		Death:
  			DUMM E 8
  			DUMM E -1
  			Stop
		}
	}

ACTOR SH_FSpDude3 23009 
{
//$category Gibbet
	spawnid 187
	radius 16
	height 64
  	mass 0x7fffffff
  	health 30
  	painchance 255
  	painsound "MarineF/pain"
  	deathsound "MarineF/death"
  	+SOLID
  	+NOGRAVITY
  	+SHOOTABLE
  	+DONTFALL
	states 
	{
		spawn:
			DUMM AB 8
			DUMM C 8 A_PlaySound("MarineF/active")
			DUMM D 8
			DUMM EFGHIJK 6
			DUMM L 8
			DUMM MNOPQRSTUVWXYZ 6
			DUM1 AB 6
			DUM1 CD 8
			DUMM AB 10
			DUMM C 10 A_PlaySound("MarineF/active")
			DUMM D 10
			DUMM EFGHIJKLM 7 
			DUMM N 8
			DUMM OPQRS 4
			DUMM TUVWXYZ 2
			DUM1 AB 3
			DUM1 CD 4
			Loop
	  	Pain:
  			DUMM C 6
  			DUMM D 8 A_Pain
  			Goto Spawn
  		Death:
  			DUMM E 8
  			DUMM E -1
  			Stop
		}
	}

//----------------Hand On a Stick--------------------------------------//    
ACTOR HeadOnAStick2 : actor replaces headOnAStick // 27
{
  radius 8
  height 90
  +SOLID
  states
  {
  Spawn:
    POL4 A -1
    stop
  }
}

//======================================//
//-------------------Guard Statue-------------------------------------//
//======================================//
ACTOR GuardStatue : SwitchableDecoration 30333
{
//$category DecorObj
    radius 24
    height 64
    +SOLID
    States
    {
    Active:
     STA1 A 10
    Spawn:
     STA1 A 10
     loop
    Inactive:
     STAT ABCDEFGHIJKLMNOPQRSTU 5
     STAT V 5 A_ChangeFlag("SOLID",0)
     STAT W -1
     Stop
     }
 }

//===========================================//
//-------------------DEAD  MONSTERS------------------------------------//
//===========================================//
ACTOR DeadSoulHarvester 20101
{
//$category Gibbet
  spawnid 188
  radius 20
  height 16
  States
  {
  Spawn:
    SLHV W -1
    Stop
  }
}

ACTOR DeadMaulerDemon 20102
{
//$category Gibbet
  spawnid 189
  radius 30
  height 16
  States
  {
  Spawn:
    MAUD N -1
    Stop
  }
}

ACTOR DeadSatyr 20103
{
//$category Gibbet
  spawnid 190
  radius 20
  height 16
  scale 0.75
  States
  {
  Spawn:
    STYR O -1
    Stop
  }
}

ACTOR DeadChainguy 22151
{
//$category Gibbet
  radius 16
  height 16
  States
  {
  Spawn:
    CPOS N -1
    Stop
  }
}

ACTOR DeadMalevonant 22163
{
//$category Gibbet
  radius 16
  height 16
  States
  {
  Spawn:
    MVEL Q -1
    Stop
  }
}

ACTOR DeadTemplier 23010
{
//$category Gibbet
  radius 16
  height 16
  States
  {
  Spawn:
    HWAR T -1
    Stop
  }
}

ACTOR DeadGaut 30334
{
//$category Gibbet
  radius 16
  height 16
  States
  {
  Spawn:
    GAUT K -1
    Stop
  }
}

ACTOR DeadHellKnight 23013
{
//$category Gibbet
  spawnid 191
  radius 16
  height 16
  States
  {
  Spawn:
    BOS2 O -1
    Stop
  }
}

ACTOR DeadHellBaron 23014
{
//$category Gibbet
  spawnid 192
  radius 16
  height 16
  States
  {
  Spawn:
    BOSS O -1
    Stop
  }
}

ACTOR DeadArchVile 23015
{
//$category Gibbet
  spawnid 193
  radius 16
  height 16
  States
  {
  Spawn:
    VILE Z -1
    Stop
  }
}

//=======================================//
//---------------------------Crystals-------------------------------------//
//=======================================//
//by Nil
Actor CrystalB1 23005
{
//$category DecorObj
+SOLID
+NOGRAVITY
scale 0.23
height 14
radius 8
//+FLOORCLIP
states
{
Spawn:
CRUS A 1
CRUS A 7
loop
}
}

Actor CrystalB2 : CrystalB1 23006 
{
//$category DecorObj
height 16
}
Actor CrystalB3 : CrystalB1 23007 
{
//$category DecorObj
height 18
}

//=======================================//
//---------------------------Mushrooms-----------------------------------//
//=======================================//
ACTOR Mushroom1 22101
{
//$category Mushrooms
  radius 14
  height 16
DistanceCheck "Ch_ModRenDistFlora"
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Mushroom2 22102
{
//$category Mushrooms
  radius 14
  height 16
DistanceCheck "Ch_ModRenDistFlora"
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Mushroom3 22103
{
//$category Mushrooms
  radius 10
  height 16
DistanceCheck "Ch_ModRenDistFlora"
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Mushroom4 22104
{
//$category Mushrooms
  radius 8
  height 14
DistanceCheck "Ch_ModRenDistFlora"
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Mushroom5 22105
{
//$category Mushrooms
  radius 8
  height 10
DistanceCheck "Ch_ModRenDistFlora"
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Mushroom6 22106
{
//$category Mushrooms
  radius 8
  height 10
DistanceCheck "Ch_ModRenDistFlora"
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Mushroom7 22107
{
//$category Mushrooms
  radius 8
  height 10
DistanceCheck "Ch_ModRenDistFlora"
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Mushroom8 22108
{
//$category Mushrooms
  radius 5
  height 10
DistanceCheck "Ch_ModRenDistFlora"
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }

ACTOR PoisonMushroom 22109
{
//$category Mushrooms
  radius 12
  height 12
+SOLID
+CANPASS
DistanceCheck "Ch_ModRenDistFlora"
States
{
Spawn: 
DUMM A 0 nodelay A_SetAngle(18*random(0,19))
DUMM A 1 A_SpawnItemEx("PoisonMushroomCap",0,0,12,0,0,0,0,SXF_NOCHECKPOSITION)
DUMM A -1
Stop
}
}

ACTOR PoisonMushroomCap
{
  radius 12
  height 8
  health 20
  mass 0x7fffffff
  painchance 225
  +SOLID
  +CANPASS
  +SHOOTABLE
  +NODROPOFF
  +NORADIUSDMG
  +NOICEDEATH
  +NOBLOOD
  +NOTAUTOAIMED
DistanceCheck "Ch_ModRenDistFlora"
  States
  	{
  	Spawn:
  		DUMM A 9
  		Loop
  	Pain:
  		DUMM A 9 A_SetScale(1.1)
                	DUMM A 9 A_SetScale(1.0)
  		Goto Spawn
  	Death:
  		DUMM A 9 A_SetScale(1.1)
                	DUMM A 9 A_SetScale(1.0)
                	DUMM A 8 A_SetScale(1.1)
                	DUMM A 8 A_SetScale(1.0)
                	DUMM A 7 A_SetScale(1.1)
                	DUMM A 7 A_SetScale(1.0)
  		DUMM A 6 A_SpawnProjectile("UndeadPoisonCloud", 28,0,0,0,0)
  		Stop
  	}
  }

 
//=============================================================//
//------------------------------CHEOGSH 2 TREES-----------------------------------------//
//==============================================================//
ACTOR DeadTree1 22118
{
//$category Trees
  radius 24
  height 180
  deathheight 24
  health 60
  mass 0x7fffffff
  +SOLID
  +SHOOTABLE
  +NOBLOOD
  +DONTGIB
  +NOICEDEATH
  +NODROPOFF
  states
  	{
  	Spawn:
    		TREE A -1
    		stop
    	Pain:
    		TREE A 1
    		Goto Spawn
    	Death:
    		TRE2 B 1 A_PlaySound("tree/break")
    		TRE2 BCD 6
    		TRE2 E 6 A_Die
    		TRE2 F 6
    		TRE2 G -1
    		stop
    	XDeath:
    		TRE2 H 1 bright A_PlaySound("tree/burn")
    		TRE2 HIJKLMN 6 bright
    		TRE2 O 6 bright A_Die 
    		TRE2 P 6 
    		TRE2 Q -1
    		stop
        Burn:
    		TRE2 H 1 bright A_PlaySound("tree/burn")
    		TRE2 HIJKLMN 6 bright
    		TRE2 O 6 bright A_Die 
    		TRE2 P 6 
    		TRE2 Q -1
    		stop
  	}
}

//-----------------------------Big Tree With Leaves---------------------------------//  
ACTOR CHBigTree1 22128
{
//$category Trees
  radius 24
  height 180
  speed 0
  +SOLID
  +LOOKALLAROUND
  States
  	{
  	Spawn: 
  		DUMM A 8 //A_Chase
  		DUMM A 8 A_CustomMissile("CHLeaf1",64,16,0)
  		DUMM A 8 //A_Chase
  		DUMM A 8 A_CustomMissile("CHLeaf2",32,-16,64)
  		DUMM A 60
   		DUMM A 10 //A_Chase
   		DUMM A 8 A_CustomMissile("CHLeaf2",96,24,-64)
   		DUMM A 128
  		Loop
  	}
  }
  
ACTOR CHLeaf1 : Leaf1
{
  radius 3
  height 3
}  
  
ACTOR CHLeaf2 : Leaf2
{
  radius 3
  height 3
}

  
ACTOR CHBigTree2 22129
{
//$category Trees
  radius 24
  height 160
  +SOLID
  States
  	{
  	Spawn: 
  		DUMM A 0 nodelay {A_SetAngle(18*random(0,19)); A_SetScale(0.9+0.05*random(-2,2)); A_SetPitch(2*random(-2,2));}
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR OakTree1 22130
{
//$category Trees
  radius 24
  height 100
  +SOLID
  States
  	{
  	Spawn:
		TNT1 A 0
                TNT1 A 0 A_Jump(127,2)
                TNT1 A 0 A_ChangeFlag("SPRITEFLIP",1)  
  		TRE6 A -1
  		Stop
  	}
  }
  
ACTOR OakTree2 22131
{
//$category Trees
  radius 24
  height 100
  +SOLID
  States
  	{
  	Spawn:
		TNT1 A 0
                TNT1 A 0 A_Jump(127,2)
                TNT1 A 0 A_ChangeFlag("SPRITEFLIP",1)  
  		TRE7 A -1
  		Stop
  	}
  }

ACTOR Bush1 22116
{
//$category Trees
  radius 16
  height 16
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Bush2 22117
{
//$category Trees
  radius 20
  height 36
  scale 0.8
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }

//==========================================================//
//--------------------------------------Replaced Doom Objects------------------------------------------//
//==========================================================//
ACTOR CHBloodyTwitch replaces BloodyTwitch // 49
{
  Game Doom
  Radius 16
  Height 68
  health 30
  mass 0x7fffffff
  +SOLID
  +NOGRAVITY
  +SPAWNCEILING
  +SHOOTABLE
  +DONTFALL
  States
  {
  Spawn:
    GOR1 A 10
    GOR1 B 15
    GOR1 C 8
    GOR1 B 6
    Loop
  pain:
    GOR1 A 4
    Goto Spawn
  death:
    GOR1 B 10 A_Fall
    GOR1 B -1
    stop
  }
}

ACTOR CHLiveStick replaces LiveStick // 26
{
  Game Doom
  Radius 16
  Height 64
  deathheight 64
  health 30
  mass 0x7fffffff
  +SOLID
  +SHOOTABLE
  States
  {
  Spawn:
    POL6 A 10
    POL6 B 15
    POL6 AB 8
    POL6 A 0 A_Jump(96,1)
    Goto Spawn
    POL6 A 8
    POL6 B 6
    POL6 AB 13
    Goto Spawn
  pain:
    POL6 B 6
    goto Spawn
  death:
    POL6 B 5
    POL6 B -1
    stop
  }
}
  
//===================================================================//
//-----------------------ROCH NEW DECORATIONS------------------------------------------//
//===================================================================//
//-------------------Corpses----------------------------------------//
ACTOR DeadHuman1 22164
{
//$category Gibbet
  radius 32
  height 16
DistanceCheck "Ch_ModRenDistOther"
  states
  {
  Spawn:
   DUMM A -1
   stop
   }
}

ACTOR DeadHuman2 22165
{
//$category Gibbet
  Radius 16
  Height 4
  -SOLID
DistanceCheck "Ch_ModRenDistOther"
  States
  {
  Spawn:
	DUMM A 0 nodelay A_Jump(128,3)
	DUMM A 0 A_SetAngle(30*random(0,11))
	DUMM A -1
	stop

	DUMM B 0
	DUMM B 0 A_SetAngle(30*random(0,11))
	DUMM B -1
	stop
 	 }
}


//=========================================================//
//-----------------SKULL PILE------------------------------//
//=========================================================//
ACTOR KSkullPack 31807
{
//$category Gibbet
  Radius 24
  Height 24
  -SOLID
  States
  {
  Spawn:
    TNT1 A 0 nodelay 
{
A_SpawnItemEx("KSkull", 0, 0, 0, 0, 0, 0, 0, 0);
A_SpawnItemEx("KSkull", 12, 0, 0, 0, 0, 0, 0, 0);
A_SpawnItemEx("KSkull", -12, 0, 0, 0, 0, 0, 0, 0);
A_SpawnItemEx("KSkull", 12, 12, 0, 0, 0, 0, 0, 0);
A_SpawnItemEx("KSkull", -12, 12, 0, 0, 0, 0, 0, 0);
A_SpawnItemEx("KSkull", 0, 12, 0, 0, 0, 0, 0, 0);
A_SpawnItemEx("KSkull", 12, -12, 0, 0, 0, 0, 0, 0);
A_SpawnItemEx("KSkull", -12, -12, 0, 0, 0, 0, 0, 0);
A_SpawnItemEx("KSkull", 0, -12, 0, 0, 0, 0, 0, 0);

A_SpawnItemEx("KSkull", 8, 8, 14, 0, 0, 0, 0, 0);
A_SpawnItemEx("KSkull", 8, -8, 14, 0, 0, 0, 0, 0);
A_SpawnItemEx("KSkull", -8, 8, 14, 0, 0, 0, 0, 0);
A_SpawnItemEx("KSkull", -8, -8, 14, 0, 0, 0, 0, 0);

A_SpawnItemEx("KSkull", 0, 0, 28, 0, 0, 0, 0, 0,128);

A_SpawnItemEx("KSkull", -28, 7*random(-1,1), 0, 0, 0, 0, 0, 0,128);
A_SpawnItemEx("KSkull", 28, 7*random(-1,1), 0, 0, 0, 0, 0, 0,128);
A_SpawnItemEx("KSkull", 7*random(-1,1), 28, 0, 0, 0, 0, 0, 0,128);
A_SpawnItemEx("KSkull", 7*random(-1,1), -28, 0, 0, 0, 0, 0, 0,128);
}
TNT1 A 1
Stop
  }
}

ACTOR KSkull
{
//$category Gibbet
  Radius 5
  Height 6
  +SOLID
  +CANPASS
DistanceCheck "Ch_ModRenDistOther"
  States
  {
  Spawn:
    DUMM A 0 nodelay {A_SetAngle(10*random(0,35)); A_SetPitch(-45+5*random(-3,3)); A_SetScale(ScaleX + 0.05*random(-2,2));}
    DUMM A -1
    Stop
  }
}

ACTOR KSkull1 : KSkull 31803
{
//$category Gibbet
DistanceCheck "Ch_ModRenDistOther"
}

actor KSkullPack2 : KSkullPack 31806
{
//$category Gibbet
}
//===================================================//
//-------------------------Plants and Trees-------------------------------------------//
//===================================================//
ACTOR RoCHBigTree1 22166
{
//$category Trees
  radius 24
  height 180
  +SOLID
  States
  	{
  	Spawn: 
		DUMM A 0 nodelay {A_SetAngle(18*random(0,19)); A_SetScale(0.9+0.05*random(-2,2)); A_SetPitch(2*random(-2,2));}
  		DUMM A -1
  		Stop
  	}
  }

//---------------------------------Swamp Grass------------------------------------------//
ACTOR UnderwaterGrass3 22183
{
//$category Trees
height 24
States
{
Spawn:
DUMM A 0 nodelay
{
A_SpawnItemEx("Typha_spawner",-12,-6,0, 0, 0, 0, 0, SXF_NOCHECKPOSITION);
A_SpawnItemEx("Typha_spawner",-12,6,0, 0, 0, 0, 0, SXF_NOCHECKPOSITION);
A_SpawnItemEx("Typha_spawner",12,-6,0, 0, 0, 0, 0, SXF_NOCHECKPOSITION);
A_SpawnItemEx("Typha_spawner",12,6,0, 0, 0, 0, 0, SXF_NOCHECKPOSITION);
A_SpawnItemEx("Typha_spawner",0,0,0, 0, 0, 0, 0, SXF_NOCHECKPOSITION);
}
DUMM A 1
Stop
}
}

ACTOR Typha01
{
Radius 0
Height 0
-SOLID
States
{
Spawn:
DUMM A 0 nodelay {A_SetAngle(18*random(0,19)); A_SetScale(0.1*random(-2,2)+1.0,0.1*random(-1,3)+1.0,0,true); A_SetPitch(random(-7,7)); }
DUMM A -1
Stop
}
}

ACTOR Typha02 : Typha01 {}
ACTOR Typha11 : Typha01 {}
ACTOR Typha12 : Typha01 {}

actor Typha_spawner
{
  radius 1
  height 0
//+SOLID
states
{
Spawn:
DUMM A 0 nodelay A_Jump(256,"Spawn1","Spawn2","Spawn3","Spawn4")
DUMM A -1
stop

Spawn1:
DUMM A 0 A_SpawnItemEx("Typha01",0,0,0, 0, 0, 0, 0, SXF_NOCHECKPOSITION)
DUMM A 1
stop

Spawn2:
DUMM A 0 A_SpawnItemEx("Typha02",0,0,0, 0, 0, 0, 0, SXF_NOCHECKPOSITION)
DUMM A 1
stop

Spawn3:
DUMM A 0 A_SpawnItemEx("Typha11",0,0,0, 0, 0, 0, 0, SXF_NOCHECKPOSITION)
DUMM A 1
stop

Spawn4:
DUMM A 0 A_SpawnItemEx("Typha12",0,0,0, 0, 0, 0, 0, SXF_NOCHECKPOSITION)
DUMM A 1
stop
}
}
  
//=============================//
//-----------------------LOGS--------------------------//
//=============================//
ACTOR KLogSpawner 22167
{
//$category Trees
States
{
Spawn:
TNT1 A 0 nodelay A_Jump(256,1,2,3,4)
TNT1 A 1 A_SpawnItemEx("KLog1")
Stop
TNT1 A 1 A_SpawnItemEx("KLog2")
Stop
TNT1 A 1 A_SpawnItemEx("KLog3")
Stop
TNT1 A 1 A_SpawnItemEx("KLog4")
Stop
}
}

ACTOR KLog1 
{
radius 24
height 24
DistanceCheck "Ch_ModRenDistFlora"
States
{
Spawn:  
DUMM A 0 nodelay {A_SetAngle(15*random(0,23)); A_SetScale(0.25*random(0,3)+0.5); A_SetPitch(15*random(-6,6)); }             
DUMM A -1
Stop        
}
}

Actor KLog2 : KLog1 
{
DistanceCheck "Ch_ModRenDistFlora"
}

Actor KLog3 : KLog1 
{
DistanceCheck "Ch_ModRenDistFlora"
States
{
Spawn:  
DUMM A 0 nodelay { A_SetAngle(15*random(0,23)); A_SetScale(0.25*random(0,3)+0.5); }             
DUMM A -1
Stop        
}
}

Actor KLog4 : KLog3 
{
DistanceCheck "Ch_ModRenDistFlora"
}

//---------------------end of Logs----------------------------------//



ACTOR Plant1 22168
 {
//$category Trees
  radius 8
  height 200
  +SOLID
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }

ACTOR Plant2 22169
 {
//$category Trees
  radius 16
  height 48
  +SOLID
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Plant3 22170
 {
//$category Trees
  radius 16
  height 64
  +SOLID
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }

ACTOR Plant4 22171
 {
//$category Trees
  radius 16
  height 80
  +SOLID
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }

ACTOR Plant5 22172
 {
//$category Trees
  radius 16
  height 16
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }

ACTOR BigTree8 22173
 {
//$category Trees
  radius 16
  height 160
  +SOLID
  States
  	{
  	Spawn:
  		DUMM A 0 nodelay {A_SetAngle(18*random(0,19)); A_SetScale(0.75+0.05*random(-3,3)); A_SetPitch(2*random(-3,3));}
		DUMM A -1
  		Stop
  	}
  }
  
ACTOR BigTree9 22174
 {
//$category Trees
  radius 16
  height 160
  +SOLID
  States
  	{
  	Spawn:
  		DUMM A 0 nodelay {A_SetAngle(18*random(0,19)); A_SetScale(0.75+0.05*random(-3,3)); A_SetPitch(2*random(-3,3));}
  		DUMM A -1
  		Stop
  	}
  }

ACTOR Tree11 22175
 {
//$category Trees
  radius 16
  height 96
  +SOLID
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }

ACTOR Tree12 22176
 {
//$category Trees
  radius 24
  height 72
  +SOLID
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Tree13 22177
 {
//$category Trees
  radius 16
  height 160
  +SOLID
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Tree14 22178
 {
//$category Trees
  radius 16
  height 200
  +SOLID
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Tree15 22179
 {
//$category Trees
  radius 16
  height 128
  +SOLID
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Tree16 22180
 {
//$category Trees
  radius 16
  height 160
  +SOLID
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Tree17 22181
 {
//$category Trees
  radius 16
  height 128
  +SOLID
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Tree18 22182
 {
//$category Trees
  radius 16
  height 128
  +SOLID
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Tree19 22184
 {
//$category Trees
  radius 16
  height 96
  +SOLID
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Tree20 22185
 {
//$category Trees
  radius 16
  height 96
  +SOLID
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }
  
ACTOR Tree21 22186
 {
//$category Trees
  radius 16
  height 128
  +SOLID
  States
  	{
  	Spawn:
  		DUMM A -1
  		Stop
  	}
  }

//===================================================//
//------------------------Book modelled-------------------------------------------//
//===================================================//
ACTOR KBook1 22896
{
//$category CityObjSmall
height 2
radius 12
  Activation "THINGSPEC_Default"
  +SOLID
  +USESPECIAL
  +NOGRAVITY
States
{
	Spawn:
		DUMM A -1
		stop
	Spawn2:
		DUMM ABCDEFGHIJK 3
		Goto Spawn
	}
}

ACTOR KBook1Slopped : KBook1 22897
{
//$category CityObjSmall
}

//============================================================//
//--------------------------------MINES OBJECTS-----------------------------------------------//
//============================================================//
actor IMineCar 22898
{
//$category CityObjSmall
radius 32
height 24
+SOLID
+CANPASS
States
{
Spawn:
DUMM A -1
Stop
}
}

ACTOR IWheelBarrow 22899
{
//$category CityObjSmall
RenderStyle Normal
radius 32
height 24
+SOLID
+CANPASS
DistanceCheck "Ch_ModRenDistOther"
States
{
Spawn:
DUMM A -1
Stop
}
}


ACTOR IHandBarrow 22900
{
//$category CityObjSmall
RenderStyle Normal
radius 32
height 0
+NOINTERACTION
DistanceCheck "Ch_ModRenDistOther"
States
{
Spawn:
DUMM A 0 nodelay A_SetPitch(Args[0])
DUMM A -1
Stop
}
}

ACTOR IRails_line 22901
{
//$category CityObjSmall
RenderStyle Normal
radius 32
height 0
+NOINTERACTION
States
{
Spawn:
DUMM A 0 nodelay {A_SetPitch(Args[0]); return A_Jump(128,"spawn2"); }
DUMM A -1
Stop

Spawn2:
DUMM B 0
DUMM B -1
Stop
}
}

ACTOR IRails_roundR45 : IRails_line 22902
{
//$category CityObjSmall
} 

ACTOR IRails_roundR15 : IRails_line 22903
{
//$category CityObjSmall
} 

ACTOR IRails_roundL15 : IRails_line 22904
{
//$category CityObjSmall
}

ACTOR IRails_roundL45 : IRails_line 22905
{
//$category CityObjSmall
}

ACTOR IRails_turnoutL : IRails_line 22906
{
//$category CityObjSmall
radius 64
}

ACTOR IRails_turnoutR : IRails_line 22907
{
//$category CityObjSmall
radius 64
}

ACTOR IRails_line_short : IRails_line 22908
{
//$category CityObjSmall
}

//========================================//
//-------------------------Grass Spawners-------------------------------//
//========================================//
ACTOR KGrassSpawner1 22909
{
//$category Trees
radius 0
height 0
-SOLID
States
{
Spawn:
TNT1 A 1 nodelay
{
A_SpawnItemEx("KGrass",0,0,0, 0, 0, 0, 0, SXF_NOCHECKPOSITION);
A_SpawnItemEx("KGrass",4*random(-4,-2),4*random(-4,-2),0, 0, 0, 0, 0, SXF_NOCHECKPOSITION);
A_SpawnItemEx("KGrass",4*random(-4,-2),4*random(2,4),0, 0, 0, 0, 0, SXF_NOCHECKPOSITION);
A_SpawnItemEx("KGrass",4*random(2,4),4*random(-4,-2),0, 0, 0, 0, 0, SXF_NOCHECKPOSITION);
A_SpawnItemEx("KGrass",4*random(2,4),4*random(2,4),0, 0, 0, 0, 0, SXF_NOCHECKPOSITION);
}
TNT1 A 1
stop
}
}

ACTOR KGrass
{
Radius 0
Height 0
-SOLID
DistanceCheck "Ch_ModRenDistFlora"
States
{
Spawn:
DUMM A 0 nodelay {A_SetAngle(18*random(0,19)); A_SetScale(0.1*random(-2,2)+0.85); }
DUMM A -1
Stop
}
}

//===========================================================//
//-----------------------------SHEOL OBJECTS-----------------------------------------//
//==========================================================//

//----------------------Crucified Dude 1------------------------------//
ACTOR CrucifiedDude1 22145 
{
//$category Gibbet
	height 56
	radius 8
	+SOLID
	+NOGRAVITY
	states 
        	{
	Spawn:
	    	DUMM A -1
           	 	Stop
	}
}

//----------------Chain 1-----------------//

actor Chain1 25001
{
//$category DecorObj
    Radius 6
    Height 24
    +NOGRAVITY
    +SPAWNCEILING
    States
    {
    Spawn:
        CHN1 A -1
        Stop
     }
}

//--------------------Tree Dry Big-----------------------------//
ACTOR P_TreeDryBig 25003
{
//$category Obstacles
  radius 30
  height 304
  +SOLID
  States
  	{
  	Spawn:
		TNT1 A 0 nodelay {A_SetAngle(18*random(0,19)); A_SetScale(1.0+0.05*random(-2,2)); A_SetPitch(2*random(-2,2));}
  		DUMM A -1
  		Stop
  	}
}

//=======================================================================================//
//-----------------------------------------BIG BOOM--------------------------------------//
//=======================================================================================//
ACTOR BigBoom
{ 
   Height 8
   Radius 8
   Mass 1
   Damage 1
   DamageType "Fire"
   Speed 0
   +MISSILE
   +NOGRAVITY 
      States 
 	{ 
    	Spawn: 
        	TNT1 A 5 
        	Goto Death
    	Death:
        	PTNE A 1 bright A_PlaySound("bolt/explosion")
      		PTNE A 5 bright Light("ExplodedBolt_X1") A_Explode(64,64)
         	PTNE B 5 bright Light("ExplodedBolt_X2") A_Explode(32,32)
         	PTNE C 5 bright Light("ExplodedBolt_X3")
		PTNE DEF 5 bright Light("ExplodedBolt_X4")
        	Stop
    	} 
   } 