Sight Assetsο
Sight attachments are inventory items that can be attached to ranged weapons.
This inherits the CaliberAsset class.
Game Data Fileο
Item Asset Propertiesο
GUID 32-digit hexadecimal: Refer to GUID documentation.
Type enum (Sight)
ID uint16: Must be a unique identifier.
Sight Asset Propertiesο
DistanceMarkers |
list of dictionaries |
n/a |
Holographic |
flag |
n/a |
Nightvision_Color |
See description |
|
Nightvision_Fog_Intensity |
float |
See description |
Offset_Scope_Overlay_By_One_Texel |
bool |
|
Vision |
enum ( |
|
Zoom |
float |
|
ThirdPerson_Zoom |
float |
|
Zoom_Using_Eyes |
bool |
|
Property Descriptionsο
DistanceMarkers list of dictionariesο
Note
Display-related properties like LineOffset and LineWidth are a 0-1 percentage of the scope size to keep them consistent between 2D and 3D. For example 0.25 is 25%.
Distance float: Meters between player and target.
LineOffset float: Distance between center line and start of horizontal line marker.
LineWidth float: Length of horizontal line marker. Defaults to 0.05.
Side enum (
LeftorRight): Direction the horizontal line and text expand in. Defaults to Right.HasLabel bool: If true, a label with Distance text is shown next to the horizontal line marker. Defaults to true.
Color color: Horizontal line and text color. Defaults to black.
Holographic flagο
Specified if sight is holographic.
Nightvision_Color color = See descriptionο
Overrides the default color when using Vision Military. When using the legacy color parsing, the _R, _G, and _B keys are unsigned bytes. The default value for Vision Civilian is equivalent to #666666. The default value for Vision Military is equivalent to #507814.
Nightvision_Fog_Intensity float = See descriptionο
Intensity of fog while nightvision is active. Default value for Vision Civilian is 0.5. Default value for Vision Military is 0.25.
Offset_Scope_Overlay_By_One_Texel bool = falseο
If true, 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 512x512 texture the pixel at 255x255 will be centered on the display.
Vision enum (None, Military, Civilian) = Noneο
Type of unique lighting vision effect to use. Use the βMilitaryβ enumerator when intending to assign a custom nightvision color via the color component properties.
Zoom float = 1ο
Multiplicative amount of zoom. Should be set to a value greater than 1.
ThirdPerson_Zoom float = 1.25ο
Zoom factor in third-person perspective. Should be set to a value greater than 1.
Zoom_Using_Eyes bool = falseο
Whether main camera field of view should zoom without scope camera / scope overlay.