
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
// Small Explosion (25% smaller than the "Medium Explosion")
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////


actor Explosion_Spawner_S
{
  SeeSound "weapons/rocklx"
  +NOGRAVITY
  States
  {   
    Spawn:
    TNT1 A 0
    TNT1 A 0 bright A_SpawnItemEx("Explosion_RingSpawner_S", 0, 0, 0, 0, 0, 0, 0, 128, 0)

    Spawn2:
    TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("Ash", random(-16, 16), random(-16, 16), 
random(-16, 16), 0,0,0, 0, 128, 0)
	TNT1 A 0 A_SpawnItemEx("Scorch_S", 0, 0, 0, 0, 0, 0, 0, 0, 0)
	TNT1 AAAA 0 bright A_SpawnItemEx("Explosion_Part_S", random(-32, 32), random(-32, 32), 
random(-32, 32), 0,0,0, 0, 128, 0)
    TNT1 AAAA 0 bright A_SpawnItemEx("Explosion_PartSmoke_S", random(-16, 16), random(-16, 
16), random(-16, 16), random(-1, 1),random(-1, 1),random(-1, 1), 0, 128, 0)    
    TNT1 A 0 bright A_SpawnItemEx("Explosion_Radius_S", 0, 0, 0, 0, 0, 0, 0, 128, 0)    
    stop
  }
}



actor Explosion_Radius_S
{
  alpha 0.7
  scale 0.64
  renderstyle add
  +NOGRAVITY
  States
  {   
    Spawn:
    EXPL ABCDEF 1 bright A_FadeOut(0.1)
    stop
  }
}



actor Explosion_Part_S
{
  alpha 1
  scale 1.28
  renderstyle add
  +NOBLOCKMAP
  +NOTELEPORT
  +NOGRAVITY
  States
  {
	Spawn:
  		PART B 1 A_FadeOut(0.03)
  	Loop
  }
}

actor Explosion_PartSmoke_S
{
  alpha 1
  scale 1.92
  renderstyle add
  +NOBLOCKMAP
  +NOTELEPORT
  +NOGRAVITY
  States
  {
	Spawn:
  		PART N 1 A_FadeOut(0.01)
  	Loop
  }
}

actor Explosion_RingSpawner_S
{
  +NOGRAVITY
  States
  {
	Spawn:
		TNT1 A 1 A_SpawnItemEx ("Explosion_Ring1_S", 0, 0, 0, 0, 0, 0)
		TNT1 A 1 A_SpawnItemEx ("Explosion_Ring2_S", 0, 0, 0, 0, 0, 0)
		TNT1 A 1 A_SpawnItemEx ("Explosion_Ring3_S", 0, 0, 0, 0, 0, 0)
		TNT1 A 1 A_SpawnItemEx ("Explosion_Ring4_S", 0, 0, 0, 0, 0, 0)
		TNT1 A 1 A_SpawnItemEx ("Explosion_Ring5_S", 0, 0, 0, 0, 0, 0)
		TNT1 A 1 A_SpawnItemEx ("Explosion_Ring6_S", 0, 0, 0, 0, 0, 0)
		TNT1 A 1 A_SpawnItemEx ("Explosion_Ring7_S", 0, 0, 0, 0, 0, 0)
		TNT1 A 1 A_SpawnItemEx ("Explosion_Ring8_S", 0, 0, 0, 0, 0, 0)
		TNT1 A 1 A_SpawnItemEx ("Explosion_Ring9_S", 0, 0, 0, 0, 0, 0)
		TNT1 A 1 A_SpawnItemEx ("Explosion_Ring10_S", 0, 0, 0, 0, 0, 0)	 		
		stop
  }
}

actor Explosion_Ring1_S
{
  alpha 1
  Mass 5
  scale 0.128
  renderstyle add
  +NOBLOCKMAP
  +NOTELEPORT
  +NOGRAVITY
  States
  {
	Spawn:
  		PART Q 2
  	stop
  }
}

actor Explosion_Ring2_S
{
  alpha 0.9
  Mass 5
  scale 0.256
  renderstyle add
  +NOBLOCKMAP
  +NOTELEPORT
  +NOGRAVITY
  States
  {
	Spawn:
  		PART Q 2
  	stop
  }
}

actor Explosion_Ring3_S
{
  alpha 0.8
  Mass 5
  scale 0.384
  renderstyle add
  +NOBLOCKMAP
  +NOTELEPORT
  +NOGRAVITY
  States
  {
	Spawn:
  		PART Q 2
  	stop
  }
}

actor Explosion_Ring4_S
{
  alpha 0.7
  Mass 5
  scale 0.512
  renderstyle add
  +NOBLOCKMAP
  +NOTELEPORT
  +NOGRAVITY
  States
  {
	Spawn:
  		PART Q 2
  	stop
  }
}

actor Explosion_Ring5_S
{
  alpha 0.6
  Mass 5
  scale 0.64
  renderstyle add
  +NOBLOCKMAP
  +NOTELEPORT
  +NOGRAVITY
  States
  {
	Spawn:
  		PART Q 2
  	stop
  }
}

actor Explosion_Ring6_S
{
  alpha 0.5
  Mass 5
  scale 0.768
  renderstyle add
  +NOBLOCKMAP
  +NOTELEPORT
  +NOGRAVITY
  States
  {
	Spawn:
  		PART Q 2 
  	stop
  }
}

actor Explosion_Ring7_S
{
  alpha 0.4
  Mass 5
  scale 0.896
  renderstyle add
  +NOBLOCKMAP
  +NOTELEPORT
  +NOGRAVITY
  States
  {
	Spawn:
  		PART Q 2 
  	stop
  }
}

actor Explosion_Ring8_S
{
  alpha 0.3
  Mass 5
  scale 1.024
  renderstyle add
  +NOBLOCKMAP
  +NOTELEPORT
  +NOGRAVITY
  States
  {
	Spawn:
  		PART Q 2 
  	stop
  }
}

actor Explosion_Ring9_S
{
  alpha 0.2
  Mass 5
  scale 1.152
  renderstyle add
  +NOBLOCKMAP
  +NOTELEPORT
  +NOGRAVITY
  States
  {
	Spawn:
  		PART Q 2 
  	stop
  }
}

actor Explosion_Ring10_S
{
  alpha 0.1
  Mass 5
  scale 1.28
  renderstyle add
  +NOBLOCKMAP
  +NOTELEPORT
  +NOGRAVITY
  States
  {
	Spawn:
  		PART Q 2 
  	stop
  }
}

