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

Private Member Functions

void DayZPlayerImplementThrowing (DayZPlayer pPlayer)
void CancelThrowing (HumanInputController pHic, HumanCommandWeapons pHcw)
bool CanChangeThrowingStance (HumanInputController pHic)
bool CanContinueThrowing (HumanInputController pHic)
bool CanContinueThrowingEx (HumanInputController pHic, EntityAI pEntityInHands)
bool CheckFreeSpace ()
void HandleThrowing (HumanInputController pHic, HumanCommandWeapons pHcw, EntityAI pEntityInHands, float pDt)
bool IsThrowingAnimationPlaying ()
 Throwing animation after button release.
bool IsThrowingInProgress ()
 Throwing wind-up only (button hold).
bool IsThrowingModeEnabled ()
void ResetState ()
void SetThrowingModeEnabled (bool enable)

Private Attributes

const float c_fThrowingForceCoef = 1.0
const float c_fThrowingForceMax = 90.0
const float c_fThrowingForceMin = 20.0
bool m_bThrowingAnimationPlaying
bool m_bThrowingInProgress
bool m_bThrowingModeEnabled
float m_fThrowingForce01
DayZPlayer m_Player

Detailed Description

Definition at line 1 of file dayzplayerimplementthrowing.c.

Constructor & Destructor Documentation

◆ DayZPlayerImplementThrowing()

void DayZPlayerImplementThrowing ( DayZPlayer pPlayer)
inlineprivate

Definition at line 3 of file dayzplayerimplementthrowing.c.

References m_Player, ResetState(), and SetThrowingModeEnabled().

Member Function Documentation

◆ CancelThrowing()

◆ CanChangeThrowingStance()

◆ CanContinueThrowing()

◆ CanContinueThrowingEx()

bool CanContinueThrowingEx ( HumanInputController pHic,
EntityAI pEntityInHands )
inlineprivate

Definition at line 242 of file dayzplayerimplementthrowing.c.

References CanContinueThrowing().

Referenced by HandleThrowing().

◆ CheckFreeSpace()

bool CheckFreeSpace ( )
inlineprivate

Definition at line 250 of file dayzplayerimplementthrowing.c.

References vector::Forward, and m_Player.

Referenced by CanChangeThrowingStance(), and CanContinueThrowing().

◆ HandleThrowing()

◆ IsThrowingAnimationPlaying()

bool IsThrowingAnimationPlaying ( )
inlineprivate

Throwing animation after button release.

Definition at line 170 of file dayzplayerimplementthrowing.c.

References m_bThrowingAnimationPlaying.

◆ IsThrowingInProgress()

bool IsThrowingInProgress ( )
inlineprivate

Throwing wind-up only (button hold).

Definition at line 164 of file dayzplayerimplementthrowing.c.

References m_bThrowingInProgress.

◆ IsThrowingModeEnabled()

bool IsThrowingModeEnabled ( )
inlineprivate

Definition at line 158 of file dayzplayerimplementthrowing.c.

References m_bThrowingModeEnabled.

◆ ResetState()

void ResetState ( )
inlineprivate

◆ SetThrowingModeEnabled()

void SetThrowingModeEnabled ( bool enable)
inlineprivate

Field Documentation

◆ c_fThrowingForceCoef

const float c_fThrowingForceCoef = 1.0
private

Definition at line 263 of file dayzplayerimplementthrowing.c.

Referenced by HandleThrowing().

◆ c_fThrowingForceMax

const float c_fThrowingForceMax = 90.0
private

Definition at line 262 of file dayzplayerimplementthrowing.c.

Referenced by HandleThrowing().

◆ c_fThrowingForceMin

const float c_fThrowingForceMin = 20.0
private

Definition at line 261 of file dayzplayerimplementthrowing.c.

Referenced by HandleThrowing().

◆ m_bThrowingAnimationPlaying

bool m_bThrowingAnimationPlaying
private

◆ m_bThrowingInProgress

bool m_bThrowingInProgress
private

◆ m_bThrowingModeEnabled

bool m_bThrowingModeEnabled
private

◆ m_fThrowingForce01

float m_fThrowingForce01
private

Definition at line 259 of file dayzplayerimplementthrowing.c.

Referenced by HandleThrowing(), and ResetState().

◆ m_Player


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