/*
CREDITS:
Captain Toenail for entirety of it!
ID for original pickup and the pickup sound
*/

actor MegaMap : CustomInventory replaces AllMap
{
  +COUNTITEM
  +INVENTORY.FANCYPICKUPSOUND
  +INVENTORY.ALWAYSPICKUP
  Inventory.MaxAmount 0
  Inventory.PickupSound "items/map"
  Inventory.PickupMessage "You got an advanced map with sensor!"
  states
  {
  Spawn:
    MMAP ABCBAD 3 Bright
    Loop
  Pickup:
    TNT1 A 1 A_GiveInventory ("AllMap")
    TNT1 A 0 A_GiveInventory ("DoomScanner")
    stop
  }
}

actor DoomScanner : PowerupGiver
{
  powerup.type "Scanner"
  powerup.duration 0x7FFFFFFF
  Inventory.PickupMessage "There is no cow level."
  +INVENTORY.AUTOACTIVATE
  states
  {
  Spawn:
    TNT1 A 1
    stop
  }
}
