Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
WeaponDebug Class Reference

Private Member Functions

void WeaponDebug ()
void ~WeaponDebug ()
void AddPosToCyclicBuffer (vector pos)
void CycleDebugMode ()
void DisplayGeneralInfo ()
void DisplayTargetInfo ()
void DrawBarrelMemoryPoints (vector begin_point, vector end_point)
void DrawEyePoint (Weapon weapon)
void DrawLineOfFire (vector begin_point, vector end_point)
void DrawLineOfFireCameraHybrid (vector usti_hlavne_position, vector camera_dir, vector camera_pos, vector konec_hlavne_position)
void DrawLineOfFireMuzzleToHit (vector begin_point, vector camera_dir, vector camera_pos)
vector GetEyePointPosition (Weapon weapon)
Weapon GetWeaponInHands ()
void OnCommandHandlerUpdate ()
void OnKeyDown (KeyCode key)
void OnPostFrameUpdate ()
void OrderTrailArray ()
void RemoveAllShapes (bool is_exit=false)

Private Attributes

const int BUFFER_SIZE = 1000
const float CAMERA_BULLET_ORIGIN_OFFSET = 1
const float CAMERA_TRACE_MIN_DISTANCE_TOLERANCE = 0.3
const float COLLISIONS_DISTANCE_TOLERANCE = 0.01
vector m_AimTrailCyclic [BUFFER_SIZE]
vector m_AimTrailOrdered [BUFFER_SIZE]
int m_BufferIndex
eDebugMode m_CurrentMode
ref map< int, stringm_DebugModesNames = new map<int, string>
Shape m_HitShape
Shape m_HitShape2
Shape m_HitShape3
Shape m_HitShape4
bool m_IsDrawKeyHeldDown
bool m_IsFireKeyPressed
bool m_IsLMBPressed
bool m_IsToggleKeyPressed
Shape m_PermanentLine1
Shape m_PermanentLine2
Shape m_PermanentShape1
Shape m_PermanentShape2
Shape m_Shape_konec
Shape m_Shape_usti
Shape m_ShapeEye
Shape m_ShapeFireDirCamera
Shape m_ShapeFireDirection1
Shape m_ShapeFireDirection2
Shape m_ShapeTrailLines
float m_TargetDistance
Weapon m_WeaponInHands
const float MAX_MUZZLE_DISTANCE_TOLERANCE = 20

Detailed Description

Definition at line 11 of file weapondebug.c.

Constructor & Destructor Documentation

◆ WeaponDebug()

void WeaponDebug ( )
inlineprivate

Definition at line 61 of file weapondebug.c.

References m_DebugModesNames.

◆ ~WeaponDebug()

void ~WeaponDebug ( )
inlineprivate

Definition at line 68 of file weapondebug.c.

References RemoveAllShapes().

Member Function Documentation

◆ AddPosToCyclicBuffer()

void AddPosToCyclicBuffer ( vector pos)
inlineprivate

Definition at line 241 of file weapondebug.c.

References BUFFER_SIZE, m_AimTrailCyclic, and m_BufferIndex.

Referenced by OnPostFrameUpdate().

◆ CycleDebugMode()

void CycleDebugMode ( )
inlineprivate

Definition at line 146 of file weapondebug.c.

References m_CurrentMode.

Referenced by OnCommandHandlerUpdate().

◆ DisplayGeneralInfo()

void DisplayGeneralInfo ( )
inlineprivate

◆ DisplayTargetInfo()

void DisplayTargetInfo ( )
inlineprivate

Definition at line 299 of file weapondebug.c.

References DbgUI::Begin(), DbgUI::End(), m_TargetDistance, and DbgUI::Text().

Referenced by OnPostFrameUpdate().

◆ DrawBarrelMemoryPoints()

void DrawBarrelMemoryPoints ( vector begin_point,
vector end_point )
inlineprivate

◆ DrawEyePoint()

void DrawEyePoint ( Weapon weapon)
inlineprivate

Definition at line 266 of file weapondebug.c.

References COLOR_BLUE, Debug::DrawSphere(), GetEyePointPosition(), and m_ShapeEye.

Referenced by OnPostFrameUpdate().

◆ DrawLineOfFire()

◆ DrawLineOfFireCameraHybrid()

◆ DrawLineOfFireMuzzleToHit()

◆ GetEyePointPosition()

vector GetEyePointPosition ( Weapon weapon)
inlineprivate

Definition at line 272 of file weapondebug.c.

Referenced by DrawEyePoint().

◆ GetWeaponInHands()

Weapon GetWeaponInHands ( )
inlineprivate

Definition at line 52 of file weapondebug.c.

References Class::CastTo(), and g_Game.

Referenced by OnPostFrameUpdate().

◆ OnCommandHandlerUpdate()

void OnCommandHandlerUpdate ( )
inlineprivate

◆ OnKeyDown()

void OnKeyDown ( KeyCode key)
inlineprivate

Definition at line 139 of file weapondebug.c.

Referenced by OnCommandHandlerUpdate().

◆ OnPostFrameUpdate()

◆ OrderTrailArray()

void OrderTrailArray ( )
inlineprivate

Definition at line 251 of file weapondebug.c.

References BUFFER_SIZE, m_AimTrailCyclic, m_AimTrailOrdered, and m_BufferIndex.

Referenced by OnPostFrameUpdate().

◆ RemoveAllShapes()

Field Documentation

◆ BUFFER_SIZE

const int BUFFER_SIZE = 1000
private

Definition at line 13 of file weapondebug.c.

Referenced by AddPosToCyclicBuffer(), OnPostFrameUpdate(), and OrderTrailArray().

