PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
CrossHairSelector.c File Reference

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)
 
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.
 

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.
 
protected bool m_PreviousDirectionSet
 

Function Documentation

◆ CrossHairSelector()

◆ FloatingCrossHair()

◆ GetActionManager()

◆ GetCrossHairByName()

protected CrossHair GetCrossHairByName ( string  widgetName)

References m_CrossHairs.

Referenced by SelectCrossHair().

◆ GetCurrentCrossHair()

protected CrossHair GetCurrentCrossHair ( )

References m_CrossHairs.

Referenced by ShowCrossHair(), and Update().

◆ GetPlayer()

protected void GetPlayer ( )

◆ Init()

protected void Init ( )

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

References m_CrossHairs, and m_Root.

◆ OnWidgetScriptInit()

protected void OnWidgetScriptInit ( Widget  w)

◆ SelectCrossHair()

protected void SelectCrossHair ( )

firearms

On Continuous Actions

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

handle unconscious state

default

References AC_CONTINUOUS, HumanInputController::CameraIsFreeLook(), ActionBase::GetActionCategory(), GetCrossHairByName(), GetGame(), DayZPlayer::IsInIronsights(), DayZPlayer::IsInOptics(), DayZPlayer::IsRaised(), m_AM, m_Player, ShowCrossHair(), and UA_NONE.

Referenced by Update().

◆ ShowCrossHair()

protected void ShowCrossHair ( CrossHair  crossHair)

no crosshair + clean + hide the previous

hide prev crosshair

show the new one

References FloatingCrossHair(), GetCurrentCrossHair(), CrossHair::GetWidget(), CrossHair::Hide(), CrossHair::IsCurrent(), CrossHair::IsShown(), and CrossHair::Show().

Referenced by SelectCrossHair(), and Update().

◆ ~CrossHairSelector()

Variable Documentation

◆ m_AM

◆ m_CrossHairs

protected ref set<ref CrossHair> m_CrossHairs

◆ m_Player

class CrossHair m_Player

◆ m_PreviousDirection

protected vector m_PreviousDirection

Floating crosshair.

Referenced by FloatingCrossHair().

◆ m_PreviousDirectionSet

protected bool m_PreviousDirectionSet

Referenced by FloatingCrossHair().

◆ m_Root

protected Widget m_Root