3 [
Attribute(
"", UIWidgets.ResourcePickerThumbnail,
"Reference projectile",
params:
"et")]
4 protected ResourceName m_sReferenceProjectile;
6 protected SCR_2DPIPSightsComponent m_SightsComponent;
7 protected float m_fFovZoomed;
10 override bool WB_InitGenerator()
12 SetPointInfoGeneration(
false);
13 SetProjectileResource(m_sReferenceProjectile);
16 m_SightsComponent = SCR_2DPIPSightsComponent.Cast(bsc);
17 if (m_SightsComponent)
19 float magnification = m_SightsComponent.GetMagnification();
20 float s_fReferenceFOV = 38;
21 m_fFovZoomed = Math.RAD2DEG * 2 * Math.Atan2(Math.Tan(Math.DEG2RAD * (s_fReferenceFOV / 2)), magnification);
31 override bool WB_GetZeroingData(
float weaponAngle,
float distance, out vector offset, out vector angles)
33 angles[0] = weaponAngle;
38 override float WB_CalculateWeaponZeroingAnimationValue(
float pitch,
float distance, out vector offset, out vector angles)
40 if (m_SightsComponent.GetZeroType() == SCR_EPIPZeroingType.EPZ_CAMERA_TURN)
47 Print(
"The Reticle Offset zeroing method is currently unsupported pending Refactor of scopes", LogLevel.ERROR);