//Dusk damage chart (type: Dmg)
//SP: 500
//MP: 135

//Weapon projectile.
ACTOR Dusk_Rocket_DM
{
	Game Doom
	SpawnID 127
	Radius 11
	Height 8
	Speed 35
	Damage 20
	Projectile
	+RANDOMIZE
	+DEHEXPLOSION
	-ROCKETTRAIL
	+SEEKERMISSILE //Not actually used for anything other than checking radius.
	SeeSound "riveter/fire"
	DeathSound "Projectile/explosive"
	Obituary "$RIVETR_OB"
Scale 0.35
	States
	{
	Spawn:
		RIVP A 1 Bright Light("OrangeSmallPoint1")
		Loop
	Xdeath:	//Direct hit
		TNT1 A 0 A_GiveToTarget("DamageDealtSoundItemHack",1)


	Death: //crashed somewhere and checks for splash
		TNT1 A 0 A_ChangeFlag("NOINTERACTION",1)
		TNT1 A 0 A_Stop
		TNT1 A 0 A_SeekerMissile(0,0,SMF_LOOK|SMF_CURSPEED,256)
		TNT1 A 0 A_JumpIfTargetInLOS("RadiusHit",360,JLOSF_PROJECTILE,180)
		TNT1 A 0 A_Jump(256,"DeathCont") //for virtual jump to inherited versions
		Goto DeathCont
		
		RadiusHit:	//splash damage beep
			TNT1 A 0 A_GiveToTarget("DamageDealtSoundItemHack",1)
			TNT1 A 0 A_Jump(256,"DeathCont") //for virtual jump to inherited versions
			Goto DeathCont
		
	DeathCont:
//	Death:
//		TNT1 A 0 A_SetScale(0.75)
//		MISL B 0 Bright A_Explode
		TNT1 A 0 A_Explode(50,128,1,0,18)	//max damage taken by self rocket (rocket jump) is 50
		TNT1 A 0 A_Explode(30,144,0,0,128)	//then another 34 extra damage for impacting a player + (16)dmg on the projectile =100dmg


		RIVP P 1 A_SpawnItemEx("Dusk_RocketExplodeVisualAir",0,0,0,0,0,0,0,32)
		Stop
	}
}


