См. определение в файле HitDirectionBase.c строка 123
124 {
126
127 float angle_direction =
m_Player.GetOrientation()[0];
128 angle_direction = Math.NormalizeAngle(angle_direction);
130 camera_angle = Math.NormalizeAngle(camera_angle);
131
132 float angle_camera_diff = angle_direction - camera_angle;
136
139
141
143 {
145 val = Math.ModFloat(val, Math.PI2);
146 val -= Math.PI;
148 }
150
153
155 }
proto native vector GetCurrentCameraDirection()
override void FinalizePositionCalculation()
static float m_DistanceAdjust
range 0..1, a point where the fading starts
proto vector VectorToAngles()
Converts vector to spherical coordinates with radius = 1.
proto native CGame GetGame()
proto void GetScreenSize(out int x, out int y)
Перекрестные ссылки 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() и vector::VectorToAngles().
Используется в Init() и Update().