ACTOR MLGPresent : CustomInventory
{
Alpha 1.0
Scale 0.18
Renderstyle Normal
Inventory.Amount 1
Inventory.MaxAmount 1
Inventory.PickupSound "xmas/get"
Inventory.PickupMessage "MLG Present!"
+INVENTORY.INVBAR
+INVENTORY.HUBPOWER
+INVENTORY.PERSISTENTPOWER
+FLOATBOB
+COUNTITEM
+FLOORCLIP
+NOTIMEFREEZE
+DONTGIB
States
{
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("NexusNoFloat") == 0,2)
	TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
	TNT1 A 0 A_PlaySound("xmas/soundloop",7,1.0,True)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleGreen",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20)) //random(-12,12)
	PR14 AB 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleGreen",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20))
	PR14 CD 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleGreen",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20)) 
	PR14 EF 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleGreen",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20))
	PR14 GH 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleGreen",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20))
	PR14 IJKL 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	Goto Spawn+2
  Pickup:
	TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("MLGPresentItem",2,"Nope")
	TNT1 A 0 A_StopSound(7)
	TNT1 A 1 A_GiveInventory("MLGPresentItem")
	Stop
  Nope:
	TNT1 A 1
	Fail
	 }
}

ACTOR MLGPresentItem : CustomInventory
{
Inventory.Amount 1
Inventory.MaxAmount 2
Inventory.InterHubAmount 2
Tag "MLG Present"
Inventory.Icon "PR14M0"
+INVENTORY.UNDROPPABLE
+INVENTORY.BIGPOWERUP
+INVENTORY.INVBAR
+FLOATBOB
+COUNTITEM
+FLOORCLIP
+NOTIMEFREEZE
States
	{
	Use:
	  TNT1 A 1 A_SpawnItemEx("MLGPresentActive",0,0,16,8,0,4,0)
	  Stop
	}
}

