## XIII
Class DecoWBall

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

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

Direct Known Subclasses:None

class DecoWBall
extends XIII.DecoWeapon

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

Function Summary
`simulated` | `Fire(float Value)`
    //_____________________________________________________________________________
`simulated` | `TweenDown()`
    //_____________________________________________________________________________

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class DecoWBall extends DecoWeapon;
    00005
    00006
    00007	//_____________________________________________________________________________
    00008	simulated function Fire( float Value )
    00009	{
    00010	    bProjectileThrown = true;
    00011	    Super.Fire(0.0);
    00012	}
    00013
    00014	//_____________________________________________________________________________
    00015	simulated function TweenDown()
    00016	{
    00017	    if ( bProjectileThrown )
    00018	      PlayAnim('DownUsed', 1.0);
    00019	    else
    00020	      PlayAnim('Down', 1.0);
    00021	    Instigator.PlayRolloffSound(hDownSound, self, 0, int(Pawn(Owner).IsPlayerPawn()), 0 );
    00022	    if (!bProjectileThrown && DecoAmmo(AmmoType).bUnused)
    00023	      Instigator.PlayRolloffSound(hDownUnusedSound, self, 0, int(Pawn(Owner).IsPlayerPawn()), 0 );
    00024	}
    00025
    00026
    00027	defaultproperties
    00028	{
    00029	     fDelayShake=0.000000
    00030	     hDownSound=Sound'XIIIsound.Items__GlassFire.GlassFire__hGlassFire'
    00031	     AmmoName=Class'XIII.DecoWBallAmmo'
    00032	     MeshName="XIIIArmes.FpsBouleBlancheM"
    00033	     FireOffset=(X=5.000000,Y=17.000000,Z=-1.000000)
    00034	     FiringMode="FM_Throw"
    00035	     ShakeMag=0.000000
    00036	     shaketime=0.000000
    00037	     ShakeVert=(Z=0.000000)
    00038	     ShakeSpeed=(X=0.000000,Y=0.000000,Z=0.000000)
    00039	     ShakeCycles=0.000000
    00040	     hFireSound=Sound'XIIIsound.Items__BilliardsBallFire.BilliardsBallFire__hBilliardFire'
    00041	     hSelectWeaponSound=Sound'XIIIsound.Items__BilliardsBallPick.BilliardsBallPick__hBilliardPick'
    00042	     PickupClassName="XIII.WBallDecoPick"
    00043	     PlayerViewOffset=(X=8.000000,Y=6.000000,Z=-7.000000)
    00044	     ThirdPersonRelativeRotation=(Pitch=16384,Roll=16384)
    00045	     AttachmentClass=Class'XIII.WBallAttach'
    00046	     ItemName="White Ball"
    00047	}

End Source Code