class DefenceGrenade extends Grenade;

//simulated function Timer()
//{
//      Explode(Location, vect(0,0,1));
//}


//simulated function BlowUp(vector HitLocation)
//{
//	DelayedHurtRadius(Damage,DamageRadius, MyDamageType, MomentumTransfer, HitLocation );
//	if ( Role == ROLE_Authority ){
  //        if(Physics!=PHYS_Falling){
//		MakeNoise(1.0);
//		spawn(class'ProjectileShooter',,,Location+Vect(0,0,-32));
//	  }
//	  else
//	}
//}

simulated function BlowUp(vector HitLocation)
{
	if ( Role == ROLE_Authority )
		MakeNoise(1.0);
}

//simulated function Landed( vector HitNormal )
//{
//  if ( Role == ROLE_Authority )
//    spawn(class'ProjectileShooter',,,Location-(32*HitNormal), Rotator(HitNormal));
//  else
//    HitWall( HitNormal, None );
//}

simulated function Explode(vector HitLocation, vector HitNormal)
{
    BlowUp(HitLocation);
	PlaySound(sound'WeaponSounds.BExplosion3',,2.5*TransientSoundVolume);
    if ( EffectIsRelevant(Location,false) )
    {
        Spawn(class'NewExplosionB',,, HitLocation, rotator(vect(0,0,1)));
		Spawn(ExplosionDecal,self,,HitLocation, rotator(-HitNormal));
    }
    if ( Role == ROLE_Authority ){
        spawn(class'ProjectileShooter',,,Location+Vect(0,0,32),Rotator(Vect(0,1,0)));
    }

    Destroy();
}

defaultproperties
{
}
