Sight Assets
Sights (or “sight attachments”) are created from the ItemSightAsset class. They are inventory items that can be attached to ranged weapons.
This inherits the CaliberAsset class.
Game Data File
Sight 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 |
---|---|---|
|
Properties
Property Name |
Type |
Default Value |
---|---|---|
See description |
||
See description |
||
|
||
|
||
|
||
|
||
|
DistanceMarker Dictionary
Property Name |
Type |
Default Value |
---|---|---|
|
||
|
||
|
||
|
||
|
||
|
ESide Enumeration
Named Value |
Description |
---|---|
|
Marking extends to the left from the center. |
|
Marking extends to the right from the center. |
Property Descriptions
DistanceMarkers list of DistanceMarker
This property is a list of DistanceMarker dictionaries. It can be used to add visible (and accurate) distance markers to the scope that account for the weapon’s bullet drop.
Holographic flag
This sight should be holographic.
Nightvision_Color color
Override the default nightvision color. To configure this property, the Vision
property must be set to Military
. This property supports using legacy color parsing. When not overridden, the default nightivision color will depend on the value of the Vision property.
Nightvision_Fog_Intensity float32
Configure the intensity of fog while nightvision is active. When this property has not been configured, the default fog intensity will depend on the value of the Vision property.
Offset_Scope_Overlay_By_One_Texel bool false
If true
, the 2D scope texture will be scaled up slightly to center the pixel that would otherwise be left of center. For example, when enabled with a 512×512 texture the pixel at 255×255 will be centered on the display.
Vision ELightingVision None
Set a unique lighting vision effect to use. The value of this property may effect the default values of other properties. The Headlamp
enumerator is not supported by this property.
Zoom float32 1
Multiplicative amount of zoom. This value must be equal to or greater than 1
.
ThirdPerson_Zoom float32 1.25
Zoom factor while in the third-person perspective. This value must be equal to or greater than 1
.
Zoom_Using_Eyes bool false
Whether the main camera field of view should zoom without a scope overlay.
DistanceMarker Dictionary Descriptions
Distance float32 0
Meters between the player and a hypothethical target.
LineOffset float32 0
Distance between center line and start of horizontal line marker.
Display-related properties like LineOffset
are a percentage (represented as a decimal value from 0 to 1). For example, 0.25
would be 25%.
LineWidth float32 0.05
Length of horizontal line marker.
Display-related properties like LineWidth
are a percentage (represented as a decimal value from 0 to 1). For example, 0.25
would be 25%.
Side ESide Right
Direction the horizontal line and text expand in.
HasLabel bool true
If true, a label with Distance
text is shown next to the horizontal line marker.
Color color black
Override the color of the horizontal line and text.