Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
crosshairselector.c File Reference

Go to the source code of this file.

Classes

class  CrossHair
 

Functions

void CrossHairSelector ()
 
void ~CrossHairSelector ()
 
void Init ()
 Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
 
void OnWidgetScriptInit (Widget w)
 
void Update ()
 
void GetPlayer ()
 
void GetActionManager ()
 
CrossHair GetCrossHairByName (string widgetName)
 
CrossHair GetCurrentCrossHair ()
 
void SelectCrossHair ()
 
void ShowCrossHair (CrossHair crossHair)
 
void FloatingCrossHair (Widget widget)
 Highly WIP, do not use.
 

Variables

class CrossHair m_Player
 
ActionManagerBase m_AM
 
Widget m_Root
 
ref set< ref CrossHairm_CrossHairs
 
vector m_PreviousDirection
 Floating crosshair.
 
bool m_PreviousDirectionSet
 

Function Documentation

◆ CrossHairSelector()

void CrossHairSelector ( )
protected

Definition at line 67 of file crosshairselector.c.

◆ FloatingCrossHair()

void FloatingCrossHair ( Widget widget)
protected

Highly WIP, do not use.

Only intended to be used with track IR

Definition at line 229 of file crosshairselector.c.

◆ GetActionManager()

void GetActionManager ( )
protected

Definition at line 132 of file crosshairselector.c.

◆ GetCrossHairByName()

CrossHair GetCrossHairByName ( string widgetName)
protected

Definition at line 142 of file crosshairselector.c.

◆ GetCurrentCrossHair()

CrossHair GetCurrentCrossHair ( )
protected

Definition at line 153 of file crosshairselector.c.

◆ GetPlayer()

void GetPlayer ( )
protected

Definition at line 127 of file crosshairselector.c.

◆ Init()

void Init ( )
protected

Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)

whole body slots

upper body part slots

bottom body part slots

lower body part slots


heat comfort related slots

pre-init arrays

Definition at line 81 of file crosshairselector.c.

◆ OnWidgetScriptInit()

void OnWidgetScriptInit ( Widget w)
protected

Definition at line 93 of file crosshairselector.c.

◆ SelectCrossHair()

void SelectCrossHair ( )
protected

firearms

On Continuous Actions

raised hands(bare + non-firearm) + melee cmd

handle unconscious state

default

Definition at line 164 of file crosshairselector.c.

◆ ShowCrossHair()

void ShowCrossHair ( CrossHair crossHair)
protected

no crosshair + clean + hide the previous

hide prev crosshair

show the new one

Definition at line 203 of file crosshairselector.c.

◆ ~CrossHairSelector()

void ~CrossHairSelector ( )
protected

Definition at line 76 of file crosshairselector.c.

Variable Documentation

◆ m_AM

ActionManagerBase m_AM
protected

Definition at line 57 of file crosshairselector.c.

◆ m_CrossHairs

ref set<ref CrossHair> m_CrossHairs
protected

Definition at line 61 of file crosshairselector.c.

◆ m_Player

class CrossHair m_Player

◆ m_PreviousDirection

vector m_PreviousDirection
protected

Floating crosshair.

Definition at line 64 of file crosshairselector.c.

◆ m_PreviousDirectionSet

bool m_PreviousDirectionSet
protected

Definition at line 65 of file crosshairselector.c.

◆ m_Root

Widget m_Root
protected

Definition at line 59 of file crosshairselector.c.