## XIII
Class DecoBottle

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

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

Direct Known Subclasses:DecoBottleThree, DecoBottleTwo

class DecoBottle
extends XIII.DecoWeapon

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

Function Summary
`simulated` | `TweenDown()`
    //_____________________________________________________________________________

Source Code

    00001	//-----------------------------------------------------------
    00002	//
    00003	//-----------------------------------------------------------
    00004	class DecoBottle extends DecoWeapon;
    00005
    00006	//_____________________________________________________________________________
    00007	simulated function TweenDown()
    00008	{
    00009	//    Log("TWEENDOWN for"@self@"bProjectileThrown="$bProjectileThrown);
    00010	//    log("#"@DBUGFrameCount@" TweenDown call for"@self);
    00011	    if ( bProjectileThrown )
    00012	      PlayAnim('DownLanc', 1.0);
    00013	    else
    00014	      PlayAnim('Down', 1.0);
    00015	    Instigator.PlayRolloffSound(hDownSound, self, 0, int(Pawn(Owner).IsPlayerPawn()), 0 );
    00016	    if (!bProjectileThrown && DecoAmmo(AmmoType).bUnused)
    00017	      Instigator.PlayRolloffSound(hDownUnusedSound, self, 0, int(Pawn(Owner).IsPlayerPawn()), 0 );
    00018	}
    00019
    00020
    00021	defaultproperties
    00022	{
    00023	     SFXWhenBroken=Class'XIII.DecoBottleImpactEmitter'
    00024	     SFXWhenBrokenNotPawn=Class'XIII.DecoBottleDamaged'
    00025	     SFXWhenBrokenNoTgt=Class'XIII.DecoBottleNoImpactEmitter'
    00026	     fDelaySFXBroken=0.050000
    00027	     fDelayShake=0.350000
    00028	     hDownSound=Sound'XIIIsound.Items__BottleFire.BottleFire__hBottleDown'
    00029	     hDownUnusedSound=Sound'XIIIsound.Items__BottleFire.BottleFire__hBottleExplo'
    00030	     bHaveAltFire=True
    00031	     AltAmmoName=Class'XIII.DecoBottleAmmo'
    00032	     AltPickupAmmoCount=1
    00033	     MeshName="XIIIDeco.FpsBouteilleM"
    00034	     AltFireOffset=(X=5.000000,Y=17.000000,Z=-5.000000)
    00035	     LoadedAltFiringAnim="FireLanc"
    00036	     EmptyAltFiringAnim="FireLanc"
    00037	     hFireSound=Sound'XIIIsound.Items__BottleFire.BottleFire__hBottleFire'
    00038	     hSelectWeaponSound=Sound'XIIIsound.Items__BottlePick.BottlePick__hBottlePick'
    00039	     hAltFireSound=Sound'XIIIsound.Items__BottleFire.BottleFire__hBottleAltFire'
    00040	     PickupClassName="XIII.BouteilleDeco"
    00041	     ThirdPersonRelativeLocation=(X=8.000000,Y=-2.500000,Z=23.000000)
    00042	     ThirdPersonRelativeRotation=(Pitch=32768)
    00043	     AttachmentClass=Class'XIII.BouteilleAttach'
    00044	     ItemName="Bottle"
    00045	}

End Source Code