Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
crosshairselector.c File Reference

Go to the source code of this file.

Data Structures

class  CrossHair
 

Functions

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

Variables

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

Function Documentation

◆ CrossHairSelector()

void CrossHairSelector ( )

Definition at line 67 of file crosshairselector.c.

◆ FloatingCrossHair()

void FloatingCrossHair ( Widget  widget)

Highly WIP, do not use.

Only intended to be used with track IR

Definition at line 229 of file crosshairselector.c.

◆ GetActionManager()

protected void GetActionManager ( )

Definition at line 132 of file crosshairselector.c.

◆ GetCrossHairByName()

protected CrossHair GetCrossHairByName ( string  widgetName)

Definition at line 142 of file crosshairselector.c.

◆ GetCurrentCrossHair()

protected CrossHair GetCurrentCrossHair ( )

Definition at line 153 of file crosshairselector.c.

◆ GetPlayer()

protected void GetPlayer ( )

Definition at line 127 of file crosshairselector.c.

◆ Init()

protected void Init ( )

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

Definition at line 81 of file crosshairselector.c.

◆ OnWidgetScriptInit()

protected void OnWidgetScriptInit ( Widget  w)

Definition at line 93 of file crosshairselector.c.

◆ SelectCrossHair()

protected void SelectCrossHair ( )

firearms

On Continuous Actions

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

handle unconscious state

default

Definition at line 164 of file crosshairselector.c.

◆ ShowCrossHair()

protected void ShowCrossHair ( CrossHair  crossHair)

no crosshair + clean + hide the previous

hide prev crosshair

show the new one

Definition at line 203 of file crosshairselector.c.

◆ ~CrossHairSelector()

void ~CrossHairSelector ( )

Definition at line 76 of file crosshairselector.c.

Variable Documentation

◆ m_AM

protected ActionManagerBase m_AM

Definition at line 57 of file crosshairselector.c.

◆ m_CrossHairs

protected ref set<ref CrossHair> m_CrossHairs

Definition at line 61 of file crosshairselector.c.

◆ m_Player

class CrossHair m_Player

◆ m_PreviousDirection

protected vector m_PreviousDirection

Floating crosshair.

Definition at line 64 of file crosshairselector.c.

◆ m_PreviousDirectionSet

protected bool m_PreviousDirectionSet

Definition at line 65 of file crosshairselector.c.

◆ m_Root

protected Widget m_Root

Definition at line 59 of file crosshairselector.c.