Actor TureLegTimeFreezeSphere : CustomInventory 26351
{
  Inventory.PickupMessage "\c[l5]Ture Legegendary Time Freeze Sphere. Wisdom Of Slain. You acquired a Power of Time and our knowledge to the proper use."
  Inventory.PickupSound "legtime/pickup"
  Inventory.UseSound "legtime/use"
  Inventory.Icon "TLTFZ0"
  Inventory.MaxAmount 1
  +FLOATBOB
  +INVBAR
  +COUNTITEM
  +INVENTORY.BIGPOWERUP
  +NOTIMEFREEZE
  +DONTGIB
  States
  {	
  Spawn:
	TNT1 A 0 A_CustomMissile ("BlueSparkleSpawner", -20, 0, random(0,-360), 2, random(0,360))
	TLTF ABCDE 10 Bright A_CustomMissile ("TrueLegendarySphereFlameSpawner", -20, 0, random(0,-360), 2, random(0,360)) 
	TNT1 A 0 A_CustomMissile ("BlueSparkleSpawner", -20, 0, random(0,-360), 2, random(0,360))
	TNT1 A 0 Bright A_CustomMissile ("TrueLegendarySphereFlameSpawner", -20, 0, random(0,-360), 2, random(0,360))
	Loop
  Use:
	TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("SCR_IS_TIMEFREEZE_ALLOWED", 0, 0) == 1, "TooSoon")
	TNT1 A 0 A_PlaySound("truelegtime/use")
	TNT1 A 0 A_GiveInventory("TrueLegTimeFreezer")
	TNT1 A 0 A_SpawnItemEx("TrueTimeFreezeSoundEffect")
	TNT1 A 0 ACS_NamedExecute("SCR_TIMEFREEZE", 0, 11)
	Stop  	
TooSoon:
	TNT1 A 0 ACS_NamedExecute("SCR_TIMEFREEZE_TOOSOON", 0, 0)
	Fail
  }
}

Actor TrueLegTimeFreezer : PowerupGiver
{
Inventory.MaxAmount 0
+INVENTORY.AUTOACTIVATE
+INVENTORY.ALWAYSPICKUP
+NOTIMEFREEZE
Powerup.Duration -33
Powerup.Color BlueMap
Powerup.Type "PowerTimeFreezer"
}

Actor TrueTimeFreezeSoundEffect
{
+NOTIMEFREEZE
States
{ 	
Spawn:
	TNT1 A 0
	TNT1 A 45 A_PlaySound("timefreeze/effect1",CHAN_AUTO|CHAN_NOPAUSE,1.0,FALSE,ATTN_NONE)  
	TNT1 A 335 A_PlaySound("timefreeze/effect2",CHAN_BODY|CHAN_NOPAUSE,1.0,FALSE,ATTN_NONE) 
	TNT1 A 1 A_StopSound(CHAN_BODY)  
	TNT1 A 1 A_PlaySound("timefreeze/effect3",CHAN_AUTO|CHAN_NOPAUSE,1.0,FALSE,ATTN_NONE)  
	Stop
}
}