Actor MLGPresentActive : ExplosiveBarrel
{
  Health 0x7fffffff
  Radius 16
  Height 38
  Mass 0x7fffffff
  Scale 0.23
  Renderstyle Normal
  -SOLID
  -SHOOTABLE
  +NEVERRESPAWN
  +DONTGIB
  +NOICEDEATH
  +NOBLOOD
  +ISMONSTER
  Tag "Xmas Present"
  States
  {
  Spawn:
	TNT1 A 0 
    PZ14 AAAAA 8
	TNT1 A 0 A_PlaySound("xmas/open",7)
	PZ14 BBCCDDEE 3
	PZ14 E 35
	TNT1 A 0 A_Jump(26,"WTF","Jackpot")
	TNT1 A 0 A_Jump(168,"Powerups","Powerups","Weapons","Monsters")
    Goto Bonus
  Bonus:
    PZ14 E 1
	TNT1 A 0 A_Jump(92,"Ammos")
	TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticleGreen",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("NormalPresentBonusSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,64)
	Goto Death
  Ammos:
    PZ14 E 1
    TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticleGreen",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 AAAAAAAAAAAAAAA 0 A_SpawnItemEx("NormalPresentAmmoSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,64)
	Goto Death
  Powerups:
    PZ14 E 1
	TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticleGreen",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 A 0 A_SpawnItemEx("NormalPresentPowerupSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Weapons:
    PZ14 E 1
	TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticleGreen",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 A 0 A_SpawnItemEx("NormalPresentWeaponSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Monsters:
    PZ14 E 1
	TNT1 A 0 A_PlaySound("worlds/quake",7)
	PZ14 E 80 A_Quake(7,50,0,1400)
	TNT1 A 0 A_PlaySound("Weapons/ProxFire")
	TNT1 A 0 A_SpawnItemEx("MLGMonsterCube",0,0,1,random(1,8),0,random(20,35),random(0,360),0,0)
	TNT1 A 0 A_Jump(70,"MoreMonsters")
	Goto Death
  MoreMonsters:
    PZ14 E 35
	TNT1 A 0 A_PlaySound("Weapons/ProxFire")
	TNT1 A 0 A_SpawnItemEx("MLGMonsterCube",0,0,1,random(1,8),0,random(20,35),random(0,360),0,0)
	PZ14 E 35
	TNT1 A 0 A_PlaySound("Weapons/ProxFire")
	TNT1 A 0 A_SpawnItemEx("MLGMonsterCube",0,0,1,random(1,8),0,random(20,35),random(0,360),0,0)
	Goto Death
  Jackpot:
    PZ14 E 1
	TNT1 A 0 A_Jump(32,"Barrels")
	TNT1 A 0 A_Jump(256,"Santa","Hackroid","Doomslayer","TheScrollOfHellfire","Yoooooo")
	Goto Death
  Barrels:
    PZ14 E 1
	TNT1 A 0 A_PlaySound("xmas/surprise",7)
	PZ14 EEEEEE 4 A_SpawnItemEX("DangerousBarrelSpawner",0,0,1,random(8,16),0,random(16,20),random(0,360),0,64)
	Goto Death
  Santa:
    PZ14 E 1
	TNT1 A 0 A_SpawnItemEX("SantaSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Hackroid:
    PZ14 E 1
	TNT1 A 0 A_PlaySound("xmas/leet",7)
	TNT1 A 0 A_SpawnItemEx("PresentHackroidSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Doomslayer:
    PZ14 E 1
	TNT1 A 0 A_PlaySound("xmas/secret",7,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("PresentDoomslayerSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  TheScrollOfHellfire:
    PZ14 E 1
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ14 E 15
	TNT1 A 0 Radius_Quake(5, 350, 0, 140, 0)
	TNT1 A 0 A_PlaySoundEx("brain/spit",7,0,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-72,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-144,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-216,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-288,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,0,2)
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ14 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ14 E 15
	TNT1 A 0 A_PlaySound("HFCyb/laugh2",7)
	TNT1 AAAAA 0 A_SpawnItemEx("HellFlame",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("ScrollOfHellfire",0,0,1,random(1,8),0,random(8,15),random(0,360),0,192)
	TNT1 A 0 A_SpawnItemEx("HellfireArmor",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("HellfireUltraSphere",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Yoooooo:
    PZ14 E 1
    TNT1 A 0 A_PlaySound("xmas/yoooooo",7)
	PZ14 E 287
	TNT1 A 0 A_SpawnItemEx("PresentRuneSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  WTF:
    PZ14 E 1
	TNT1 A 0 A_Jump(256,"WormInfestation","Armageddon","MiniCardinal","MiniCaleb")
	Goto Death
  WormInfestation:
    PZ14 E 1
	TNT1 A 0 A_PlaySound("xmas/no",7)
	PZ14 EEEEEEEEEEEEEEEEEE 20 A_SpawnItemEx("VenomMaggotSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	PZ14 EEEEEEEEEEEEEEEEEE 10 A_SpawnItemEx("VenomMaggotSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	PZ14 EEEEEEEEEEEEEEEEEE 5 A_SpawnItemEx("VenomMaggotSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	Goto Death
  Armageddon:
    PRZ7 E 1
	TNT1 A 0 A_PlaySound("xmas/armageddon",7,1,0,ATTN_NONE)
	PZ14 E 90
	TNT1 A 0 Radius_Quake(2, 90, 0, 140, 0)
	PZ14 E 90
	TNT1 A 0 Radius_Quake(3, 90, 0, 140, 0)
	PZ14 E 90
	TNT1 A 0 Radius_Quake(2, 90, 0, 140, 0)
	PZ14 E 90
	TNT1 A 0 Radius_Quake(5, 90, 0, 140, 0)
	PZ14 E 90
	TNT1 A 0 Radius_Quake(2, 90, 0, 140, 0)
	PZ14 E 90
	TNT1 A 0 Radius_Quake(3, 90, 0, 140, 0)
	PZ14 E 90
	TNT1 A 0 Radius_Quake(2, 90, 0, 140, 0)
	PZ14 E 90
	TNT1 A 0 Radius_Quake(9, 90, 0, 140, 0)
	PZ14 E 90
	TNT1 A 0 A_SpawnItemEX("XmasBoom",0,0,0,0,0,0,0)
	PZ14 E 35 A_StopSound(7)
	Goto Death
  MiniCardinal:
    PZ14 E 1
	TNT1 A 0 A_SpawnItemEX("MiniCardinalSpawner",0,0,0,0,0,0,0)
	Goto Death
  MiniCaleb:
    PZ14 E 1
	PZ14 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 3 A_SpawnItemEX("CalebSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	Goto Death
  Death: 
    PZ14 E 210
	PZ14 EEEEEEEEEEEEEEEEEEEEEE 2 A_FadeOut(0.05)
    Stop
  }
}

Actor MLGMonsterCube
{
Radius 20
Height 32
Scale 1
-SOLID
States
 {
  Spawn:
	BOSM A 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleGreen",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSM A 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleGreen",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSM B 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleGreen",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSM B 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleGreen",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSM C 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleGreen",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSM C 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleGreen",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSM D 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleGreen",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSM D 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleGreen",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	Loop
  Done:
    BOSF "Z" 0
	BOSF "Z" 0 A_CustomMissile ("TeleportFog", 0, 0, 0, 0, 0)
	BOSF "Z" 1 A_SpawnItemEx ("MLGPresentMonsterSpawner", 0, 0, 8, 0, 0, 0, 0, 1)
	Stop
  }
}

ACTOR MLGPresentMonsterSpawner : RandomSpawner
{
+DROPPED
DropItem "MLGZombie", 256, 80
DropItem "MLGAssaultCaptain", 256, 77
//DropItem "NemesisCommando3", 256, 73
DropItem "MLGStealthTrooper", 256, 72
//DropItem "CursedImp", 256, 70
//DropItem "NemesisSuicideBomber3", 256, 65
//DropItem "NemesisFiend3", 256, 58
//DropItem "NemesisSoul", 256, 50
//DropItem "NemesisSuperShotgunZombie3", 256, 48
//DropItem "NemesisDefiler3", 256, 47
//DropItem "NemesisChainsawZombie3", 256, 45
//DropItem "NemesisTormentor3", 256, 43
//DropItem "NemesisBabySentient3", 256, 40
//DropItem "NemesisBehemoth3", 256, 38
//DropItem "CursedRevenant", 256, 35
//DropItem "CursedHellKnight", 256, 25
//DropItem "CursedCyberNoble", 256, 20
//DropItem "NemesisExile3", 256, 15
//DropItem "NemesisSentient", 256, 10
//DropItem "NemesisCyberdemon", 256, 5
//DropItem "NemHellsmith", 256, 2
//DropItem "CursedTerminator", 256, 1 //Sure why not >:)
DropItem "MLGBarrelMan" 256, 1
DropItem "MLGDoomguy" 256, 1
}

//Zamasu
ACTOR ZamasuPresent : CustomInventory
{
Alpha 1.0
Scale 0.18
Renderstyle Normal
Inventory.Amount 1
Inventory.MaxAmount 1
Inventory.PickupSound "xmas/get"
Inventory.PickupMessage "Zamasu Present!"
+INVENTORY.INVBAR
+INVENTORY.HUBPOWER
+INVENTORY.PERSISTENTPOWER
+FLOATBOB
+COUNTITEM
+FLOORCLIP
+NOTIMEFREEZE
+DONTGIB
States
{
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("NexusNoFloat") == 0,2)
	TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
	TNT1 A 0 A_PlaySound("xmas/soundloop",7,1.0,True)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleWhite",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20)) //random(-12,12)
	PR10 AB 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleWhite",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20))
	PR10 CD 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleWhite",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20)) 
	PR10 EF 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleWhite",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20))
	PR10 GH 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleWhite",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20))
	PR10 IJKL 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	Goto Spawn+2
  Pickup:
	TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("ZamasuPresentItem",2,"Nope")
	TNT1 A 0 A_StopSound(7)
	TNT1 A 1 A_GiveInventory("ZamasuPresentItem")
	Stop
  Nope:
	TNT1 A 1
	Fail
	 }
}

ACTOR ZamasuPresentItem : CustomInventory
{
Inventory.Amount 1
Inventory.MaxAmount 2
Inventory.InterHubAmount 2
Tag "Zamasu Present"
Inventory.Icon "PR10M0"
+INVENTORY.UNDROPPABLE
+INVENTORY.BIGPOWERUP
+INVENTORY.INVBAR
+FLOATBOB
+COUNTITEM
+FLOORCLIP
+NOTIMEFREEZE
States
	{
	Use:
	  TNT1 A 1 A_SpawnItemEx("ZamasuPresentActive",0,0,16,8,0,4,0)
	  Stop
	}
}

Actor ZamasuPresentActive : ExplosiveBarrel
{
  Health 0x7fffffff
  Radius 16
  Height 38
  Mass 0x7fffffff
  Scale 0.23
  Renderstyle Normal
  -SOLID
  -SHOOTABLE
  +NEVERRESPAWN
  +DONTGIB
  +NOICEDEATH
  +NOBLOOD
  +ISMONSTER
  Tag "Xmas Present"
  States
  {
  Spawn:
	TNT1 A 0 
    PZ10 AAAAA 8
	TNT1 A 0 A_PlaySound("xmas/open",7)
	PZ10 BBCCDDEE 3
	PZ10 E 35
	TNT1 A 0 A_Jump(26,"WTF","Jackpot")
	TNT1 A 0 A_Jump(168,"Powerups","Powerups","Weapons","Monsters")
    Goto Bonus
  Bonus:
    PZ10 E 1
	TNT1 A 0 A_Jump(36,"MoreBonus","EvenMoreBonus")
	TNT1 A 0 A_Jump(92,"Ammos")
	TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticleGold",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("NemesisPresentBonusSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,64)
	Goto Death
  MoreBonus:
    PZ10 E 1
	TNT1 A 0 A_SpawnItem("HellionSmokeAttack")
	PZ10 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 1 A_SpawnItem("NemesisZombieItemRandomizer")
	PZ10 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 1 A_SpawnItem("NemesisZombieItemRandomizer")
	PZ10 E 1 A_SpawnItem("NemesisZombieSuperItemRandomizer")
	Goto Death
  EvenMoreBonus:
    PZ10 E 1
	TNT1 A 0 A_SpawnItem("HellionSmokeAttack")
	PZ10 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 1 A_SpawnItem("NemesisHKItemRandomizer")
	PZ10 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 1 A_SpawnItem("NemesisHKItemRandomizer")
	PZ10 E 1 A_SpawnItem("NemesisHKSuperItemRandomizer")
	Goto Death
  Ammos:
    PZ10 E 1
    TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticleGold",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 AAAAAAAAAAAAAAA 0 A_SpawnItemEx("ZamasuPresentAmmoSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,64)
	Goto Death
  Powerups:
    PZ10 E 1
	TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticleGold",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 A 0 A_SpawnItemEx("ZamasuPresentPowerupSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Weapons:
    PZ10 E 1
	TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticleGold",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 A 0 A_SpawnItemEx("ZamasuPresentWeaponSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Monsters:
    PZ10 E 1
	TNT1 A 0 A_PlaySound("worlds/quake",7)
	PZ10 E 80 A_Quake(7,50,0,1400)
	TNT1 A 0 A_PlaySound("Weapons/ProxFire")
	TNT1 A 0 A_SpawnItemEx("ZamasuMonsterCube",0,0,1,random(1,8),0,random(20,35),random(0,360),0,0)
	TNT1 A 0 A_Jump(70,"MoreMonsters")
	Goto Death
  MoreMonsters:
    PZ10 E 35
	TNT1 A 0 A_PlaySound("Weapons/ProxFire")
	TNT1 A 0 A_SpawnItemEx("ZamasuMonsterCube",0,0,1,random(1,8),0,random(20,35),random(0,360),0,0)
	PZ10 E 35
	TNT1 A 0 A_PlaySound("Weapons/ProxFire")
	TNT1 A 0 A_SpawnItemEx("ZamasuMonsterCube",0,0,1,random(1,8),0,random(20,35),random(0,360),0,0)
	Goto Death
  Jackpot:
    PZ10 E 1
	TNT1 A 0 A_Jump(32,"Barrels")
	TNT1 A 0 A_Jump(256,"Santa","Hackroid","Doomslayer","TheScrollOfHellfire","Yoooooo")
	Goto Death
  Barrels:
    PZ10 E 1
	TNT1 A 0 A_PlaySound("xmas/surprise",7)
	PZ10 EEEEEE 4 A_SpawnItemEX("ZamasuBarrelSpawner",0,0,1,random(8,16),0,random(16,20),random(0,360),0,64)
	Goto Death
  Santa:
    PZ10 E 1
	TNT1 A 0 A_SpawnItemEX("SantaSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Hackroid:
    PZ10 E 1
	TNT1 A 0 A_PlaySound("xmas/leet",7)
	TNT1 A 0 A_SpawnItemEx("PresentHackroidSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Doomslayer:
    PZ10 E 1
	TNT1 A 0 A_PlaySound("xmas/secret",7,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("PresentDoomslayerSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  TheScrollOfHellfire:
    PZ10 E 1
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ10 E 15
	TNT1 A 0 Radius_Quake(5, 350, 0, 140, 0)
	TNT1 A 0 A_PlaySoundEx("brain/spit",7,0,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-72,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-144,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-216,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-288,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,0,2)
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ10 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ10 E 15
	TNT1 A 0 A_PlaySound("HFCyb/laugh2",7)
	TNT1 AAAAA 0 A_SpawnItemEx("HellFlame",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("ScrollOfHellfire",0,0,1,random(1,8),0,random(8,15),random(0,360),0,192)
	TNT1 A 0 A_SpawnItemEx("HellfireArmor",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("HellfireUltraSphere",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Yoooooo:
    PZ10 E 1
    TNT1 A 0 A_PlaySound("xmas/yoooooo",7)
	PZ10 E 287
	TNT1 A 0 A_SpawnItemEx("PresentRuneSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  WTF:
    PZ10 E 1
	TNT1 A 0 A_Jump(256,"WormInfestation","Armageddon","MiniCardinal","MiniCaleb")
	Goto Death
  WormInfestation:
    PZ10 E 1
	TNT1 A 0 A_PlaySound("xmas/no",7)
	PZ10 EEEEEEEEEEEEEEEEEE 20 A_SpawnItemEx("VenomMaggotSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	PZ10 EEEEEEEEEEEEEEEEEE 10 A_SpawnItemEx("VenomMaggotSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	PZ10 EEEEEEEEEEEEEEEEEE 5 A_SpawnItemEx("VenomMaggotSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	Goto Death
  Armageddon:
    PZ10 E 1
	TNT1 A 0 A_PlaySound("xmas/armageddon",7,1,0,ATTN_NONE)
	PZ10 E 90
	TNT1 A 0 Radius_Quake(2, 90, 0, 140, 0)
	PZ10 E 90
	TNT1 A 0 Radius_Quake(9, 90, 0, 140, 0)
	PZ10 E 90
	TNT1 A 0 Radius_Quake(8, 90, 0, 140, 0)
	PZ10 E 90
	TNT1 A 0 Radius_Quake(9, 90, 0, 140, 0)
	PZ10 E 90
	TNT1 A 0 Radius_Quake(6, 90, 0, 140, 0)
	PZ10 E 90
	TNT1 A 0 Radius_Quake(9, 90, 0, 140, 0)
	PZ10 E 90
	TNT1 A 0 Radius_Quake(8, 90, 0, 140, 0)
	PZ10 E 90
	TNT1 A 0 Radius_Quake(9, 90, 0, 140, 0)
	PZ10 E 90
	TNT1 A 0 A_SpawnItemEX("XmasBoom",0,0,0,0,0,0,0)
	PZ10 E 35 A_StopSound(7)
	Goto Death
  MiniCardinal:
    PZ10 E 1
	TNT1 A 0 A_SpawnItemEX("MiniCardinalSpawner",0,0,0,0,0,0,0)
	Goto Death
  MiniCaleb:
    PZ10 E 1
	PZ10 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 3 A_SpawnItemEX("CalebSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	Goto Death
  Death: 
    PZ10 E 210
	PZ10 EEEEEEEEEEEEEEEEEEEEEE 2 A_FadeOut(0.05)
    Stop
  }
}

ACTOR ZamasuPresentPowerupSpawner : RandomSpawner
{
+DROPPED
DropItem "VengefulNemesisArmor", 256, 30
DropItem "TerrorSoulSphere", 256, 30
DropItem "NemesisPowerSphere", 256, 27
DropItem "NemesisSphere", 256, 25
DropItem "ZamasuArmor", 256, 25
DropItem "UpgradedNemesisArmor", 256, 22
DropItem "NemesisPowerShard", 256, 19
DropItem "NemesisArmorSphere", 256, 17
DropItem "ZamasuStrongSphere", 256, 14
DropItem "WingsOfAscension", 256, 12
DropItem "NemesisOmegaSphere", 256, 7
DropItem "ZamasuRune", 256, 5
DropItem "ZamasuAgilityRune", 256, 1
DropItem "ZamasuWeakRune", 256, 1
DropItem "ZamasuVitalityRune", 256, 1
}

ACTOR ZamasuPresentWeaponSpawner : RandomSpawner
{
+DROPPED
DropItem "Nemesis Assault Shotgun", 256, 30
DropItem "Nemesis Sawed-Off Shotgun", 256, 27
DropItem "Nemesis Plasmatic Cannon", 256, 25
DropItem "Nemesis BFG", 256, 10
//DropItem "Unmaker", 256, 7
//DropItem "HackroidRifle", 256, 5
//DropItem "HackroidASG", 256, 5
//DropItem "SubliminationSword", 256, 3
DropItem "ZEN", 256, 2
//DropItem "Nemesis", 256, 1
DropItem "Zamasu Plasmatic Cannon", 256, 1
}

ACTOR ZamasuPresentAmmoSpawner : RandomSpawner
{
+DROPPED
Dropitem "NexusNemesisShell", 256, 15
Dropitem "ZamasuDemonAmmo", 256, 15
Dropitem "NexusNemesisShellBox", 256, 5
Dropitem "ZamasuDemonAmmoBox", 256, 5
}

Actor ZamasuMonsterCube
{
Radius 20
Height 32
Scale 1
-SOLID
States
 {
  Spawn:
	BOSB A 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleWhite",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSB A 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleWhite",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSB B 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleWhite",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSB B 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleWhite",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSB C 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleWhite",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSB C 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleWhite",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSB D 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleWhite",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSB D 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleWhite",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	Loop
  Done:
    BOSF "Z" 0
	BOSF "Z" 0 A_CustomMissile ("TeleportFog", 0, 0, 0, 0, 0)
	BOSF "Z" 1 A_SpawnItemEx ("ZamasuPresentMonsterSpawner", 0, 0, 8, 0, 0, 0, 0, 1)
	Stop
  }
}

ACTOR ZamasuPresentMonsterSpawner : RandomSpawner
{
+DROPPED
DropItem "ZamasuZombie", 256, 80
DropItem "ZamasuAssaultCaptain3", 256, 77
DropItem "ZamasuCommando", 256, 73
DropItem "ZamasuStealthTrooper", 256, 72
DropItem "ZamasuImp", 256, 70
//DropItem "NemesisSuicideBomber3", 256, 65
//DropItem "NemesisFiend3", 256, 58
DropItem "ZamasuSoul", 256, 50
//DropItem "NemesisSuperShotgunZombie3", 256, 48
//DropItem "NemesisDefiler3", 256, 47
//DropItem "NemesisChainsawZombie3", 256, 45
//DropItem "NemesisTormentor3", 256, 43
//DropItem "NemesisBabySentient3", 256, 40
DropItem "ZamasuBehemoth", 256, 38
DropItem "ZamasuRevenant", 256, 35
DropItem "ZamasuHellKnight", 256, 25
//DropItem "NemesisCyberNoble3", 256, 20
//DropItem "NemesisExile3", 256, 15
DropItem "ZamasuSentient", 256, 10
DropItem "ZamasuCyberdemon", 256, 5
//DropItem "ZamasuHellsmith", 256, 2 //I'll fix the Zamasu Hellsmith
DropItem "ZamasuGeneralRoasterock", 256, 1 //Heheh
DropItem "ZamasuEpicGeneralRoasterock", 256, 1 //Heheh
DropItem "ZamasuEpicZombie", 256, 1 //Heheh
}

ACTOR ZamasuBarrelSpawner : RandomSpawner
{
+DROPPED
DropItem "ZamasuBarrelMan", 256, 1
//DropItem "ZamasuChair", 256, 1
}

ACTOR CursedPresent : CustomInventory
{
Alpha 1.0
Scale 0.18
Renderstyle Normal
Inventory.Amount 1
Inventory.MaxAmount 1
Inventory.PickupSound "xmas/get"
Inventory.PickupMessage "Cursed Present!"
+INVENTORY.INVBAR
+INVENTORY.HUBPOWER
+INVENTORY.PERSISTENTPOWER
+FLOATBOB
+COUNTITEM
+FLOORCLIP
+NOTIMEFREEZE
+DONTGIB
States
{
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("NexusNoFloat") == 0,2)
	TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
	TNT1 A 0 A_PlaySound("xmas/soundloop",7,1.0,True)
	TNT1 A 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20)) //random(-12,12)
	PR11 AB 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20))
	PR11 CD 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20)) 
	PR11 EF 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20))
	PR11 GH 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20))
	PR11 IJKL 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	Goto Spawn+2
  Pickup:
	TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("CursedPresentItem",2,"Nope")
	TNT1 A 0 A_StopSound(7)
	TNT1 A 1 A_GiveInventory("CursedPresentItem")
	Stop
  Nope:
	TNT1 A 1
	Fail
	 }
}

ACTOR CursedPresentItem : CustomInventory
{
Inventory.Amount 1
Inventory.MaxAmount 2
Inventory.InterHubAmount 2
Tag "Cursed Present"
Inventory.Icon "PR11M0"
+INVENTORY.UNDROPPABLE
+INVENTORY.BIGPOWERUP
+INVENTORY.INVBAR
+FLOATBOB
+COUNTITEM
+FLOORCLIP
+NOTIMEFREEZE
States
	{
	Use:
	  TNT1 A 1 A_SpawnItemEx("CursedPresentActive",0,0,16,8,0,4,0)
	  Stop
	}
}

Actor CursedPresentActive : ExplosiveBarrel
{
  Health 0x7fffffff
  Radius 16
  Height 38
  Mass 0x7fffffff
  Scale 0.23
  Renderstyle Normal
  -SOLID
  -SHOOTABLE
  +NEVERRESPAWN
  +DONTGIB
  +NOICEDEATH
  +NOBLOOD
  +ISMONSTER
  Tag "Xmas Present"
  States
  {
  Spawn:
	TNT1 A 0 
    PZ11 AAAAA 8
	TNT1 A 0 A_PlaySound("xmas/open",7)
	PZ11 BBCCDDEE 3
	PZ11 E 35
	TNT1 A 0 A_Jump(26,"WTF","Jackpot")
	TNT1 A 0 A_Jump(168,"Powerups","Powerups","Weapons","Monsters")
    Goto Bonus
  Bonus:
    PRZ1 E 1
	TNT1 A 0 A_Jump(92,"Ammos")
	TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("NormalPresentBonusSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,64)
	Goto Death
  Ammos:
    PZ11 E 1
    TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 AAAAAAAAAAAAAAA 0 A_SpawnItemEx("CursedPresentAmmoSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,64)
	Goto Death
  Powerups:
    PZ11 E 1
	TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 A 0 A_SpawnItemEx("NemesisPresentPowerupSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Weapons:
    PZ11 E 1
	TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 A 0 A_SpawnItemEx("CursedPresentWeaponSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Monsters:
    PZ11 E 1
	TNT1 A 0 A_PlaySound("worlds/quake",7)
	PZ11 E 80 A_Quake(7,50,0,1400)
	TNT1 A 0 A_PlaySound("Weapons/ProxFire")
	TNT1 A 0 A_SpawnItemEx("CursedMonsterCube",0,0,1,random(1,8),0,random(20,35),random(0,360),0,0)
	TNT1 A 0 A_Jump(70,"MoreMonsters")
	Goto Death
  MoreMonsters:
    PZ11 E 35
	TNT1 A 0 A_PlaySound("Weapons/ProxFire")
	TNT1 A 0 A_SpawnItemEx("CursedMonsterCube",0,0,1,random(1,8),0,random(20,35),random(0,360),0,0)
	PZ11 E 35
	TNT1 A 0 A_PlaySound("Weapons/ProxFire")
	TNT1 A 0 A_SpawnItemEx("CursedMonsterCube",0,0,1,random(1,8),0,random(20,35),random(0,360),0,0)
	Goto Death
  Jackpot:
    PZ11 E 1
	TNT1 A 0 A_Jump(32,"Barrels")
	TNT1 A 0 A_Jump(256,"Santa","Hackroid","Doomslayer","TheScrollOfHellfire","Yoooooo")
	Goto Death
  Barrels:
    PZ11 E 1
	TNT1 A 0 A_PlaySound("xmas/surprise",7)
	PZ11 EEEEEE 4 A_SpawnItemEX("DangerousBarrelSpawner",0,0,1,random(8,16),0,random(16,20),random(0,360),0,64)
	Goto Death
  Santa:
    PZ11 E 1
	TNT1 A 0 A_SpawnItemEX("SantaSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Hackroid:
    PZ11 E 1
	TNT1 A 0 A_PlaySound("xmas/leet",7)
	TNT1 A 0 A_SpawnItemEx("PresentHackroidSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Doomslayer:
    PZ11 E 1
	TNT1 A 0 A_PlaySound("xmas/secret",7,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("PresentDoomslayerSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  TheScrollOfHellfire:
    PZ11 E 1
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ11 E 15
	TNT1 A 0 Radius_Quake(5, 350, 0, 140, 0)
	TNT1 A 0 A_PlaySoundEx("brain/spit",7,0,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-72,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-144,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-216,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-288,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,0,2)
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ11 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ11 E 15
	TNT1 A 0 A_PlaySound("HFCyb/laugh2",7)
	TNT1 AAAAA 0 A_SpawnItemEx("HellFlame",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("ScrollOfHellfire",0,0,1,random(1,8),0,random(8,15),random(0,360),0,192)
	TNT1 A 0 A_SpawnItemEx("HellfireArmor",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("HellfireUltraSphere",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Yoooooo:
    PZ11 E 1
    TNT1 A 0 A_PlaySound("xmas/yoooooo",7)
	PZ11 E 287
	TNT1 A 0 A_SpawnItemEx("PresentRuneSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  WTF:
    PZ11 E 1
	TNT1 A 0 A_Jump(256,"WormInfestation","Armageddon","MiniCardinal","MiniCaleb")
	Goto Death
  WormInfestation:
    PZ11 E 1
	TNT1 A 0 A_PlaySound("xmas/no",7)
	PZ11 EEEEEEEEEEEEEEEEEE 20 A_SpawnItemEx("VenomMaggotSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	PZ11 EEEEEEEEEEEEEEEEEE 10 A_SpawnItemEx("VenomMaggotSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	PZ11 EEEEEEEEEEEEEEEEEE 5 A_SpawnItemEx("VenomMaggotSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	Goto Death
  Armageddon:
    PRZ7 E 1
	TNT1 A 0 A_PlaySound("xmas/armageddon",7,1,0,ATTN_NONE)
	PZ11 E 90
	TNT1 A 0 Radius_Quake(2, 90, 0, 140, 0)
	PZ11 E 90
	TNT1 A 0 Radius_Quake(3, 90, 0, 140, 0)
	PZ11 E 90
	TNT1 A 0 Radius_Quake(2, 90, 0, 140, 0)
	PZ11 E 90
	TNT1 A 0 Radius_Quake(5, 90, 0, 140, 0)
	PZ11 E 90
	TNT1 A 0 Radius_Quake(2, 90, 0, 140, 0)
	PZ11 E 90
	TNT1 A 0 Radius_Quake(3, 90, 0, 140, 0)
	PZ11 E 90
	TNT1 A 0 Radius_Quake(2, 90, 0, 140, 0)
	PZ11 E 90
	TNT1 A 0 Radius_Quake(9, 90, 0, 140, 0)
	PZ11 E 90
	TNT1 A 0 A_SpawnItemEX("XmasBoom",0,0,0,0,0,0,0)
	PZ11 E 35 A_StopSound(7)
	Goto Death
  MiniCardinal:
    PZ11 E 1
	TNT1 A 0 A_SpawnItemEX("MiniCardinalSpawner",0,0,0,0,0,0,0)
	Goto Death
  MiniCaleb:
    PZ11 E 1
	PZ11 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 3 A_SpawnItemEX("CalebSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	Goto Death
  Death: 
    PZ11 E 210
	PZ11 EEEEEEEEEEEEEEEEEEEEEE 2 A_FadeOut(0.05)
    Stop
  }
}

ACTOR CursedPresentWeaponSpawner : RandomSpawner
{
+DROPPED
//DropItem "Nemesis Assault Shotgun", 256, 30
//DropItem "Nemesis Sawed-Off Shotgun", 256, 27
//DropItem "Nemesis Plasmatic Cannon", 256, 25
//DropItem "Nemesis BFG", 256, 10
//DropItem "Unmaker", 256, 7
//DropItem "HackroidRifle", 256, 5
//DropItem "HackroidASG", 256, 5
//DropItem "SubliminationSword", 256, 3
//DropItem "ZEN", 256, 2
//DropItem "Nemesis", 256, 1
DropItem "CursedRifle", 256, 1
}

ACTOR CursedPresentAmmoSpawner : RandomSpawner
{
+DROPPED
//Dropitem "NexusNemesisShell", 256, 15
Dropitem "CRDemonAmmo", 256, 15
//Dropitem "NexusNemesisShellBox", 256, 5
Dropitem "CRDemonAmmobOX", 256, 5
}

Actor CursedMonsterCube
{
Radius 20
Height 32
Scale 1
-SOLID
States
 {
  Spawn:
	BOSP A 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSP A 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSP B 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSP B 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSP C 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSP C 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSP D 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSP D 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	Loop
  Done:
    BOSF "Z" 0
	BOSF "Z" 0 A_CustomMissile ("TeleportFog", 0, 0, 0, 0, 0)
	BOSF "Z" 1 A_SpawnItemEx ("CursedPresentMonsterSpawner", 0, 0, 8, 0, 0, 0, 0, 1)
	Stop
  }
}

ACTOR CursedPresentMonsterSpawner : RandomSpawner
{
+DROPPED
DropItem "CursedZombie", 256, 80
//DropItem "NemesisAssaultCaptain3", 256, 77
//DropItem "NemesisCommando3", 256, 73
//DropItem "NemesisStealthTrooper3", 256, 72
DropItem "CursedImp", 256, 70
//DropItem "NemesisSuicideBomber3", 256, 65
//DropItem "NemesisFiend3", 256, 58
//DropItem "NemesisSoul", 256, 50
//DropItem "NemesisSuperShotgunZombie3", 256, 48
//DropItem "NemesisDefiler3", 256, 47
//DropItem "NemesisChainsawZombie3", 256, 45
//DropItem "NemesisTormentor3", 256, 43
//DropItem "NemesisBabySentient3", 256, 40
//DropItem "NemesisBehemoth3", 256, 38
DropItem "CursedRevenant", 256, 35
DropItem "CursedHellKnight", 256, 25
DropItem "CursedCyberNoble", 256, 20
//DropItem "NemesisExile3", 256, 15
//DropItem "NemesisSentient", 256, 10
//DropItem "NemesisCyberdemon", 256, 5
//DropItem "NemHellsmith", 256, 2
DropItem "CursedTerminator", 256, 1 //Sure why not >:)
}

//Hellfire
ACTOR HellfirePresent : CustomInventory
{
Alpha 1.0
Scale 0.18
Renderstyle Normal
Inventory.Amount 1
Inventory.MaxAmount 1
Inventory.PickupSound "xmas/get"
Inventory.PickupMessage "Hellfire Present!"
+INVENTORY.INVBAR
+INVENTORY.HUBPOWER
+INVENTORY.PERSISTENTPOWER
+FLOATBOB
+COUNTITEM
+FLOORCLIP
+NOTIMEFREEZE
+DONTGIB
States
{
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("NexusNoFloat") == 0,2)
	TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
	TNT1 A 0 A_PlaySound("xmas/soundloop",7,1.0,True)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20)) //random(-12,12)
	PR12 AB 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20))
	PR12 CD 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20)) 
	PR12 EF 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20))
	PR12 GH 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20))
	PR12 IJKL 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	Goto Spawn+2
  Pickup:
	TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("HellfirePresentItem",2,"Nope")
	TNT1 A 0 A_StopSound(7)
	TNT1 A 1 A_GiveInventory("HellfirePresentItem")
	Stop
  Nope:
	TNT1 A 1
	Fail
	 }
}

ACTOR HellfirePresentItem : CustomInventory
{
Inventory.Amount 1
Inventory.MaxAmount 2
Inventory.InterHubAmount 2
Tag "Hellfire Present"
Inventory.Icon "PRX7M0"
+INVENTORY.UNDROPPABLE
+INVENTORY.BIGPOWERUP
+INVENTORY.INVBAR
+FLOATBOB
+COUNTITEM
+FLOORCLIP
+NOTIMEFREEZE
States
	{
	Use:
	  TNT1 A 1 A_SpawnItemEx("HellfirePresentActive",0,0,16,8,0,4,0)
	  Stop
	}
}

Actor HellfirePresentActive : ExplosiveBarrel
{
  Health 0x7fffffff
  Radius 16
  Height 38
  Mass 0x7fffffff
  Scale 0.23
  Renderstyle Normal
  -SOLID
  -SHOOTABLE
  +NEVERRESPAWN
  +DONTGIB
  +NOICEDEATH
  +NOBLOOD
  +ISMONSTER
  Tag "Xmas Present"
  States
  {
  Spawn:
	TNT1 A 0 
    PZ12 AAAAA 8
	TNT1 A 0 A_PlaySound("xmas/open",7)
	PZ12 BBCCDDEE 3
	PZ12 E 35
	TNT1 A 0 A_Jump(26,"WTF","Jackpot")
	TNT1 A 0 A_Jump(168,"Powerups","Powerups","Weapons","Monsters")
    Goto Bonus
  Bonus:
    PZ12 E 1
	TNT1 A 0 A_Jump(92,"Ammos")
	TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("NormalPresentBonusSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,64)
	Goto Death
  Ammos:
    PZ12 E 1
    TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 AAAAAAAAAAAAAAA 0 A_SpawnItemEx("NemesisPresentAmmoSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,64)
	Goto Death
  Powerups:
    PZ12 E 1
	TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 A 0 A_SpawnItemEx("NemesisPresentPowerupSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Weapons:
    PZ12 E 1
	TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 A 0 A_SpawnItemEx("HellfirePresentWeaponSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Monsters:
    PZ12 E 1
	TNT1 A 0 A_PlaySound("worlds/quake",7)
	PZ12 E 80 A_Quake(7,50,0,1400)
	TNT1 A 0 A_PlaySound("Weapons/ProxFire")
	TNT1 A 0 A_SpawnItemEx("HellfireMonsterCube",0,0,1,random(1,8),0,random(20,35),random(0,360),0,0)
	TNT1 A 0 A_Jump(70,"MoreMonsters")
	Goto Death
  MoreMonsters:
    PZ12 E 35
	TNT1 A 0 A_PlaySound("Weapons/ProxFire")
	TNT1 A 0 A_SpawnItemEx("HellfireMonsterCube",0,0,1,random(1,8),0,random(20,35),random(0,360),0,0)
	PZ12 E 35
	TNT1 A 0 A_PlaySound("Weapons/ProxFire")
	TNT1 A 0 A_SpawnItemEx("HellfireMonsterCube",0,0,1,random(1,8),0,random(20,35),random(0,360),0,0)
	Goto Death
  Jackpot:
    PZ12 E 1
	TNT1 A 0 A_Jump(32,"Barrels")
	TNT1 A 0 A_Jump(256,"Santa","Hackroid","Doomslayer","TheScrollOfHellfire","Yoooooo")
	Goto Death
  Barrels:
    PZ12 E 1
	TNT1 A 0 A_PlaySound("xmas/surprise",7)
	PZ12 EEEEEE 4 A_SpawnItemEX("DangerousBarrelSpawner",0,0,1,random(8,16),0,random(16,20),random(0,360),0,64)
	Goto Death
  Santa:
    PZ12 E 1
	TNT1 A 0 A_SpawnItemEX("SantaSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Hackroid:
    PZ12 E 1
	TNT1 A 0 A_PlaySound("xmas/leet",7)
	TNT1 A 0 A_SpawnItemEx("PresentHackroidSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Doomslayer:
    PZ12 E 1
	TNT1 A 0 A_PlaySound("xmas/secret",7,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("PresentDoomslayerSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  TheScrollOfHellfire:
    PZ12 E 1
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ12 E 15
	TNT1 A 0 Radius_Quake(5, 350, 0, 140, 0)
	TNT1 A 0 A_PlaySoundEx("brain/spit",7,0,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-72,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-144,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-216,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-288,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,0,2)
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ12 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ12 E 15
	TNT1 A 0 A_PlaySound("HFCyb/laugh2",7)
	TNT1 AAAAA 0 A_SpawnItemEx("HellFlame",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("ScrollOfHellfire",0,0,1,random(1,8),0,random(8,15),random(0,360),0,192)
	TNT1 A 0 A_SpawnItemEx("HellfireArmor",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("HellfireUltraSphere",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Yoooooo:
    PZ12 E 1
    TNT1 A 0 A_PlaySound("xmas/yoooooo",7)
	PZ12 E 287
	TNT1 A 0 A_SpawnItemEx("PresentRuneSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  WTF:
    PZ12 E 1
	TNT1 A 0 A_Jump(256,"WormInfestation","Armageddon","MiniCardinal","MiniCaleb")
	Goto Death
  WormInfestation:
    PZ12 E 1
	TNT1 A 0 A_PlaySound("xmas/no",7)
	PZ12 EEEEEEEEEEEEEEEEEE 20 A_SpawnItemEx("VenomMaggotSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	PZ12 EEEEEEEEEEEEEEEEEE 10 A_SpawnItemEx("VenomMaggotSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	PZ12 EEEEEEEEEEEEEEEEEE 5 A_SpawnItemEx("VenomMaggotSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	Goto Death
  Armageddon:
    PZ12 E 1
	TNT1 A 0 A_PlaySound("xmas/armageddon",7,1,0,ATTN_NONE)
	PZ12 E 90
	TNT1 A 0 Radius_Quake(2, 90, 0, 140, 0)
	PZ12 E 90
	TNT1 A 0 Radius_Quake(3, 90, 0, 140, 0)
	PZ12 E 90
	TNT1 A 0 Radius_Quake(2, 90, 0, 140, 0)
	PZ12 E 90
	TNT1 A 0 Radius_Quake(5, 90, 0, 140, 0)
	PZ12 E 90
	TNT1 A 0 Radius_Quake(2, 90, 0, 140, 0)
	PZ12 E 90
	TNT1 A 0 Radius_Quake(3, 90, 0, 140, 0)
	PZ12 E 90
	TNT1 A 0 Radius_Quake(2, 90, 0, 140, 0)
	PZ12 E 90
	TNT1 A 0 Radius_Quake(9, 90, 0, 140, 0)
	PZ12 E 90
	TNT1 A 0 A_SpawnItemEX("XmasBoom",0,0,0,0,0,0,0)
	PZ12 E 35 A_StopSound(7)
	Goto Death
  MiniCardinal:
    PZ12 E 1
	TNT1 A 0 A_SpawnItemEX("MiniCardinalSpawner",0,0,0,0,0,0,0)
	Goto Death
  MiniCaleb:
    PZ12 E 1
	PZ12 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 3 A_SpawnItemEX("CalebSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	Goto Death
  Death: 
    PZ12 E 210
	PZ12 EEEEEEEEEEEEEEEEEEEEEE 2 A_FadeOut(0.05)
    Stop
  }
}

ACTOR HellfirePresentWeaponSpawner : RandomSpawner
{
+DROPPED
DropItem "HellstormBFG", 256, 1
DropItem "HellStormLauncher", 256, 1
DropItem "BehemothCannon", 256, 1
DropItem "PyroCannon", 256, 1
DropItem "Stingray", 256, 1
DropItem "Demon Tech Devastator" 256 1
DropItem "Demon Tech Shotgun" 256 1
DropItem "ArmageddonCannon" 256 1
}

Actor HellfireMonsterCube
{
Radius 20
Height 32
Scale 1
-SOLID
States
 {
  Spawn:
	BOSV A 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSV A 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSV B 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSV B 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSV C 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSV C 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSV D 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSV D 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	Loop
  Done:
    BOSF "Z" 0
	BOSF "Z" 0 A_CustomMissile ("TeleportFog", 0, 0, 0, 0, 0)
	BOSF "Z" 1 A_SpawnItemEx ("HellfirePresentMonsterSpawner", 0, 0, 8, 0, 0, 0, 0, 1)
	Stop
  }
}

ACTOR HellfirePresentMonsterSpawner : RandomSpawner
{
+DROPPED
//DropItem "NemesisZombie3", 256, 80
//DropItem "NemesisAssaultCaptain3", 256, 77
//DropItem "NemesisCommando3", 256, 73
//DropItem "NemesisStealthTrooper3", 256, 72
//DropItem "NemesisImp3", 256, 70
//DropItem "NemesisSuicideBomber3", 256, 65
//DropItem "NemesisFiend3", 256, 58
//DropItem "NemesisSoul", 256, 50
//DropItem "NemesisSuperShotgunZombie3", 256, 48
//DropItem "NemesisDefiler3", 256, 47
//DropItem "NemesisChainsawZombie3", 256, 45
//DropItem "NemesisTormentor3", 256, 43
//DropItem "NemesisBabySentient3", 256, 40
//DropItem "NemesisBehemoth3", 256, 38
DropItem "HellfireFamine", 256, 35
//DropItem "NemesisHellKnight3", 256, 25
//DropItem "NemesisCyberNoble3", 256, 20
//DropItem "NemesisExile3", 256, 15
DropItem "HellfireSentient", 256, 10
DropItem "HellfireCyberdemon", 256, 5
DropItem "Hellsmith", 256, 2
DropItem "HellfireTerminator", 256, 1
DropItem "HellfireExos", 256, 1
DropItem "HellfireKrieger", 256, 1
}

ACTOR HackroidPresent : CustomInventory
{
Alpha 1.0
Scale 0.18
Renderstyle Normal
Inventory.Amount 1
Inventory.MaxAmount 1
Inventory.PickupSound "xmas/get"
Inventory.PickupMessage "Hackroid Present!"
+INVENTORY.INVBAR
+INVENTORY.HUBPOWER
+INVENTORY.PERSISTENTPOWER
+FLOATBOB
+COUNTITEM
+FLOORCLIP
+NOTIMEFREEZE
+DONTGIB
States
{
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("NexusNoFloat") == 0,2)
	TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
	TNT1 A 0 A_PlaySound("xmas/soundloop",7,1.0,True)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20)) //random(-12,12)
	PR13 AB 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20))
	PR13 CD 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20)) 
	PR13 EF 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20))
	PR13 GH 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	TNT1 A 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(0,24),random(-2,2),random(-2,2),random(0,2),random(-20,20))
	PR13 IJKL 4 Bright A_SpawnItemEx("BlackGreenSpark",random(-12,12),random(-12,12),random(2,16),frandom(-0.4,0.4),frandom(-0.4,0.4),frandom(0,2),0,0,64)
	Goto Spawn+2
  Pickup:
	TNT1 A 0
	TNT1 A 0 A_JumpIfInventory("HackroidPresentItem",2,"Nope")
	TNT1 A 0 A_StopSound(7)
	TNT1 A 1 A_GiveInventory("HackroidPresentItem")
	Stop
  Nope:
	TNT1 A 1
	Fail
	 }
}

ACTOR HackroidPresentItem : CustomInventory
{
Inventory.Amount 1
Inventory.MaxAmount 2
Inventory.InterHubAmount 2
Tag "Hackroid Present"
Inventory.Icon "PR13M0"
+INVENTORY.UNDROPPABLE
+INVENTORY.BIGPOWERUP
+INVENTORY.INVBAR
+FLOATBOB
+COUNTITEM
+FLOORCLIP
+NOTIMEFREEZE
States
	{
	Use:
	  TNT1 A 1 A_SpawnItemEx("HackroidPresentActive",0,0,16,8,0,4,0)
	  Stop
	}
}

Actor HackroidPresentActive : ExplosiveBarrel
{
  Health 0x7fffffff
  Radius 16
  Height 38
  Mass 0x7fffffff
  Scale 0.23
  Renderstyle Normal
  -SOLID
  -SHOOTABLE
  +NEVERRESPAWN
  +DONTGIB
  +NOICEDEATH
  +NOBLOOD
  +ISMONSTER
  Tag "Xmas Present"
  States
  {
  Spawn:
	TNT1 A 0 
    PZ13 AAAAA 8
	TNT1 A 0 A_PlaySound("xmas/open",7)
	PZ13 BBCCDDEE 3
	PZ13 E 35
	TNT1 A 0 A_Jump(26,"WTF","Jackpot")
	TNT1 A 0 A_Jump(168,"Powerups","Powerups","Weapons","Monsters")
    Goto Bonus
  Bonus:
    PZ13 E 1
	TNT1 A 0 A_Jump(92,"Ammos")
	TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("NormalPresentBonusSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,64)
	Goto Death
  Ammos:
    PZ11 E 1
    TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 AAAAAAAAAAAAAAA 0 A_SpawnItemEx("HackroidPresentAmmoSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,64)
	Goto Death
  Powerups:
    PZ13 E 1
	TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 A 0 A_SpawnItemEx("NemesisPresentPowerupSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Weapons:
    PZ13 E 1
	TNT1 A 0 A_PlaySound("xmas/reward",7)
	TNT1 AAAAAAAA 0 A_SpawnItemEx("ArmorParticlePurple",random(-12,12),random(-12,12),random(0,24),random(-4,4),random(-4,4),random(2,6),random(-20,20))
	TNT1 A 0 A_SpawnItemEx("HackroidPresentWeaponSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Monsters:
    PZ13 E 1
	TNT1 A 0 A_PlaySound("worlds/quake",7)
	PZ13 E 80 A_Quake(7,50,0,1400)
	TNT1 A 0 A_PlaySound("Weapons/ProxFire")
	TNT1 A 0 A_SpawnItemEx("HackroidMonsterCube",0,0,1,random(1,8),0,random(20,35),random(0,360),0,0)
	TNT1 A 0 A_Jump(70,"MoreMonsters")
	Goto Death
  MoreMonsters:
    PZ13 E 35
	TNT1 A 0 A_PlaySound("Weapons/ProxFire")
	TNT1 A 0 A_SpawnItemEx("HackroidMonsterCube",0,0,1,random(1,8),0,random(20,35),random(0,360),0,0)
	PZ13 E 35
	TNT1 A 0 A_PlaySound("Weapons/ProxFire")
	TNT1 A 0 A_SpawnItemEx("HackroidMonsterCube",0,0,1,random(1,8),0,random(20,35),random(0,360),0,0)
	Goto Death
  Jackpot:
    PZ13 E 1
	TNT1 A 0 A_Jump(32,"Barrels")
	TNT1 A 0 A_Jump(256,"Santa","Hackroid","Doomslayer","TheScrollOfHellfire","Yoooooo")
	Goto Death
  Barrels:
    PZ13 E 1
	TNT1 A 0 A_PlaySound("xmas/surprise",7)
	PZ13 EEEEEE 4 A_SpawnItemEX("DangerousBarrelSpawner",0,0,1,random(8,16),0,random(16,20),random(0,360),0,64)
	Goto Death
  Santa:
    PZ13 E 1
	TNT1 A 0 A_SpawnItemEX("SantaSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Hackroid:
    PZ13 E 1
	TNT1 A 0 A_PlaySound("xmas/leet",7)
	TNT1 A 0 A_SpawnItemEx("PresentHackroidSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Doomslayer:
    PZ13 E 1
	TNT1 A 0 A_PlaySound("xmas/secret",7,1.0,0,ATTN_NONE)
	TNT1 A 0 A_SpawnItemEx("PresentDoomslayerSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  TheScrollOfHellfire:
    PZ13 E 1
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ13 E 15
	TNT1 A 0 Radius_Quake(5, 350, 0, 140, 0)
	TNT1 A 0 A_PlaySoundEx("brain/spit",7,0,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-72,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-144,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-216,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,-288,2)
    TNT1 A 0 A_CustomMissile("PentaLine3",0,0,0,2)
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFFireSpawned2",0,0,0,0,0,0,0,0,128)
	PZ13 E 15
	TNT1 A 0 A_SpawnItemEx("HFLavaMist",0,0,1,random(1,8),0,random(8,15),random(0,360),0,128)
	PZ13 E 15
	TNT1 A 0 A_PlaySound("HFCyb/laugh2",7)
	TNT1 AAAAA 0 A_SpawnItemEx("HellFlame",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("ScrollOfHellfire",0,0,1,random(1,8),0,random(8,15),random(0,360),0,192)
	TNT1 A 0 A_SpawnItemEx("HellfireArmor",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	TNT1 A 0 A_SpawnItemEx("HellfireUltraSphere",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  Yoooooo:
    PZ13 E 1
    TNT1 A 0 A_PlaySound("xmas/yoooooo",7)
	PZ13 E 287
	TNT1 A 0 A_SpawnItemEx("PresentRuneSpawner",0,0,1,random(1,8),0,random(8,15),random(0,360),0,0)
	Goto Death
  WTF:
    PZ13 E 1
	TNT1 A 0 A_Jump(256,"WormInfestation","Armageddon","MiniCardinal","MiniCaleb")
	Goto Death
  WormInfestation:
    PZ13 E 1
	TNT1 A 0 A_PlaySound("xmas/no",7)
	PZ13 EEEEEEEEEEEEEEEEEE 20 A_SpawnItemEx("VenomMaggotSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	PZ13 EEEEEEEEEEEEEEEEEE 10 A_SpawnItemEx("VenomMaggotSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	PZ13 EEEEEEEEEEEEEEEEEE 5 A_SpawnItemEx("VenomMaggotSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	Goto Death
  Armageddon:
    PRZ7 E 1
	TNT1 A 0 A_PlaySound("xmas/armageddon",7,1,0,ATTN_NONE)
	PZ13 E 90
	TNT1 A 0 Radius_Quake(2, 90, 0, 140, 0)
	PZ13 E 90
	TNT1 A 0 Radius_Quake(3, 90, 0, 140, 0)
	PZ13 E 90
	TNT1 A 0 Radius_Quake(2, 90, 0, 140, 0)
	PZ13 E 90
	TNT1 A 0 Radius_Quake(5, 90, 0, 140, 0)
	PZ13 E 90
	TNT1 A 0 Radius_Quake(2, 90, 0, 140, 0)
	PZ13 E 90
	TNT1 A 0 Radius_Quake(3, 90, 0, 140, 0)
	PZ13 E 90
	TNT1 A 0 Radius_Quake(2, 90, 0, 140, 0)
	PZ13 E 90
	TNT1 A 0 Radius_Quake(9, 90, 0, 140, 0)
	PZ13 E 90
	TNT1 A 0 A_SpawnItemEX("XmasBoom",0,0,0,0,0,0,0)
	PZ13 E 35 A_StopSound(7)
	Goto Death
  MiniCardinal:
    PZ13 E 1
	TNT1 A 0 A_SpawnItemEX("MiniCardinalSpawner",0,0,0,0,0,0,0)
	Goto Death
  MiniCaleb:
    PZ13 E 1
	PZ13 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 3 A_SpawnItemEX("CalebSpawner",0,0,1,random(8,10),0,random(8,15),random(0,360),0,0)
	Goto Death
  Death: 
    PZ13 E 210
	PZ13 EEEEEEEEEEEEEEEEEEEEEE 2 A_FadeOut(0.05)
    Stop
  }
}

ACTOR HackroidPresentWeaponSpawner : RandomSpawner
{
+DROPPED
DropItem "HackroidRifle", 256, 1
DropItem "HackroidASG", 256, 1
DropItem "HackroidBFG9500", 256, 1
}

ACTOR HackroidPresentAmmoSpawner : RandomSpawner
{
+DROPPED
Dropitem "HCKShell", 256, 15
Dropitem "HCKAmmo", 256, 15
Dropitem "HCKShellBox", 256, 5
Dropitem "HCKAmmoBox", 256, 5
DropItem "HackroidCell", 256, 1
DropItem "HackroidCellPack", 256, 1
}

Actor HackroidMonsterCube
{
Radius 20
Height 32
Scale 1
-SOLID
States
 {
  Spawn:
	BOSK A 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSK A 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSK B 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSK B 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSK C 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSK C 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSK D 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	BOSK D 1 Bright A_CheckFloor("Done")
	TNT1 AA 0 A_SpawnItemEx("ArmorParticleRed",random(-12,12),random(-12,12),random(-12,12),random(-2,2),random(-2,2),random(-2,2),random(-20,20))
	Loop
  Done:
    BOSF "Z" 0
	BOSF "Z" 0 A_CustomMissile ("TeleportFog", 0, 0, 0, 0, 0)
	BOSF "Z" 1 A_SpawnItemEx ("HackroidPresentMonsterSpawner", 0, 0, 8, 0, 0, 0, 0, 1)
	Stop
  }
}

ACTOR HackroidPresentMonsterSpawner : RandomSpawner
{
+DROPPED
DropItem "HackroidZombie", 256, 80
DropItem "HackroidAssaultCaptain", 256, 77
//DropItem "NemesisCommando3", 256, 73
//DropItem "NemesisStealthTrooper3", 256, 72
//DropItem "CursedImp", 256, 70
//DropItem "NemesisSuicideBomber3", 256, 65
//DropItem "NemesisFiend3", 256, 58
//DropItem "NemesisSoul", 256, 50
//DropItem "NemesisSuperShotgunZombie3", 256, 48
DropItem "HackroidCacodemon", 256, 47
//DropItem "NemesisChainsawZombie3", 256, 45
//DropItem "NemesisTormentor3", 256, 43
//DropItem "NemesisBabySentient3", 256, 40
//DropItem "NemesisBehemoth3", 256, 38
//DropItem "CursedRevenant", 256, 35
//DropItem "CursedHellKnight", 256, 25
//DropItem "CursedCyberNoble", 256, 20
//DropItem "NemesisExile3", 256, 15
//DropItem "NemesisSentient", 256, 10
//DropItem "NemesisCyberdemon", 256, 5
//DropItem "NemHellsmith", 256, 2
DropItem "HackroidTerminator", 256, 1
DropItem "HackroidDoomguy", 256, 1 //Cope Harder
}

ACTOR INFRandomMegaPresentSpawner : RandomMegaPresentSpawner Replaces RandomMegaPresentSpawner
{
+DROPPED
DropItem "DarkPresent", 256, 1
DropItem "RedGreenPresent", 256, 1
DropItem "RedWhitePresent", 256, 1
DropItem "WhiteRedPresent", 256, 1
DropItem "GreenRedPresent", 256, 1
DropItem "LegendaryPresent", 256, 1
DropItem "EnragedLegendaryPresent", 256, 1
DropItem "NemesisPresent", 256, 1
DropItem "PhasePresent", 256, 1
DropItem "ZamasuPresent", 256, 1
DropItem "CursedPresent", 256, 1
DropItem "HellfirePresent", 256, 1
DropItem "HackroidPresent", 256, 1
DropItem "MLGPresent", 256, 1
}

ACTOR INFEnragedLegendaryPresentMonsterSpawner : EnragedLegendaryPresentMonsterSpawner Replaces EnragedLegendaryPresentMonsterSpawner
{
+DROPPED
DropItem "EnragedLegendaryZombie3", 256, 80
DropItem "EnragedLegendaryAssaultCaptain3", 256, 77
DropItem "EnragedLegendaryLieutenant3", 256, 75
DropItem "EnragedLegendaryCommando3", 256, 73
DropItem "EnragedLegendaryStealthTrooper3", 256, 72
DropItem "EnragedLegendaryImp3", 256, 70
DropItem "EnragedLegendaryFiend3", 256, 65
DropItem "EnragedLegendarySuicideBomber3", 256, 60
DropItem "EnragedLegendarySoul", 256, 58
DropItem "EnragedLegendaryRedeemer3", 256, 50
DropItem "EnragedLegendaryNecromancer3", 256, 47
DropItem "EnragedLegendaryTormentor3", 256, 43
DropItem "EnragedLegendaryBabySentient3", 256, 40
DropItem "EnragedLegendaryBehemoth3", 256, 38
DropItem "EnragedLegendaryHellKnight3", 256, 35
DropItem "EnragedLegendaryCybruiser3", 256, 25
DropItem "EnragedLegendarySentient", 256, 10
DropItem "EnragedLegendaryCyberdemon", 256, 5
DropItem "EnragedLegendaryQuadShotgunZombie", 256, 1
DropItem "EnragedLegendaryColonel", 256, 1
DropItem "EnragedLegendaryDevastatorZombie", 256, 1
DropItem "EnragedLegendaryLeader", 256, 1
}

ACTOR INFNemesisPresentMonsterSpawner : NemesisPresentMonsterSpawner Replaces NemesisPresentMonsterSpawner
{
+DROPPED
DropItem "NemesisZombie3", 256, 80
DropItem "NemesisAssaultCaptain3", 256, 77
DropItem "NemesisCommando3", 256, 73
DropItem "NemesisStealthTrooper3", 256, 72
DropItem "NemesisImp3", 256, 70
DropItem "NemesisSuicideBomber3", 256, 65
DropItem "NemesisFiend3", 256, 58
DropItem "NemesisSoul", 256, 50
DropItem "NemesisSuperShotgunZombie3", 256, 48
DropItem "NemesisDefiler3", 256, 47
DropItem "NemesisChainsawZombie3", 256, 45
DropItem "NemesisTormentor3", 256, 43
DropItem "NemesisBabySentient3", 256, 40
DropItem "NemesisBehemoth3", 256, 38
DropItem "NemesisRevenant3", 256, 35
DropItem "NemesisHellKnight3", 256, 25
DropItem "NemesisCyberNoble3", 256, 20
DropItem "NemesisExile3", 256, 15
DropItem "NemesisSentient", 256, 10
DropItem "NemesisCyberdemon", 256, 5
DropItem "NemHellsmith", 256, 2
DropItem "NemesisQuadShotgunZombie", 256, 1
DropItem "NemesisColonel", 256, 1
DropItem "NemesisDevastatorZombie", 256, 1
DropItem "AlphaNemesisLeaderZombie", 256, 1
}

ACTOR INFDangerousBarrelSpawner : DangerousBarrelSpawner Replaces DangerousBarrelSpawner
{
+DROPPED
DropItem "DevastatorBarrel", 256, 14
DropItem "HellFireBarrel", 256, 12
DropItem "LegendaryBarrel", 256, 10
DropItem "LegendaryTechBarrel", 256, 10
DropItem "LegendaryBarrelFake", 256, 10
DropItem "EnragedLegendaryBarrel", 256, 7
DropItem "EnragedLegendaryBarrelFake", 256, 7
DropItem "UniversalChestSpawner", 256, 6
DropItem "NemesisBarrel", 256, 5
DropItem "NemesisTechBarrel", 256, 5
DropItem "BlackholeBarrel", 256, 4
DropItem "KaguyaHouraisan", 256, 3
DropItem "LegendaryChair", 256, 3
DropItem "NukeBarrel", 256, 2
DropItem "InstantNukeBarrel", 256, 2
DropItem "DivineChair", 256, 1
DropItem "MLGBarrelMan", 256, 1 //Lol
}

ACTOR INFMiniCardinalSpawner : MiniCardinalSpawner Replaces MiniCardinalSpawner
{
+DROPPED
DropItem "MiniLegendaryCardinal", 256, 1
DropItem "ZamasuMiniCardinal", 256, 1
}
