◆ HitDirectionEffectBase()
◆ ~HitDirectionEffectBase()
◆ CalculateArrowPosition()
void CalculateArrowPosition |
( |
float |
timeslice = -1.0 | ) |
|
|
inlineprivate |
References Math::Clamp(), Math::Cos(), Math::DEG2RAD, FinalizePositionCalculation(), CGame::GetCurrentCameraDirection(), GetGame(), GetScreenSize(), 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::ModFloat(), Math::NormalizeAngle(), Math::PI, Math::PI2, Math::Sin(), Math::SmoothCD(), and vector::VectorToAngles().
Referenced by Init(), and Update().
◆ CheckValues()
static void CheckValues |
( |
| ) |
|
|
inlinestaticprivate |
range 0..180, randomized offset of direction to make it less acurate
sets override values, or defaults
References CfgGameplayHandler::GetHitIndicationBreakPoint(), CfgGameplayHandler::GetHitIndicationIndicatorColor(), CfgGameplayHandler::GetHitIndicationMaxDuration(), CfgGameplayHandler::GetHitIndicationMode(), CfgGameplayHandler::GetHitIndicationOverrideEnabled(), CfgGameplayHandler::GetHitIndicationScatter(), CfgGameplayHandler::GetHitIndicationTypeID(), m_BreakPointBase, m_Color, m_DistanceAdjust, m_DurationMax, m_ID, m_Mode, m_RotationOverride, m_Scatter, and m_ServerOverrideEnabled.
Referenced by PlayerBase::UpdateHitDirectionValues().
◆ DurationCheck()
◆ FinalizePositionCalculation() [1/4]
override void FinalizePositionCalculation |
( |
| ) |
|
|
inlineprivate |
◆ FinalizePositionCalculation() [2/4]
void FinalizePositionCalculation |
( |
| ) |
|
|
inlineprivate |
specific handling on individual indicator type
◆ FinalizePositionCalculation() [3/4]
override void FinalizePositionCalculation |
( |
| ) |
|
|
inlineprivate |
◆ FinalizePositionCalculation() [4/4]
override void FinalizePositionCalculation |
( |
| ) |
|
|
inlineprivate |
◆ GetCurrentType()
static GetCurrentType |
( |
| ) |
|
|
inlinestaticprivate |
◆ GetImageData() [1/4]
◆ GetImageData() [2/4]
◆ GetImageData() [3/4]
◆ GetImageData() [4/4]
◆ Init()
Called manually after object spawn.
References CalculateArrowPosition(), Math::Clamp(), 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, m_Scatter, Math::Pow(), Math::RandomFloatInclusive(), Math::RandomIntInclusive(), SetIndicatorPositon(), and SetIndicatorRotation().
Referenced by Hud::SpawnHitDirEffect().
◆ SetIndicatorPositon()
void SetIndicatorPositon |
( |
float |
timeslice = -1.0 | ) |
|
|
inlineprivate |
◆ SetIndicatorRotation() [1/4]
override void SetIndicatorRotation |
( |
float |
timeslice = -1.0 | ) |
|
|
inlineprivate |
◆ SetIndicatorRotation() [2/4]
void SetIndicatorRotation |
( |
float |
timeslice = -1.0 | ) |
|
|
inlineprivate |
◆ SetIndicatorRotation() [3/4]
override void SetIndicatorRotation |
( |
float |
timeslice = -1.0 | ) |
|
|
inlineprivate |
◆ SetIndicatorRotation() [4/4]
override void SetIndicatorRotation |
( |
float |
timeslice = -1.0 | ) |
|
|
inlineprivate |
◆ Update()
void Update |
( |
float |
timeslice | ) |
|
|
inlineprivate |
References CalculateArrowPosition(), Math::Clamp(), Math::InverseLerp(), Math::Lerp(), m_BreakPoint, m_Duration, m_IntensityMax, m_LayoutRoot, m_Mode, m_TimeActive, SetIndicatorPositon(), and SetIndicatorRotation().
◆ DURATION_COEF_MIN
const float DURATION_COEF_MIN = 0.6 |
|
private |
◆ INTENSITY_MIN
const float INTENSITY_MIN = 0.6 |
|
private |
◆ m_AngleRad
◆ m_AngleRadPrev
◆ m_BreakPoint
◆ m_BreakPointBase
◆ m_Color
◆ m_DistanceAdjust
◆ m_Duration
◆ m_DurationMax
◆ m_HitDirection
◆ m_ID
◆ m_Image
◆ m_ImageData
◆ m_Initialized
◆ m_IntensityMax
◆ m_LayoutRoot
◆ m_Mode
◆ m_Player
◆ m_PosX
◆ m_PosXScreenEdge
◆ m_PosY
◆ m_PosYScreenEdge
◆ m_RotationOverride
◆ m_Scatter
◆ m_ServerOverrideEnabled
bool m_ServerOverrideEnabled |
|
staticprivate |
◆ m_SizeXEnf
◆ m_SizeYEnf
◆ m_SmoothVel
◆ m_TimeActive
◆ m_Type
The documentation for this class was generated from the following files: