## XIII
Class FGrenadFlying

source: C:\XIII\XIII\Classes\FGrenadFlying.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Projectile
             |
             +--XIII.XIIIProjectile
                |
                +--XIII.GrenadFlying
                   |
                   +--XIII.FGrenadFlying

Direct Known Subclasses:None

class FGrenadFlying
extends XIII.GrenadFlying

    //-----------------------------------------------------------
    //
    //-----------------------------------------------------------

Function Summary
`simulated` | `Explosion(vector HitLocation)`
    //_____________________________________________________________________________

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class FGrenadFlying extends GrenadFlying;
    00005
    00006	//_____________________________________________________________________________
    00007	simulated function Explosion(vector HitLocation)
    00008	{
    00009	    Local FragmentExplo Frag;
    00010	    local Emitter Em;
    00011	    Local int i, FragLoop;
    00012
    00013	    bExploded = true;
    00014
    00015	    //FRD   appel GenAlerte pour gestion grenade
    00016	    if (level.bLonePlayer) XIIIGameInfo(level.game).genalerte.untrigger(self,instigator);
    00017
    00018	    BlowUp(HitLocation);
    00019	    if ( Level.NetMode != NM_DedicatedServer )
    00020	    {
    00021	//      spawn(class'XIII.GrenadExplosionEmitter',,,Location + vect(0,0,1)*50,rotator(vect(0,0,1)));
    00022	      Spawn(ExplosionEmitterClass,,,Location + vect(0,0,1)*50,rotator(vect(0,0,1)));
    00023	      if ( (Level.Game != none) && (Level.Game.DetailLevel > 1) )
    00024	        FragLoop = 6;
    00025	      else
    00026	        FragLoop = 6;
    00027	      for(i = 0; FragLoop > i; i++)
    00028	      {
    00029	        Frag = Spawn(class'FragmentExplo',self,, HitLocation);
    00030	        Frag.Velocity = (vRand()+vect(0,0,0.4))*(400+fRand()*200);
    00031	      }
    00032	      if ( PhysicsVolume.bWaterVolume )
    00033	      {
    00034	        SpawnWaterExplo(HitLocation);
    00035	      }
    00036	    }
    00037	}
    00038
    00039
    00040
    00041	defaultproperties
    00042	{
    00043	     MyTrailClass=Class'XIII.FGrenadTrail'
    00044	     StaticMeshName="MeshArmesPickup.Grenade_Frag"
    00045	     ExplosionEmitterClass=Class'XIII.FragGrenadFragmentEmitter'
    00046	     Damage=700.000000
    00047	}

End Source Code