Sight Assetsο
Sight attachments 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.