Actor SmallCrowSpawner
{
Radius 24
Height 8
Speed 17
Monster
-SHOOTABLE
-COUNTKILL
-SOLID
States
{
   Spawn:
	TNT1 A 5
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("CreatureSpawner") == 0,"Death")
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("CrowSkyCheck") == 0,"Death")
	TNT1 AA 0 A_SpawnItemEx("CrowWander2L",random(-30,30),random(-30,30),0,0,0,0,random(0,360),SXF_NOCHECKPOSITION)
	TNT1 AA 0 A_SpawnItemEx("CrowWander2R",random(-30,30),random(-30,30),0,0,0,0,random(0,360),SXF_NOCHECKPOSITION)
   Death:
	TNT1 A 0 A_Fall
	Stop
	}
}

ACTOR EnviromentalSpawner : RandomSpawner
{
+DROPPED
Dropitem "SmallbatSpawner", 256, 10
Dropitem "Smallrat", 256, 10
Dropitem "Smallspider", 256, 10
Dropitem "SmallCrowSpawner", 256, 5
Dropitem "LilCaleb", 256, 3
}

ACTOR NexusBulletSpawner2 : RandomSpawner
{
Dropitem "BulletMag", 256, 32
Dropitem "ExplosiveAmmo", 256, 8
Dropitem "NexusLegendaryLMGBulletMag", 256, 5
Dropitem "NexusELegendaryLMGBulletMag", 256, 3
Dropitem "NemesisDMGBulletMag", 256, 1
}

