Gah - a solution with more questions. – EntropicLqd

Legacy:Ammo

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2003 :: Actor >> Pickup >> Ammo (Package: Engine)

The parent class for all Ammo Pickup.

For state behavoir of this item refer to the parent class Pickup.

Properties[edit]

int AmmoAmount 
The amount of ammo contained in the ammo pickup.

Methods[edit]

Inherited From Pickup[edit]

float BotDesireability (Pawn Bot) 
This determines the AI for desireability of the item. If the Pawn doesn't have the weapon it does not desire this weapon. If it has the weapon it then determines its desire from the MaxDesirability divided by the PathWeight.
float DetourWeight (Pawn Other, float PathWeight) 
If the bot is hunting a player or has max ammo the desireability is very low. If the bot doesn't have the weapon then it wants the ammo at 35% of the MaxDesirability. If it has the weapon and no ammo then the bot desires it at MaxDesirability.
Inventory SpawnCopy (Pawn Other) 
Calls the Pickup SpawnCopy but simply appends the AmmoAmount to the Ammo pickup that was copied.

Strange Bug[edit]

If your grid is higher than 16 sometimes you can not place certain ammo types. It's weird, this may also happen with all Pickups but I haven't tested it.

Legal: This is probably not a bug. It's the actor placed always positions itself to the closest grid reference point available. Rather obviously, you can't place weapons in the middle of nowhere, hence it's not placed at all.

Then again, I don't know the exact circumstances.

Known Subclasses[edit]

+-Ammo
   +-UTAmmoPickup
      +-AssaultAmmoPickup
      +-BioAmmoPickup
      +-FlakAmmoPickup
      +-LinkAmmoPickup
      +-MinigunAmmoPickup
      +-RocketAmmoPickup
      +-ShockAmmoPickup
      +-SniperAmmoPickup