DayZ Scripts
PC Stable Documentation
 
Loading...
Searching...
No Matches
WeaponDebug Class Reference

Private Member Functions

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

Private Attributes

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

Constructor & Destructor Documentation

◆ WeaponDebug()

void WeaponDebug ( )
inlineprivate

References m_DebugModesNames.

◆ ~WeaponDebug()

void ~WeaponDebug ( )
inlineprivate

References RemoveAllShapes().

Member Function Documentation

◆ AddPosToCyclicBuffer()

void AddPosToCyclicBuffer ( vector  pos)
inlineprivate

◆ CycleDebugMode()

void CycleDebugMode ( )
inlineprivate

References m_CurrentMode.

Referenced by OnCommandHandlerUpdate().

◆ 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()

◆ DrawLineOfFireCameraHybrid()

◆ DrawLineOfFireMuzzleToHit()

◆ GetEyePointPosition()

vector GetEyePointPosition ( Weapon  weapon)
inlineprivate

Referenced by DrawEyePoint().

◆ GetWeaponInHands()

Weapon GetWeaponInHands ( )
inlineprivate

References Class::CastTo(), GetGame(), and GetPlayer().

Referenced by OnPostFrameUpdate().

◆ OnCommandHandlerUpdate()

void OnCommandHandlerUpdate ( )
inlineprivate

◆ OnKeyDown()

void OnKeyDown ( KeyCode  key)
inlineprivate

Referenced by OnCommandHandlerUpdate().

◆ OnPostFrameUpdate()

◆ OrderTrailArray()

void OrderTrailArray ( )
inlineprivate

◆ RemoveAllShapes()

Field Documentation

◆ 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

vector m_AimTrailCyclic[BUFFER_SIZE]
private

◆ m_AimTrailOrdered

vector m_AimTrailOrdered[BUFFER_SIZE]
private

◆ m_BufferIndex

int m_BufferIndex
private

◆ m_CurrentMode

eDebugMode m_CurrentMode
private

◆ m_DebugModesNames

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

Referenced by DisplayGeneralInfo(), and WeaponDebug().

◆ m_HitShape

Shape m_HitShape
private

◆ m_HitShape2

Shape m_HitShape2
private

◆ m_HitShape3

Shape m_HitShape3
private

◆ m_HitShape4

Shape m_HitShape4
private

◆ m_IsDrawKeyHeldDown

bool m_IsDrawKeyHeldDown
private

◆ m_IsFireKeyPressed

◆ m_IsLMBPressed

bool m_IsLMBPressed
private

Referenced by OnCommandHandlerUpdate().

◆ m_IsToggleKeyPressed

bool m_IsToggleKeyPressed
private

◆ m_PermanentLine1

◆ m_PermanentLine2

◆ m_PermanentShape1

Shape m_PermanentShape1
private

◆ m_PermanentShape2

Shape m_PermanentShape2
private

Referenced by RemoveAllShapes().

◆ m_Shape_konec

Shape m_Shape_konec
private

◆ m_Shape_usti

Shape m_Shape_usti
private

◆ m_ShapeEye

Shape m_ShapeEye
private

Referenced by DrawEyePoint(), and RemoveAllShapes().

◆ m_ShapeFireDirCamera

Shape m_ShapeFireDirCamera
private

◆ m_ShapeFireDirection1

Shape m_ShapeFireDirection1
private

Referenced by DrawLineOfFire(), and RemoveAllShapes().

◆ m_ShapeFireDirection2

Shape m_ShapeFireDirection2
private

Referenced by DrawLineOfFire(), and RemoveAllShapes().

◆ m_ShapeTrailLines

Shape m_ShapeTrailLines
private

◆ m_TargetDistance

◆ m_WeaponInHands

Weapon m_WeaponInHands
private

◆ MAX_MUZZLE_DISTANCE_TOLERANCE

const float MAX_MUZZLE_DISTANCE_TOLERANCE = 20
private

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