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.

objectGameResourceBaseAmmoResource
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public class Sandbox.BaseAmmoResource : Sandbox.GameResource

Constructors1

Showing 1 constructors

Properties3

Showing 3 properties

public virtual int Sandbox.BaseAmmoResource.MaxReserve { get; set; }PUBLICVIRTUALGETSET

Maximum reserve ammo an inventory can hold of this type.

Returns:int

public virtual string Sandbox.BaseAmmoResource.Title { get; set; }PUBLICVIRTUALGETSET

Display name, for HUDs and pickup messages.

Returns:string

On this page