## XIII
Class M16GrenadAmmo

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

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Inventory
             |
             +--Engine.Ammunition
                |
                +--XIII.XIIIAmmo
                   |
                   +--XIII.XIIIProjectilesAmmo
                      |
                      +--XIII.M16GrenadAmmo

Direct Known Subclasses:None

class M16GrenadAmmo
extends XIII.XIIIProjectilesAmmo

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

Function Summary
`void` | `SpawnProjectile(vector Start, rotator Dir)`
    //_____________________________________________________________________________

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class M16GrenadAmmo extends XIIIProjectilesAmmo;
    00005
    00006	//_____________________________________________________________________________
    00007	function SpawnProjectile(vector Start, rotator Dir)
    00008	{
    00009	    local XIIIProjectile XP;
    00010
    00011	    if (AmmoAmount > 0)
    00012	      AmmoAmount -= 1;  // Fire
    00013	    else
    00014	      return;  // Empty Shot
    00015	    XP = XIIIProjectile(Spawn(ProjectileClass,,,Start,Dir));
    00016
    00017	    if ( XP != none )
    00018	      XP.SetImpactNoise(SoftImpactNoise, ImpactNoise);
    00019	}
    00020
    00021	//    PickupClass=class'M16GrenadPick'
    00022
    00023
    00024	defaultproperties
    00025	{
    00026	     fThrowDelay=0.100000
    00027	     bDisplayNameInHUD=True
    00028	     MaxAmmo=15
    00029	     ProjectileClass=Class'XIII.M16GrenadFlying'
    00030	     ImpactNoise=5.000000
    00031	     SoftImpactNoise=5.000000
    00032	     PickupClassName="XIII.M16GrenadPick"
    00033	     ItemName="GRENAD"
    00034	}

End Source Code