ACTOR Shadowsphere : Megasphere replaces ArtiInvisibility
{
  Inventory.PickupMessage "Shadowsphere!"
  Inventory.PickupSound "Shadowsphere/Pickup"
  Renderstyle Add
  +FLOATBOB
  States
  {
  Spawn:
    PINS AA 0 A_SpawnItemEx("ShadowsphereFade",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
    PINS AAAA 1 Bright A_SpawnItemEx("ShadowsphereParticle",frandom(10.0,-10.0),frandom(10.0,-10.0),35+frandom(10.0,-10.0),frandom(0.6,-0.6),frandom(0.6,-0.6),frandom(1.2,0.4),frandom(0.0,360.0),SXF_CLIENTSIDE,64)
	PINS B 0 A_SpawnItemEx("ShadowsphereFade",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
    PINS BBBB 1 Bright A_SpawnItemEx("ShadowsphereParticle",frandom(10.0,-10.0),frandom(10.0,-10.0),35+frandom(10.0,-10.0),frandom(0.6,-0.6),frandom(0.6,-0.6),frandom(1.2,0.4),frandom(0.0,360.0),SXF_CLIENTSIDE,64)
	PINS A 0 A_SpawnItemEx("ShadowsphereFade",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
    PINS CCCC 1 Bright A_SpawnItemEx("ShadowsphereParticle",frandom(10.0,-10.0),frandom(10.0,-10.0),35+frandom(10.0,-10.0),frandom(0.6,-0.6),frandom(0.6,-0.6),frandom(1.2,0.4),frandom(0.0,360.0),SXF_CLIENTSIDE,64)
	PINS A 0 A_SpawnItemEx("ShadowsphereFade",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
    PINS DDDD 1 Bright A_SpawnItemEx("ShadowsphereParticle",frandom(10.0,-10.0),frandom(10.0,-10.0),35+frandom(10.0,-10.0),frandom(0.6,-0.6),frandom(0.6,-0.6),frandom(1.2,0.4),frandom(0.0,360.0),SXF_CLIENTSIDE,64)
	PINS E 0 A_SpawnItemEx("ShadowsphereFade",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
    PINS EEEE 1 Bright A_SpawnItemEx("ShadowsphereParticle",frandom(10.0,-10.0),frandom(10.0,-10.0),35+frandom(10.0,-10.0),frandom(0.6,-0.6),frandom(0.6,-0.6),frandom(1.2,0.4),frandom(0.0,360.0),SXF_CLIENTSIDE,64)
	PINS F 0 A_SpawnItemEx("ShadowsphereFade",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
    PINS FFFF 1 Bright A_SpawnItemEx("ShadowsphereParticle",frandom(10.0,-10.0),frandom(10.0,-10.0),35+frandom(10.0,-10.0),frandom(0.6,-0.6),frandom(0.6,-0.6),frandom(1.2,0.4),frandom(0.0,360.0),SXF_CLIENTSIDE,64)
	PINS E 0 A_SpawnItemEx("ShadowsphereFade",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
    PINS EEEE 1 Bright A_SpawnItemEx("ShadowsphereParticle",frandom(10.0,-10.0),frandom(10.0,-10.0),35+frandom(10.0,-10.0),frandom(0.6,-0.6),frandom(0.6,-0.6),frandom(1.2,0.4),frandom(0.0,360.0),SXF_CLIENTSIDE,64)
	PINS D 0 A_SpawnItemEx("ShadowsphereFade",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
    PINS DDDD 1 Bright A_SpawnItemEx("ShadowsphereParticle",frandom(10.0,-10.0),frandom(10.0,-10.0),35+frandom(10.0,-10.0),frandom(0.6,-0.6),frandom(0.6,-0.6),frandom(1.2,0.4),frandom(0.0,360.0),SXF_CLIENTSIDE,64)
	PINS C 0 A_SpawnItemEx("ShadowsphereFade",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
    PINS CCCC 1 Bright A_SpawnItemEx("ShadowsphereParticle",frandom(10.0,-10.0),frandom(10.0,-10.0),35+frandom(10.0,-10.0),frandom(0.6,-0.6),frandom(0.6,-0.6),frandom(1.2,0.4),frandom(0.0,360.0),SXF_CLIENTSIDE,64)
	PINS B 0 A_SpawnItemEx("ShadowsphereFade",0,0,0,0,0,0,0,SXF_CLIENTSIDE,0)
    PINS BBBB 1 Bright A_SpawnItemEx("ShadowsphereParticle",frandom(10.0,-10.0),frandom(10.0,-10.0),35+frandom(10.0,-10.0),frandom(0.6,-0.6),frandom(0.6,-0.6),frandom(1.2,0.4),frandom(0.0,360.0),SXF_CLIENTSIDE,64)
	Loop
  Pickup:
    TNT1 A 0 A_GiveInventory("ShadowInvisibility1", 1)
    TNT1 A 0 A_GiveInventory("ShadowInvisibility2", 1)
    TNT1 A 0 A_GiveInventory("ShadowInvisibility3", 1)
    Stop
  }
}

ACTOR ShadowsphereFade
{
  +NOGRAVITY
  +NOINTERACTION
  +NOTONAUTOMAP
  Renderstyle Add
  States
  {
  Spawn:
	PINS C 1 A_FadeOut(0.12)
	PINS C 0 A_SetScale(ScaleX+0.02,ScaleX)
	Loop
  }
}

ACTOR PowerIAmInvisibleDerg : PowerShadow
{
  Inventory.Icon "CLOAK0"
  Powerup.Strength 90
}

ACTOR ShadowInvisibility1 : PowerupGiver
{
	Powerup.Duration -45
	Powerup.Type "IAmInvisibleDerg"
	Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ADDITIVETIME
}

ACTOR PowerIncredibleHowYouCan : PowerInvisibility
{
}

ACTOR ShadowInvisibility2 : PowerupGiver
{
	Powerup.Duration -45
	Powerup.Type "IncredibleHowYouCan"
	Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ADDITIVETIME
}

ACTOR PowerSeeRightThroughMe : PowerFrightener
{
}

ACTOR ShadowInvisibility3 : PowerupGiver
{
	Powerup.Duration -45
	Powerup.Type "SeeRightThroughMe"
	Inventory.MaxAmount 0
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ADDITIVETIME
}