actor drbelphegorofspam : belphegor
{
  scale 1.1
  tag "Belphegor"
  var int user_turn;
  states
  {
  spawn:
    BOS3 A 0 a_alertmonsters
    BOS3 FEEF 8 a_facetarget
	BOS3 A 0 a_setuservar(user_turn, 0)
  spawnloop:
	BOS3 G 0 a_jumpif(user_turn > 35, "spawnloop2")
	BOS3 G 1 a_custommissile("spamball", 20, 0, 0)
	BOS3 G 0 a_setangle(angle+10)
	BOS3 G 0 a_setuservar(user_turn, user_turn+1)
	loop
  spawnloop2:
    BOS3 G 0 a_setuservar(user_turn, 0)
    BOS3 G 0 a_jumpif(user_turn > 35, "spawnloop3")
	BOS3 G 1 a_custommissile("spamball", 40, 0, 0)
	BOS3 G 0 a_setangle(angle+10)
	BOS3 G 0 a_setuservar(user_turn, user_turn+1)
	goto spawnloop2+1
  spawnloop3:
    BOS3 G 8
	goto spawn
  }
}

actor drbelpball : belphegorball
{
  damage (100)
}