Barrel Assets

Barrel attachments are inventory items that can be attached to ranged weapons.

This inherits the CaliberAsset class.

Game Data File

Barrel attachments inherit properties from the CaliberAsset class, which in turn inherits properties from the ItemAsset class. Properties that are required to be included are listed in the table below.

Class

Property Name

Required Value

ItemAsset

GUID

ItemAsset

ID

ItemAsset

Type

Barrel

Properties

Property Name

Type

Default Value

Ballistic_Drop

float32

1

Braked

flag

Durability

uint8

0

Gunshot_Rolloff_Distance_Multiplier

float32

See description

Silenced

flag

Volume

float32

1

Property Descriptions

Ballistic_Drop float32 1

Gravity acceleration multiplier for bullets in flight.


Braked flag

Muzzle flash should be hidden.


Durability uint8 0

Amount of quality lost after each firing of the ranged weapon. When this value is greater than 0, the item always has a visible item quality shown.


Gunshot_Rolloff_Distance_Multiplier float32

Multiplier on gunshot rolloff distance. Defaults to 0.5 if Silenced, otherwise to 1.


Silenced flag

Alerts should not be generated when firing.


Volume float32 1

Multiplier on gunfire sound volume. This is often used alongside with Silenced, but doing so is not required.