Skip to content

Latest commit

 

History

History
114 lines (80 loc) · 3.13 KB

barrel-asset.rst

File metadata and controls

114 lines (80 loc) · 3.13 KB

Barrel Assets

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

This inherits the CaliberAsset <doc_item_asset_caliber> 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 <doc_item_asset_intro> GUID <doc_item_asset_intro:guid>
ItemAsset <doc_item_asset_intro> ID <doc_item_asset_intro:id>
ItemAsset <doc_item_asset_intro> Type <doc_item_asset_intro:type> Barrel

Properties

Property Name Type Default Value
Ballistic_Drop <doc_item_asset_barrel:ballistic_drop> float32 <doc_data_builtin_types> 1
Braked <doc_item_asset_barrel:braked> flag <doc_data_flag>
Durability <doc_item_asset_barrel:durability> uint8 <doc_data_builtin_types> 0
Gunshot_Rolloff_Distance_Multiplier <doc_item_asset_barrel:gunshot_rolloff_distance_multiplier> float32 <doc_data_builtin_types> See description
Silenced <doc_item_asset_barrel:silenced> flag <doc_data_flag>
Volume <doc_item_asset_barrel:volume> float32 <doc_data_builtin_types> 1

Property Descriptions

Ballistic_Drop float32 <doc_data_builtin_types> 1

Gravity acceleration multiplier for bullets in flight.


Braked flag <doc_data_flag>

Muzzle flash should be hidden.


Durability uint8 <doc_data_builtin_types> 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 <doc_data_builtin_types>

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


Silenced flag <doc_data_flag>

Alerts should not be generated when firing.


Volume float32 <doc_data_builtin_types> 1

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