## XIII
Class MiniUzi

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

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Inventory
             |
             +--Engine.Weapon
                |
                +--XIII.XIIIWeapon
                   |
                   +--XIII.MiniUzi

Direct Known Subclasses:MiniUziPlus

class MiniUzi
extends XIII.XIIIWeapon

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

Function Summary
`Name` | `GetBaseWeaponBone()`
    //_____________________________________________________________________________
`float` | `RateSelf()`
    //_____________________________________________________________________________
    // FRD
`simulated` | `RumbleFX()`
    //_____________________________________________________________________________

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class MiniUzi extends XIIIWeapon;
    00005
    00006	//_____________________________________________________________________________
    00007	simulated function Name GetBaseWeaponBone()
    00008	{
    00009	    return 'Uzi';
    00010	}
    00011
    00012	//_____________________________________________________________________________
    00013	simulated function RumbleFX()
    00014	{
    00015	    if( XIIIPlayerController(Instigator.Controller) == none )
    00016	        return;
    00017
    00018	    if ( (Instigator != none) && Instigator.IsHumanControlled() && Instigator.IsLocallyControlled() )
    00019	    {
    00020	      if ( ReloadCount%1 == 0 )
    00021	        XIIIPlayerController(Instigator.Controller).RumbleFX(RumbleFXNum);
    00022	      else
    00023	        XIIIPlayerController(Instigator.Controller).RumbleFX(RumbleFXNum+1);
    00024	    }
    00025	}
    00026
    00027	//_____________________________________________________________________________
    00028	// FRD
    00029	function float RateSelf()
    00030	{
    00031	    local float distance;
    00032
    00033	    if ( !HasAmmo() )
    00034	      return -2;
    00035	    if (instigator.controller.enemy!=none)
    00036	    {
    00037	      distance=Vsize(instigator.controller.enemy.location-instigator.location);
    00038	      if (distance>1410)
    00039	        return 0.295;
    00040	    }
    00041	    return AIRating;
    00042	}
    00043
    00044	//    Icon=texture'XIIIMenu.UziIcon'
    00045
    00046
    00047	defaultproperties
    00048	{
    00049	     WeaponOnoClass=Class'XIDSpec.M16WeaponOno'
    00050	     bRapidFire=True
    00051	     bHaveBoredSfx=True
    00052	     bCanHaveSlave=True
    00053	     bDrawMuzzleFlash=True
    00054	     WHand=WHA_1HShot
    00055	     AmmoName=Class'XIII.MiniUziAmmo'
    00056	     PickupAmmoCount=32
    00057	     ReloadCount=32
    00058	     MeshName="XIIIArmes.FpsUziM"
    00059	     FireOffset=(X=20.000000,Y=8.000000,Z=-2.000000)
    00060	     CrossHair=Texture'XIIIMenu.HUD.MireUzi'
    00061	     TraceAccuracy=12.000000
    00062	     ShotTime=0.084400
    00063	     FiringMode="FM_1H"
    00064	     AltFireNoise=0.000000
    00065	     ViewFeedBack=(X=2.500000,Y=2.500000)
    00066	     RumbleFXNum=10
    00067	     FirstPersonMFClass=Class'XIII.StarFPMF'
    00068	     FPMFRelativeLoc=(X=0.500000,Y=15.000000,Z=3.500000)
    00069	     AIRating=0.610000
    00070	     TraceDist=200.000000
    00071	     hFireSound=Sound'XIIIsound.Guns__UziFire.UziFire__hUziFire'
    00072	     hReloadSound=Sound'XIIIsound.Guns__UziRel.UziRel__hUziRel'
    00073	     hNoAmmoSound=Sound'XIIIsound.Guns__UziDryFire.UziDryFire__hUziDry'
    00074	     hSelectWeaponSound=Sound'XIIIsound.Guns__UziSelWp.UziSelWp__hUziSelWp'
    00075	     hActWaitSound=Sound'XIIIsound.Guns__UziWait.UziWait__hUziWait'
    00076	     MuzzleScale=1.500000
    00077	     FlashOffsetY=0.180000
    00078	     FlashOffsetX=0.170000
    00079	     MFTexture=Texture'XIIIMenu.SFX.MuzzleFlash2'
    00080	     InventoryGroup=13
    00081	     PickupClassName="XIII.MiniUziPick"
    00082	     PlayerViewOffset=(X=5.000000,Y=4.000000,Z=-4.500000)
    00083	     ThirdPersonRelativeLocation=(X=11.000000,Y=-3.000000,Z=2.000000)
    00084	     AttachmentClass=Class'XIII.MiniUziAttach'
    00085	     ItemName="MINIGUN"
    00086	     DrawScale=0.300000
    00087	}

End Source Code