API ReferenceSandbox
BaseAmmoResourceclass
Defines a type of ammo that weapons share. Weapons referencing the same ammo type draw from the same reserve pool on the holder's inventory (see `Sandbox.BaseInventoryComponent.GetAmmo(Sandbox.BaseAmmoResource)`). Derive from this to define your own ammo types with extra data or overridden behaviour.
Constructors1
Showing 1 constructors
public BaseAmmoResource()
No results match this filter.
Properties3
Showing 3 properties
public virtual Sandbox.Texture Sandbox.BaseAmmoResource.Icon { get; set; }
Optional HUD/inventory icon.
public virtual int Sandbox.BaseAmmoResource.MaxReserve { get; set; }
Maximum reserve ammo an inventory can hold of this type.
Returns:
int—public virtual string Sandbox.BaseAmmoResource.Title { get; set; }
Display name, for HUDs and pickup messages.
Returns:
string—No results match this filter.