◆ CAMERA_BULLET_ORIGIN_OFFSET

const float CAMERA_BULLET_ORIGIN_OFFSET = 1
private

Definition at line 16 of file weapondebug.c.

Referenced by DrawLineOfFireCameraHybrid().

◆ CAMERA_TRACE_MIN_DISTANCE_TOLERANCE

const float CAMERA_TRACE_MIN_DISTANCE_TOLERANCE = 0.3
private

Definition at line 17 of file weapondebug.c.

Referenced by DrawLineOfFireCameraHybrid().

◆ COLLISIONS_DISTANCE_TOLERANCE

const float COLLISIONS_DISTANCE_TOLERANCE = 0.01
private

Definition at line 14 of file weapondebug.c.

◆ m_AimTrailCyclic

vector m_AimTrailCyclic[BUFFER_SIZE]
private

Definition at line 27 of file weapondebug.c.

Referenced by AddPosToCyclicBuffer(), and OrderTrailArray().

◆ m_AimTrailOrdered

vector m_AimTrailOrdered[BUFFER_SIZE]
private

Definition at line 28 of file weapondebug.c.

Referenced by OnPostFrameUpdate(), and OrderTrailArray().

◆ m_BufferIndex

int m_BufferIndex
private

Definition at line 20 of file weapondebug.c.

Referenced by AddPosToCyclicBuffer(), and OrderTrailArray().

◆ m_CurrentMode

eDebugMode m_CurrentMode
private

Definition at line 26 of file weapondebug.c.

Referenced by CycleDebugMode(), DisplayGeneralInfo(), and OnPostFrameUpdate().

◆ m_DebugModesNames

ref map<int, string> m_DebugModesNames = new map<int, string>
private

Definition at line 30 of file weapondebug.c.

Referenced by WeaponDebug(), and DisplayGeneralInfo().

◆ m_HitShape

Shape m_HitShape
private

Definition at line 38 of file weapondebug.c.

Referenced by DrawLineOfFire(), DrawLineOfFireCameraHybrid(), and RemoveAllShapes().

◆ m_HitShape2

Shape m_HitShape2
private

Definition at line 42 of file weapondebug.c.

Referenced by DrawLineOfFireMuzzleToHit(), and RemoveAllShapes().

◆ m_HitShape3

Shape m_HitShape3
private

Definition at line 43 of file weapondebug.c.

Referenced by DrawLineOfFireMuzzleToHit(), and RemoveAllShapes().

◆ m_HitShape4

Shape m_HitShape4
private

Definition at line 44 of file weapondebug.c.

Referenced by DrawLineOfFireCameraHybrid(), and RemoveAllShapes().

◆ m_IsDrawKeyHeldDown

bool m_IsDrawKeyHeldDown
private

Definition at line 21 of file weapondebug.c.

Referenced by DrawBarrelMemoryPoints(), OnCommandHandlerUpdate(), and OnPostFrameUpdate().

◆ m_IsFireKeyPressed

bool m_IsFireKeyPressed
private

◆ m_IsLMBPressed

bool m_IsLMBPressed
private

Definition at line 22 of file weapondebug.c.

Referenced by OnCommandHandlerUpdate().

◆ m_IsToggleKeyPressed

bool m_IsToggleKeyPressed
private

Definition at line 23 of file weapondebug.c.

◆ m_PermanentLine1

Shape m_PermanentLine1
private

◆ m_PermanentLine2

Shape m_PermanentLine2
private

◆ m_PermanentShape1

Shape m_PermanentShape1
private

Definition at line 49 of file weapondebug.c.

Referenced by DrawLineOfFireCameraHybrid(), and RemoveAllShapes().

◆ m_PermanentShape2

Shape m_PermanentShape2
private

Definition at line 50 of file weapondebug.c.

Referenced by RemoveAllShapes().

◆ m_Shape_konec

Shape m_Shape_konec
private

Definition at line 35 of file weapondebug.c.

Referenced by DrawBarrelMemoryPoints(), and RemoveAllShapes().

◆ m_Shape_usti

Shape m_Shape_usti
private

Definition at line 34 of file weapondebug.c.

Referenced by DrawBarrelMemoryPoints(), and RemoveAllShapes().

◆ m_ShapeEye

Shape m_ShapeEye
private

Definition at line 39 of file weapondebug.c.

Referenced by DrawEyePoint(), and RemoveAllShapes().

◆ m_ShapeFireDirCamera

Shape m_ShapeFireDirCamera
private

Definition at line 41 of file weapondebug.c.

Referenced by DrawLineOfFireMuzzleToHit(), and RemoveAllShapes().

◆ m_ShapeFireDirection1

Shape m_ShapeFireDirection1
private

Definition at line 36 of file weapondebug.c.

Referenced by DrawLineOfFire(), and RemoveAllShapes().

◆ m_ShapeFireDirection2

Shape m_ShapeFireDirection2
private

Definition at line 37 of file weapondebug.c.

Referenced by DrawLineOfFire(), and RemoveAllShapes().

◆ m_ShapeTrailLines

Shape m_ShapeTrailLines
private

Definition at line 40 of file weapondebug.c.

Referenced by OnPostFrameUpdate(), and RemoveAllShapes().

◆ m_TargetDistance

float m_TargetDistance
private

◆ m_WeaponInHands

Weapon m_WeaponInHands
private

Definition at line 19 of file weapondebug.c.

◆ MAX_MUZZLE_DISTANCE_TOLERANCE

const float MAX_MUZZLE_DISTANCE_TOLERANCE = 20
private

Definition at line 15 of file weapondebug.c.

Referenced by DrawLineOfFireCameraHybrid().


The documentation for this class was generated from the following file: