class HitDirectionEffectBaseSource
Constructors 2
void HitDirectionEffectBase()References HitDirectionImagesBase.GetCurrentImageData(), GetImageData(), m_AngleRad
Show 7 more
, m_Image, m_ImageData, m_Initialized, m_LayoutRoot, m_PosX, m_PosY, and m_SmoothVelvoid ~HitDirectionEffectBase()Constants 2
Members 29
float m_HitDirectionfloat m_Durationfloat m_TimeActiveWidget m_LayoutRootWidget m_ImageDayZPlayer m_Playerbool m_Initializedint m_SizeXEnfint m_SizeYEnffloat m_PosXfloat m_PosYfloat m_PosXScreenEdgefloat m_PosYScreenEdgefloat m_AngleRadfloat m_AngleRadPrevReferenced by CalculateArrowPosition()
float m_SmoothVel[1]ref HitDirectionImagesBase m_ImageDataReferenced by HitDirectionEffectBase()
static bool m_ServerOverrideEnabledReferenced by CheckValues()
static int m_ModeReferenced by CheckValues(), Update(), IngameHud.SpawnHitDirEffect()
Show 2 more
, PluginDiagMenu.CheckHitDirection(), and PluginDiagMenuClient.CBMiscHitIndication()static int m_IDReferenced by CheckValues(), GetCurrentType(), PluginDiagMenu.CheckHitDirection()
Show 1 more
, PluginDiagMenuClient.CBMiscHitIndication()static int m_Colorstatic protected typename m_TypeReferenced by GetCurrentType()
static float m_DurationMaxReferenced by CheckValues(), Init(), PluginDiagMenu.CheckHitDirection()
Show 1 more
, PluginDiagMenuClient.CBMiscHitIndication()static float m_BreakPointBaserange 0..1, a point where the fading starts
Referenced by CheckValues(), Init(), PluginDiagMenu.CheckHitDirection()
Show 1 more
, PluginDiagMenuClient.CBMiscHitIndication()static float m_DistanceAdjuststatic int m_RotationOverridestatic float m_Scatterrange 0..180, randomized offset of direction to make it less acurate
Referenced by CheckValues(), Init(), PluginDiagMenu.CheckHitDirection()
Show 1 more
, PluginDiagMenuClient.CBMiscHitIndication()Methods 10
void Init(DayZPlayer player, float hit_direction, float intensity_max)Called manually after object spawn
References CalculateArrowPosition(), Math.Clamp(), Widget.GetChildren()
Show 23 more
, Widget.GetSibling(), Math.Pow(), Math.RandomFloatInclusive(), Math.RandomIntInclusive(), Widget.SetColor(), SetIndicatorPositon(), SetIndicatorRotation(), Widget.Show(), Widget.Show(), DURATION_COEF_MIN, INTENSITY_MIN, m_BreakPoint, m_BreakPointBase, m_Color, m_Duration, m_DurationMax, m_HitDirection, m_Image, m_Initialized, m_IntensityMax, m_LayoutRoot, m_Player, and m_ScatterReferenced by IngameHud.SpawnHitDirEffect()
HitDirectionImagesBase GetImageData()Referenced by HitDirectionEffectBase()
bool DurationCheck()Referenced by IngameHud.CleanupHitDirEffects()
void Update(float timeslice)References CalculateArrowPosition(), Math.Clamp(), Math.InverseLerp()
Show 11 more
, Math.Lerp(), Widget.SetAlpha(), SetIndicatorPositon(), SetIndicatorRotation(), Widget.Show(), m_BreakPoint, m_Duration, m_IntensityMax, m_LayoutRoot, m_Mode, and m_TimeActiveReferenced by IngameHud.UpdateHitDirEffects()
void CalculateArrowPosition(float timeslice = -1.0)References Math.Clamp(), Math.Cos(), FinalizePositionCalculation()
Show 24 more
, CGame.GetCurrentCameraDirection(), Object.GetOrientation(), GetScreenSize(), Math.ModFloat(), Math.NormalizeAngle(), Math.Sin(), Math.SmoothCD(), vector.VectorToAngles(), Math.DEG2RAD, m_AngleRad, m_AngleRadPrev, m_DistanceAdjust, m_HitDirection, m_Initialized, m_Player, m_PosX, m_PosXScreenEdge, m_PosY, m_PosYScreenEdge, m_SizeXEnf, m_SizeYEnf, m_SmoothVel, Math.PI, and Math.PI2void FinalizePositionCalculation()specific handling on individual indicator type
Referenced by CalculateArrowPosition()
void SetIndicatorPositon(float timeslice = -1.0)static void CheckValues()sets override values, or defaults
References CfgGameplayHandler.GetHitIndicationBreakPoint(), CfgGameplayHandler.GetHitIndicationIndicatorColor(), CfgGameplayHandler.GetHitIndicationMaxDuration()
Show 19 more
, CfgGameplayHandler.GetHitIndicationMode(), CfgGameplayHandler.GetHitIndicationOverrideEnabled(), CfgGameplayHandler.GetHitIndicationScatter(), CfgGameplayHandler.GetHitIndicationTypeID(), HitDirectionConstants.BREAKPOINT_BASE, HitDirectionConstants.COLOR_DEFAULT, HitDirectionConstants.DISTANCE_ADJUST, HitDirectionConstants.DURATION_BASE, m_BreakPointBase, m_Color, m_DistanceAdjust, m_DurationMax, m_ID, m_Mode, m_RotationOverride, m_Scatter, m_ServerOverrideEnabled, HitDirectionConstants.ROTATION_DEFAULT, and HitDirectionConstants.SCATTERstatic typename GetCurrentType()Referenced by IngameHud.SpawnHitDirEffect()