class RangefinderSource
Rangefinder › PoweredOptic_Base › ItemOptics › InventoryItemSuper
All members, including inherited
Constructors 2
void Rangefinder()References InitRangeFinderData()
void ~Rangefinder()References PoweredOptic_Base.m_IsActionActive
Constants 1
static const float RANGEFINDER_MAX_DISTANCE = 913.4856TODO adjust maximal distance to match real life rangefinder
Members 4
protected ref Timer m_Timerprotected Widget m_Rootprotected TextWidget m_RangeTextprotected string m_LayoutPathMethods 11
protected void InitRangeFinderData()References CGame.ConfigGetText(), CGame.ConfigIsExisting(), Object.GetType()
Show 2 more
, string.Length(), and m_LayoutPathReferenced by Rangefinder()
float GetMeasurementUpdateInterval()Referenced by StartPeriodicMeasurement()
override void OnWorkStart()override void OnWorkStop()References Class.Cast(), EntityAI.GetHierarchyRootPlayer(), CGame.GetPlayer()
Show 2 more
, CGame.IsDedicatedServer(), and StopPeriodicMeasurement()void StartPeriodicMeasurement()References Class.Cast(), WorkspaceWidget.CreateWidgets(), Widget.FindAnyWidget()
Show 8 more
, GetMeasurementUpdateInterval(), CGame.GetWorkspace(), Timer.Run(), new Timer(), m_LayoutPath, m_RangeText, m_Root, and m_TimerReferenced by OnWorkStart()
void StopPeriodicMeasurement()Referenced by OnWorkStop()
protected void SetDistanceText(TextWidget text, float dist)References Math.Round(), SetInvalidText(), TextWidget.SetText()
Show 2 more
, float.ToString(), and RANGEFINDER_MAX_DISTANCEReferenced by DoMeasurement()
protected void SetInvalidText(TextWidget text)References TextWidget.SetText()
void DoMeasurement()References Math.Atan(), Class.Cast(), vector.Distance()
Show 15 more
, Widget.FindAnyWidget(), string.Format(), CGame.GetCurrentCameraDirection(), CGame.GetCurrentCameraPosition(), PoweredOptic_Base.GetPlayer(), DayZPhysics.RaycastRV(), Math.Round(), SetDistanceText(), SetInvalidText(), TextWidget.SetText(), Vector(), m_RangeText, m_Root, Math.RAD2DEG, and RANGEFINDER_MAX_DISTANCEoverride void SetActions()override void OnDebugSpawn()