| Home Page | Recent Changes | Preferences

Ammo

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

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

Methods

Inherited From Pickup

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

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

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

Category Class (UT2003)
Category Class Tree

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Image Uploads

Random Page

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

FAQs

Help Desk

Mapping Topics

Mapping Lessons

UnrealEd Interface

UnrealScript Topics

UnrealScript Lessons

Making Mods

Class Tree

Modeling Topics

Chongqing Page

Log In