## XIII
Class DecoCue

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

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

Direct Known Subclasses:None

class DecoCue
extends XIII.DecoWeapon

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

Function Summary
`simulated` | `PlayFiring()`
    //_____________________________________________________________________________
`simulated` | `PlaySelect()`
    //_____________________________________________________________________________

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class DecoCue extends DecoWeapon;
    00005
    00006	//_____________________________________________________________________________
    00007	simulated function PlayFiring()
    00008	{
    00009	//    Log("#"$DBUGFrameCount@" PlayFiring call for"@self@"w/FiringMode="$FiringMode);
    00010	    PlayAnim('Fire', 1.0);
    00011
    00012	    PlayFiringSound();
    00013	    if ( !HasAmmo() )
    00014	      return;
    00015
    00016	    IncrementFlashCount();
    00017	    if ( bDrawMuzzleflash )
    00018	      SetUpMuzzleFlash();
    00019	}
    00020
    00021	//_____________________________________________________________________________
    00022	simulated function PlaySelect()
    00023	{
    00024	//    log("#"@DBUGFrameCount@" PlaySelect call for"@self@"w/ mesh="$Mesh);
    00025	    bForceFire = false;
    00026	    bForceAltFire = false;
    00027	    if ( !IsAnimating() || !AnimIsInGroup(0,'Select') )
    00028	    {
    00029	      PlayAnim('Select',1.0);
    00030	    }
    00031	    Instigator.PlayRolloffSound(hSelectWeaponSound, self, 0, int(Pawn(Owner).IsPlayerPawn()), 0 );
    00032	}
    00033
    00034
    00035	defaultproperties
    00036	{
    00037	     SFXWhenBroken=Class'XIII.DecoBarSitImpactEmitter'
    00038	     SFXWhenBrokenNotPawn=Class'XIII.DecoBarSitDamaged'
    00039	     SFXWhenBrokenNoTgt=Class'XIII.DecoBarSitNoImpactEmitter'
    00040	     fDelaySFXBroken=0.050000
    00041	     fDelayShake=0.350000
    00042	     hDownSound=Sound'XIIIsound.Items__BilliardsCaneFire.BilliardsCaneFire__hCaneDown'
    00043	     hDownUnusedSound=Sound'XIIIsound.Items__BilliardsCaneFire.BilliardsCaneFire__hCaneExplo'
    00044	     AmmoName=Class'XIII.DecoCueAmmo'
    00045	     MeshName="XIIIArmes.FpsCanneM"
    00046	     hFireSound=Sound'XIIIsound.Items__BilliardsCaneFire.BilliardsCaneFire__hCaneFire'
    00047	     hSelectWeaponSound=Sound'XIIIsound.Items__BilliardsCanePick.BilliardsCanePick__hCanePick'
    00048	     PickupClassName="XIII.CueDecoPick"
    00049	     ThirdPersonRelativeLocation=(X=25.000000,Y=16.000000,Z=20.000000)
    00050	     ThirdPersonRelativeRotation=(Pitch=32768)
    00051	     AttachmentClass=Class'XIII.CueAttach'
    00052	     ItemName="Cue"
    00053	}

End Source Code