Actor ClipPlacer : CustomInventory replaces NexusBulletSpawner
{
+INVENTORY.QUIET
+INVENTORY.ALWAYSPICKUP
+INVENTORY.NEVERRESPAWN
+THRUACTORS
Inventory.Amount 0
States
{
  Spawn:
	TNT1 A 0 NoDelay A_SpawnItemEx("EnviromentalSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,220)
	TNT1 A 1 A_SpawnItemEx("NexusBulletSpawner2",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS,0)
	TNT1 A 2 A_ChangeFlag("THRUACTORS",false)
	Stop
	}
}

ACTOR NexusBulletBoxSpawner2 : RandomSpawner
{
Dropitem "BulletBox", 256, 45
Dropitem "ExplosiveAmmoBox", 256, 8
Dropitem "NexusLegendaryBulletBox", 256, 5
Dropitem "NexusELegendaryBulletBox", 256, 3
Dropitem "NemesisBulletBox", 256, 1
}

Actor ClipBoxPlacer : ClipPlacer replaces NexusBulletBoxSpawner
{
States
{
  Spawn:
	TNT1 A 0 NoDelay A_SpawnItemEx("EnviromentalSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,220)
	TNT1 A 1 A_SpawnItemEx("NexusBulletBoxSpawner2",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS,0)
	TNT1 A 2 A_ChangeFlag("THRUACTORS",false)
	Stop
	}
}

ACTOR NexusShellSpawner2 : RandomSpawner
{
Dropitem "NewShell", 256, 36
Dropitem "NexusLegendaryShell", 256, 5
Dropitem "NexusEnragedLegendaryShell", 256, 3
Dropitem "NexusNemesisShell", 256, 1
}

Actor ShellPlacer : ClipPlacer replaces NexusShellSpawner
{
States
{
  Spawn:
	TNT1 A 0 NoDelay A_SpawnItemEx("EnviromentalSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,220)
	TNT1 A 1 A_SpawnItemEx("NexusShellSpawner2",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS,0)
	TNT1 A 2 A_ChangeFlag("THRUACTORS",false)
	Stop
	}
}

ACTOR NexusShellBoxSpawner2 : RandomSpawner
{
Dropitem "NewShellBox", 256, 45
Dropitem "NexusLegendaryShellBox", 256, 5
Dropitem "NexusEnragedLegendaryShellBox", 256, 3
Dropitem "NexusNemesisShellBox", 256, 1
}

Actor ShellBoxPlacer : ClipPlacer replaces NexusShellBoxSpawner
{
States
{
  Spawn:
	TNT1 A 0 NoDelay A_SpawnItemEx("EnviromentalSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,220)
	TNT1 A 1 A_SpawnItemEx("NexusShellBoxSpawner2",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS,0)
	TNT1 A 2 A_ChangeFlag("THRUACTORS",false)
	Stop
	}
}

ACTOR NexusRocketSpawner2 : RandomSpawner
{
Dropitem "Missile", 256, 14
Dropitem "NexusGas", 256, 5
}

Actor RocketAmmoPlacer : ClipPlacer replaces NexusRocketSpawner
{
States
{
  Spawn:
	TNT1 A 0 NoDelay A_SpawnItemEx("EnviromentalSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,220)
	TNT1 A 1 A_SpawnItemEx("NexusRocketSpawner2",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS,0)
	TNT1 A 2 A_ChangeFlag("THRUACTORS",false)
	Stop
	}
}

ACTOR NexusRocketBoxSpawner2 : RandomSpawner
{
Dropitem "MissileBox", 256, 24
Dropitem "NexusBigGas", 256, 5
Dropitem "NexusProxMines", 256, 1
}

Actor RocketBoxPlacer : ClipPlacer replaces NexusRocketBoxSpawner
{
States
{
  Spawn:
	TNT1 A 0 NoDelay A_SpawnItemEx("EnviromentalSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,220)
	TNT1 A 1 A_SpawnItemEx("NexusRocketBoxSpawner2",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS,0)
	TNT1 A 2 A_ChangeFlag("THRUACTORS",false)
	Stop
	}
}

ACTOR NexusCellSpawner2 : RandomSpawner
{
Dropitem "NewCell", 256, 42
Dropitem "NexusDemonAmmo", 256, 8
Dropitem "NexusDustMana", 256, 4
Dropitem "NexusLDemonAmmo", 256, 1
Dropitem "NexusILDemonAmmo", 256, 1
Dropitem "NexusNLDemonAmmo", 256, 1
Dropitem "NexusDCell", 256, 1
}

Actor CellPlacer : ClipPlacer replaces NexusCellSpawner
{
States
{
  Spawn:
	TNT1 A 0 NoDelay A_SpawnItemEx("EnviromentalSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,220)
	TNT1 A 1 A_SpawnItemEx("NexusCellSpawner2",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS,0)
	TNT1 A 2 A_ChangeFlag("THRUACTORS",false)
	Stop
	}
}

ACTOR NexusCellBoxSpawner2 : RandomSpawner
{
Dropitem "NewCellPack", 256, 64
Dropitem "NexusDemonAmmoBox", 256, 8
Dropitem "NexusBigDustMana", 256, 4
Dropitem "NexusLDemonAmmoBox", 256, 1
Dropitem "NexusILDemonAmmoBox", 256, 1
Dropitem "NexusNLDemonAmmoBox", 256, 1
Dropitem "NexusDCellPack", 256, 1
}

Actor CellPackPlacer : ClipPlacer replaces NexusCellBoxSpawner
{
States
{
  Spawn:
	TNT1 A 0 NoDelay A_SpawnItemEx("EnviromentalSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,220)
	TNT1 A 1 A_SpawnItemEx("NexusCellBoxSpawner2",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS,0)
	TNT1 A 2 A_ChangeFlag("THRUACTORS",false)
	Stop
	}
}

ACTOR TorchTree2 : TorchTree Replaces TorchTree
{
States
{
  Spawn:
	TNT1 A 0 NoDelay A_SpawnItemEx("SmallCrowSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,220)
	TRE1 A -1
	Stop
	}
}

ACTOR BigTree3: BigTree Replaces BigTree
{
States
{
  Spawn:
	TNT1 A 0 NoDelay A_SpawnItemEx("SmallCrowSpawner",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION,220)
	TRE2 A -1
	Stop
	}
}

ACTOR Stalagtite2: Stalagtite Replaces Stalagtite
{
States
{
  Spawn:
	TNT1 A 0 NoDelay A_SpawnItemEx("SmallCrowSpawner",0,0,0,0,0,0,0,0,220)
	SMIT A -1
	Stop
	}
}