
//===========================================================================
//
// Projectile
//
//===========================================================================
ACTOR Boneball_Ball
{
	Game Doom
	SpawnID 10
	Radius 6
	Height 8
	Speed 15
	Damage 2
	Projectile
	+RANDOMIZE
//	RenderStyle Add
//	Alpha 0.75
	SeeSound "welder/fire"
	DeathSound "sil/encio"
DamageType "BoneballProj"
	Scale 0.175
	States
	{
	Spawn:
		BNPR A 2 BRIGHT A_SpawnItemEx("Welder_ProjFX2", random2[BoltSpark]()*0.015625, random2[BoltSpark]()*0.015625, 0, 0,0,0,0,SXF_ABSOLUTEPOSITION, 50)
		Loop
	Death:
		"####" "#" 1 Thing_ChangeTid(0,1998)
		"####" "#" 1 BRIGHT

	TNT1 A 0 A_PlaySound("Projectile/impact")
		BLLT A 0 BRIGHT A_SpawnItem("Welderpuff")
		Stop

	Crash:
		TNT1 A 1 BRIGHT 
		Stop


	}
}


ACTOR Boneball_BallDeflect : Boneball_Ball
{
DamageType "DeflectedProjectile"
	SeeSound "Sil/Encio"//"Sword/Deflect"
States
	{
	Death:
	TNT1 A 0 A_PlaySound("Projectile/impact")
		BLLT A 0 BRIGHT A_SpawnItem("WelderPuff")
		Stop
	}
}


//===========================================================================
//
// boneball
//
//===========================================================================
ACTOR boneball //502//replaces 
{
	//$Category Doosk Monsters
	//$Sprite BNBLA0
	//$Title boneball
	//$Color 6
	Game Doom
	SpawnID 111
	Health 440
	GibHealth 150
	PainChance 0
	+QUICKTORETALIATE
+ALWAYSFAST
	+NOPAIN
	Speed 3
	Radius 31
	Height 56
	Mass 1000
	Monster
	ReactionTime 35
	+FLOAT +NOGRAVITY

	SeeSound "bonerball/sight"
	AttackSound "bonerball/fire"
	PainSound "bonerball/pain"
	DeathSound "bonerball/death"
	ActiveSound "bonerball/active"
	Obituary "$BONEBL_DTH"
	Gravity 0.6
	DamageFactor "Deflectedprojectile", 5.0

	Scale 0.3
	States
	{
	Spawn:
        BNBL A 0 A_StopSoundEx("soundslot5")
		BNBL A 10 A_Look
		Loop
	See:
        BNBL A 0 A_PlaySoundEx("bonerball/loop","soundslot5",1)
//        BNBL A 0 A_Chase
        BNBL AA 1 A_Chase
		Loop

	Missile:
TNT1 A 0 A_PlaySound("bonerball/fire")
		BNBL A 0 bright A_FaceTarget
		BNBL AAA 0 bright A_CustomMissile("Boneball_Ball",32,0,random(-20,20),CMF_OFFSETPITCH,random(-10,10))
		BNBL A 12 bright 
		Goto See


	Pain:
		BNBL A 0 A_Pain
		Goto See

	Death:
	XDeath:
        TNT1 A 0 A_StopSoundEx("soundslot5")
		TNT1 A 0 A_ScreamAndUnblock

//TNT1 A 0 A_PlaySound("monster/explodegore")
        TNT1 A 1 A_SpawnItemEx("Dusk_GenericMonsterGore",0,0,0,0,0,0,0,32)

		TNT1 AAAA 35

//		TNT1 A -1 A_BossDeath

		Stop


	}
}



ACTOR boneball_arachno //502//replaces 
{
	//$Category Doosk Monsters
	//$Sprite BNBLA0
	//$Title Boneball (arachno replacement)
	//$Color 6
	Game Doom
	SpawnID 111
	Health 440
	GibHealth 150
	PainChance 0
	+QUICKTORETALIATE
+ALWAYSFAST
	+NOPAIN
	+BOSSDEATH	//Arachnotron

	Speed 3
	Radius 31
	Height 56
	Mass 1000
	Monster
	ReactionTime 35
	+FLOAT +NOGRAVITY

	SeeSound "bonerball/sight"
	AttackSound "bonerball/fire"
	PainSound "bonerball/pain"
	DeathSound "bonerball/death"
	ActiveSound "bonerball/active"
	Obituary "$BONEBL_DTH"
	Gravity 0.6
	DamageFactor "Deflectedprojectile", 5.0

	Scale 0.3
	States
	{
	Spawn:
        BNBL A 0 A_StopSoundEx("soundslot5")
		BNBL A 10 A_Look
		Loop
	See:
        BNBL A 0 A_PlaySoundEx("bonerball/loop","soundslot5",1)
//        BNBL A 0 A_Chase
        BNBL AA 1 A_Chase
		Loop

	Missile:
TNT1 A 0 A_PlaySound("bonerball/fire")
		BNBL A 0 bright A_FaceTarget
		BNBL AAA 0 bright A_CustomMissile("welder_Ball",32,0,random(-20,20),CMF_OFFSETPITCH,random(-10,10))
		BNBL A 12 bright 
		Goto See


	Pain:
		BNBL A 0 A_Pain
		Goto See

	Death:
	XDeath:
        TNT1 A 0 A_StopSoundEx("soundslot5")
		TNT1 A 0 A_ScreamAndUnblock

//TNT1 A 0 A_PlaySound("monster/explodegore")
        TNT1 A 1 A_SpawnItemEx("Dusk_GenericMonsterGore",0,0,0,0,0,0,0,32)

		TNT1 AA 35

		TNT1 A 1 A_BossDeath

		Stop


	}
}


