## XIII
Class FusilSnipe

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

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

Direct Known Subclasses:None

class FusilSnipe
extends XIII.XIIIWeapon

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

Function Summary
`Name` | `GetBaseWeaponBone()`
    //_____________________________________________________________________________
`float` | `RateSelf()`
    //_____________________________________________________________________________
    // FRD
`bool` | `ShouldDrawCrosshair(Canvas C)`
    //_____________________________________________________________________________

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class FusilSnipe extends XIIIWeapon;
    00005
    00006	//_____________________________________________________________________________
    00007	simulated function Name GetBaseWeaponBone()
    00008	{
    00009	    return 'Sniper';
    00010	}
    00011
    00012	//_____________________________________________________________________________
    00013	// FRD
    00014	function float RateSelf()
    00015	{
    00016	    local float distance;
    00017
    00018	    if ( !HasAmmo() )
    00019	      return -2;
    00020	    if (instigator.controller.enemy!=none)
    00021	    {
    00022	      distance=Vsize(instigator.controller.enemy.location-instigator.location);
    00023	      if (distance<820)
    00024	        return 0.2;
    00025	    }
    00026	    return AIRating;
    00027	}
    00028
    00029	//_____________________________________________________________________________
    00030	simulated function bool ShouldDrawCrosshair(Canvas C)
    00031	{
    00032	/*    if ( bZoomed )
    00033	      DrawZoomedCrosshair(C);
    00034	*/
    00035	    return false;
    00036	}
    00037
    00038	/*    CrossHair=Texture'XIIIMenu.MireSniper'
    00039	    LCrossHair=Texture'XIIIMenu.LMireSniper'
    00040	*/
    00041	//    ZCrosshairReflet=texture'XIIIMenu.ZMireSniperRefletA'
    00042	//    Mesh=SkeletalMesh'XIIIArmes.FpsSniperM'
    00043	//    PickupClass=Class'XIII.FusilSnipePick'
    00044	//    Icon=texture'XIIIMenu.SniperIcon'
    00045
    00046
    00047	defaultproperties
    00048	{
    00049	     WeaponOnoClass=Class'XIDSpec.RifleWeaponOno'
    00050	     bHaveScope=True
    00051	     bShouldGoThroughTraversable=True
    00052	     bHaveBoredSfx=True
    00053	     bDrawMuzzleFlash=True
    00054	     WHand=WHA_2HShot
    00055	     WeaponMode=WM_SemiAuto
    00056	     AmmoName=Class'XIII.bmg50Ammo'
    00057	     PickupAmmoCount=10
    00058	     ReloadCount=10
    00059	     MeshName="XIIIArmes.FpsSniperM"
    00060	     FireOffset=(Y=1.600000,Z=-2.000000)
    00061	     ScopeFOV=7.000000
    00062	     ShotTime=1.200000
    00063	     FiringMode="FM_Snipe"
    00064	     AltFireNoise=0.000000
    00065	     ZCrosshair=Texture'XIIIMenu.HUD.ZMireSniperA'
    00066	     ZCrosshairDot=Texture'XIIIMenu.HUD.miresnipeM'
    00067	     ViewFeedBack=(X=3.000000,Y=6.000000)
    00068	     fAltZoomValue(1)=0.942300
    00069	     RumbleFXNum=12
    00070	     FPMFRelativeLoc=(Y=60.000000,Z=0.200000)
    00071	     ShakeVert=(X=5.000000,Z=-15.000000)
    00072	     ShakeSpeed=(Z=-500.000000)
    00073	     ShakeCycles=1.500000
    00074	     AIRating=0.750000
    00075	     TraceDist=1500.000000
    00076	     hFireSound=Sound'XIIIsound.Guns__SnipFire.SnipFire__hSnipFire'
    00077	     hReloadSound=Sound'XIIIsound.Guns__SnipRel.SnipRel__hSnipRel'
    00078	     hNoAmmoSound=Sound'XIIIsound.Guns__SnipDryFire.SnipDryFire__hSnipDry'
    00079	     hSelectWeaponSound=Sound'XIIIsound.Guns__SnipSelWp.SnipSelWp__hSnipSelWp'
    00080	     hZoomSound=Sound'XIIIsound.Guns__Zoom.Zoom__hZoom'
    00081	     MuzzleScale=0.500000
    00082	     FlashOffsetY=0.100000
    00083	     FlashOffsetX=0.110000
    00084	     InventoryGroup=14
    00085	     PickupClassName="XIII.FusilSnipePick"
    00086	     PlayerViewOffset=(X=5.000000,Y=10.000000)
    00087	     ThirdPersonRelativeLocation=(X=35.000000,Y=-4.000000,Z=6.000000)
    00088	     AttachmentClass=Class'XIII.FusilSnipeAttach'
    00089	     ItemName="SNIPER RIFLE"
    00090	     DrawScale=0.300000
    00091	}

End Source Code