Table of Contents

Class AutomaticBarrelMagazine

Namespace
Exiled.API.Features.Items.FirearmModules.Barrel
Assembly
Exiled.API.dll

Basic realization of InventorySystem.Items.Firearms.Modules.AutomaticActionModule barrel.

public class AutomaticBarrelMagazine : BarrelMagazine
Inheritance
AutomaticBarrelMagazine
Inherited Members
Extension Methods

Constructors

AutomaticBarrelMagazine(AutomaticActionModule)

Initializes a new instance of the AutomaticBarrelMagazine class.

public AutomaticBarrelMagazine(AutomaticActionModule automaticModule)

Parameters

automaticModule AutomaticActionModule

Target InventorySystem.Items.Firearms.Modules.AutomaticActionModule.

Properties

Ammo

Gets or sets a count of current ammo in magazine.

public override int Ammo { get; set; }

Property Value

int

AutomaticBarrel

Gets an original InventorySystem.Items.Firearms.Modules.IAmmoContainerModule.

public AutomaticActionModule AutomaticBarrel { get; }

Property Value

AutomaticActionModule

BoltLocked

Gets or sets a value indicating whether barrel bolt is currently locked.

public bool BoltLocked { get; set; }

Property Value

bool

FireRate

Gets the fire rate of the firearm.

public float FireRate { get; }

Property Value

float

Firearm

Gets target Firearm assotiated with this magazine.

public override Firearm Firearm { get; }

Property Value

Firearm

IsCocked

Gets or sets a value indicating whether barrel is cocked.

public override bool IsCocked { get; set; }

Property Value

bool

IsOpenBolted

Gets a value indicating whether barrel magazine has open bolt or not.

public bool IsOpenBolted { get; }

Property Value

bool

MaxAmmo

Gets or sets a max avaible ammo count in magazine.

public override int MaxAmmo { get; set; }

Property Value

int

Remarks

Will be ranged between 0 and 16 due basegame logic.

Methods

Resync()

Resyncs a related values with a client.

public override void Resync()