Barrel attachments are inventory items that can be attached to ranged weapons.
This inherits the CaliberAsset <doc_item_asset_caliber>
class.
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 |
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 |
Gravity acceleration multiplier for bullets in flight.
Muzzle flash should be hidden.
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.
Multiplier on gunshot rolloff distance. Defaults to 0.5
if Silenced
, otherwise to 1
.
Alerts should not be generated when firing.
Multiplier on gunfire sound volume. This is often used alongside with Silenced
, but doing so is not required.