DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnPostFrameUpdate()

void WeaponDebug::OnPostFrameUpdate ( )
inlineprivate

См. определение в файле WeaponDebug.c строка 128

129 {
130 Weapon weapon = GetWeaponInHands();
131 if (weapon)
132 {
134
135 vector cameraDirection = g_Game.GetCurrentCameraDirection();
136 vector cameraPosition = g_Game.GetCurrentCameraPosition();
137 vector usti_hlavne_position = weapon.GetSelectionPositionLS( "usti hlavne" );//usti hlavne
138 usti_hlavne_position = weapon.ModelToWorld(usti_hlavne_position);
139
140 DrawLineOfFireMuzzleToHit(usti_hlavne_position, cameraDirection, cameraPosition);
141
142 if (m_PointCount)
143 {
144 if (m_CurrentMode == eWeaponDebugMode.LOCAL)
145 {
146 m_ShapeTrailLines = Debug.DrawLines( m_AimTrailOrdered,m_PointCount, COLOR_YELLOW, ShapeFlags.NOZBUFFER );//TODO Local space -> world space (player camera)
147 }
148 else
149 {
151 }
152 }
153
156 }
157 }
string Debug()
Определения CachedEquipmentStorageBase.c:26
DayZGame g_Game
Определения DayZGame.c:4074
eWeaponDebugMode
Определения WeaponDebug.c:2
Shape m_ShapeTrailLines
Определения WeaponDebug.c:27
vector m_AimTrailOrdered[BUFFER_SIZE]
Определения WeaponDebug.c:20
void DisplayGeneralInfo()
Определения WeaponDebug.c:187
eWeaponDebugMode m_CurrentMode
Определения WeaponDebug.c:18
void DisplayTargetInfo()
Определения WeaponDebug.c:201
void RemoveAllShapes(bool is_exit=false)
Определения WeaponDebug.c:57
void DrawLineOfFireMuzzleToHit(vector begin_point, vector camera_dir, vector camera_pos)
Определения WeaponDebug.c:208
Weapon GetWeaponInHands()
Определения WeaponDebug.c:33
int m_PointCount
Определения WeaponDebug.c:13
const int COLOR_YELLOW
Определения 1_Core/DayZ/constants.c:67
ShapeFlags
Определения EnDebug.c:126

Перекрестные ссылки COLOR_YELLOW, DisplayGeneralInfo(), DisplayTargetInfo(), DrawLineOfFireMuzzleToHit(), Debug::DrawLines(), g_Game, GetWeaponInHands(), m_AimTrailOrdered, m_CurrentMode, m_PointCount, m_ShapeTrailLines и RemoveAllShapes().