◆ WeaponDebug()
◆ ~WeaponDebug()
◆ AddPosToCyclicBuffer()
void AddPosToCyclicBuffer |
( |
vector |
pos | ) |
|
|
inlineprivate |
◆ CycleDebugMode()
◆ DisplayGeneralInfo()
void DisplayGeneralInfo |
( |
| ) |
|
|
inlineprivate |
◆ DisplayTargetInfo()
void DisplayTargetInfo |
( |
| ) |
|
|
inlineprivate |
◆ DrawBarrelMemoryPoints()
void DrawBarrelMemoryPoints |
( |
vector |
begin_point, |
|
|
vector |
end_point |
|
) |
| |
|
inlineprivate |
◆ DrawEyePoint()
void DrawEyePoint |
( |
Weapon |
weapon | ) |
|
|
inlineprivate |
◆ DrawLineOfFire()
void DrawLineOfFire |
( |
vector |
begin_point, |
|
|
vector |
end_point |
|
) |
| |
|
inlineprivate |
References COLOR_RED, Debug::DrawLine(), Debug::DrawSphere(), m_HitShape, m_IsFireKeyPressed, m_PermanentLine1, m_ShapeFireDirection1, m_ShapeFireDirection2, vector::Normalized(), DayZPhysics::RaycastRV(), Colors::RED, and Debug::RemoveShape().
Referenced by OnPostFrameUpdate().
◆ DrawLineOfFireCameraHybrid()
void DrawLineOfFireCameraHybrid |
( |
vector |
usti_hlavne_position, |
|
|
vector |
camera_dir, |
|
|
vector |
camera_pos, |
|
|
vector |
konec_hlavne_position |
|
) |
| |
|
inlineprivate |
References CAMERA_BULLET_ORIGIN_OFFSET, CAMERA_TRACE_MIN_DISTANCE_TOLERANCE, Class::CastTo(), Math::Clamp(), vector::Distance(), Debug::DrawLine(), Debug::DrawSphere(), GetGame(), CGame::GetPlayer(), Colors::GREEN, Math::InverseLerp(), Math::Lerp(), m_HitShape, m_HitShape4, m_IsFireKeyPressed, m_PermanentLine1, m_PermanentLine2, m_PermanentShape1, m_TargetDistance, MAX_MUZZLE_DISTANCE_TOLERANCE, vector::Normalize(), PrintString, DayZPhysics::RaycastRV(), Colors::RED, and Debug::RemoveShape().
Referenced by OnPostFrameUpdate().
◆ DrawLineOfFireMuzzleToHit()
void DrawLineOfFireMuzzleToHit |
( |
vector |
begin_point, |
|
|
vector |
camera_dir, |
|
|
vector |
camera_pos |
|
) |
| |
|
inlineprivate |
References Class::CastTo(), COLOR_RED, vector::Distance(), Debug::DrawLine(), Debug::DrawSphere(), GetGame(), CGame::GetPlayer(), Colors::GREEN, m_HitShape2, m_HitShape3, m_IsFireKeyPressed, m_PermanentLine1, m_PermanentLine2, m_ShapeFireDirCamera, m_TargetDistance, DayZPhysics::RaycastRV(), Colors::RED, and Debug::RemoveShape().
Referenced by OnPostFrameUpdate().
◆ GetEyePointPosition()
◆ GetWeaponInHands()
◆ OnCommandHandlerUpdate()
void OnCommandHandlerUpdate |
( |
| ) |
|
|
inlineprivate |
◆ OnKeyDown()
◆ OnPostFrameUpdate()
void OnPostFrameUpdate |
( |
| ) |
|
|
inlineprivate |
References AddPosToCyclicBuffer(), BUFFER_SIZE, COLOR_YELLOW, DisplayGeneralInfo(), DisplayTargetInfo(), DrawBarrelMemoryPoints(), DrawEyePoint(), DrawLineOfFire(), DrawLineOfFireCameraHybrid(), DrawLineOfFireMuzzleToHit(), Debug::DrawLines(), CGame::GetCurrentCameraDirection(), CGame::GetCurrentCameraPosition(), GetGame(), GetWeaponInHands(), m_AimTrailOrdered, m_CurrentMode, m_IsDrawKeyHeldDown, m_ShapeTrailLines, OrderTrailArray(), and RemoveAllShapes().
◆ OrderTrailArray()
◆ RemoveAllShapes()
void RemoveAllShapes |
( |
bool |
is_exit = false | ) |
|
|
inlineprivate |
References m_HitShape, m_HitShape2, m_HitShape3, m_HitShape4, m_PermanentLine1, m_PermanentLine2, m_PermanentShape1, m_PermanentShape2, m_Shape_konec, m_Shape_usti, m_ShapeEye, m_ShapeFireDirCamera, m_ShapeFireDirection1, m_ShapeFireDirection2, m_ShapeTrailLines, and Debug::RemoveShape().
Referenced by OnPostFrameUpdate(), and ~WeaponDebug().
◆ BUFFER_SIZE
const int BUFFER_SIZE = 1000 |
|
private |
◆ CAMERA_BULLET_ORIGIN_OFFSET
const float CAMERA_BULLET_ORIGIN_OFFSET = 1 |
|
private |
◆ CAMERA_TRACE_MIN_DISTANCE_TOLERANCE
const float CAMERA_TRACE_MIN_DISTANCE_TOLERANCE = 0.3 |
|
private |
◆ COLLISIONS_DISTANCE_TOLERANCE
const float COLLISIONS_DISTANCE_TOLERANCE = 0.01 |
|
private |
◆ m_AimTrailCyclic
◆ m_AimTrailOrdered
◆ m_BufferIndex
◆ m_CurrentMode
◆ m_DebugModesNames
◆ m_HitShape
◆ m_HitShape2
◆ m_HitShape3
◆ m_HitShape4
◆ m_IsDrawKeyHeldDown
◆ m_IsFireKeyPressed
◆ m_IsLMBPressed
◆ m_IsToggleKeyPressed
bool m_IsToggleKeyPressed |
|
private |
◆ m_PermanentLine1
◆ m_PermanentLine2
◆ m_PermanentShape1
◆ m_PermanentShape2
◆ m_Shape_konec
◆ m_Shape_usti
◆ m_ShapeEye
◆ m_ShapeFireDirCamera
Shape m_ShapeFireDirCamera |
|
private |
◆ m_ShapeFireDirection1
Shape m_ShapeFireDirection1 |
|
private |
◆ m_ShapeFireDirection2
Shape m_ShapeFireDirection2 |
|
private |
◆ m_ShapeTrailLines
◆ m_TargetDistance
◆ m_WeaponInHands
◆ MAX_MUZZLE_DISTANCE_TOLERANCE
const float MAX_MUZZLE_DISTANCE_TOLERANCE = 20 |
|
private |
The documentation for this class was generated from the following file: