Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

XWeapons.BioAmmoPickup


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
class BioAmmoPickup extends UTAmmoPickup;

#exec OBJ LOAD FILE=PickupSounds.uax

simulated function PostBeginPlay()
{
    local actor HitActor;
    local vector HitLocation, HitNormal;
    
    Super.PostBeginPlay();
    
    // check to see if imbedded (stupid LD)
    HitActor = Trace(HitLocation, HitNormal, Location - CollisionHeight * vect(0,0,1), Location + CollisionHeight * vect(0,0,1), false);
    if ( (HitActor != None) && HitActor.bWorldGeometry )
        SetLocation(HitLocation + vect(0,0,1) * CollisionHeight);
}

defaultproperties
{
     AmmoAmount=20
     MaxDesireability=0.320000
     InventoryType=Class'XWeapons.BioAmmo'
     PickupMessage="You picked up some Bio-Rifle ammo"
     PickupSound=Sound'PickupSounds.FlakAmmoPickup'
     PickupForce="FlakAmmoPickup"
     DrawType=DT_StaticMesh
     StaticMesh=StaticMesh'WeaponStaticMesh.BioAmmoPickup'
     PrePivot=(Z=10.500000)
     CollisionHeight=8.250000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Tue 24/10/2006 17:08:00.000 - Creation time: Wed 7/2/2007 19:16:34.687 - Created with UnCodeX