![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
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 |
Definition at line 1 of file dayzplayerimplementthrowing.c.
|
inlineprivate |
Definition at line 3 of file dayzplayerimplementthrowing.c.
References m_Player, ResetState(), and SetThrowingModeEnabled().
|
inlineprivate |
Definition at line 125 of file dayzplayerimplementthrowing.c.
References ResetState(), HumanInputController::ResetThrowingMode(), HumanCommandWeapons::SetActionProgressParams(), HumanCommandWeapons::SetThrowingMode(), and SetThrowingModeEnabled().
Referenced by HandleThrowing().
|
inlineprivate |
Definition at line 175 of file dayzplayerimplementthrowing.c.
References CheckFreeSpace(), HumanInputController::IsStanceChange(), HumanInputController::IsWeaponRaised(), HumanItemBehaviorCfg::m_iType, and m_Player.
Referenced by HandleThrowing().
|
inlineprivate |
Definition at line 220 of file dayzplayerimplementthrowing.c.
References CheckFreeSpace(), HumanCommandMove::IsChangingStance(), HumanCommandMove::IsStandingFromBack(), HumanInputController::IsWeaponRaised(), m_bThrowingInProgress, HumanItemBehaviorCfg::m_iType, m_Player, and UAInterface::SyncedPress().
Referenced by CanContinueThrowingEx().
|
inlineprivate |
Definition at line 242 of file dayzplayerimplementthrowing.c.
References CanContinueThrowing().
Referenced by HandleThrowing().
|
inlineprivate |
Definition at line 250 of file dayzplayerimplementthrowing.c.
References vector::Forward, and m_Player.
Referenced by CanChangeThrowingStance(), and CanContinueThrowing().
|
inlineprivate |
current state
handle mode change
handle action
cancel throwing in case of raising hands or heavy item in hands
check event for throw
handle throw force
bad transition: prone-on-back -> crouch/stand while throw wind-up is active
Definition at line 11 of file dayzplayerimplementthrowing.c.
References vector::AnglesToVector(), c_fThrowingForceCoef, c_fThrowingForceMax, c_fThrowingForceMin, CancelThrowing(), CanChangeThrowingStance(), CanContinueThrowingEx(), HumanCommandWeapons::GetBaseAimingAngleLR(), HumanCommandWeapons::GetBaseAimingAngleUD(), HumanInputController::IsAttackButton(), HumanCommandMove::IsStandingFromBack(), HumanCommandWeapons::IsThrowingMode(), HumanInputController::IsThrowingModeChange(), m_bThrowingAnimationPlaying, m_bThrowingInProgress, m_bThrowingModeEnabled, m_fThrowingForce01, HumanItemBehaviorCfg::m_iType, m_Player, ResetState(), HumanCommandWeapons::SetActionProgressParams(), HumanCommandWeapons::SetThrowingMode(), SetThrowingModeEnabled(), HumanCommandWeapons::ThrowItem(), and HumanCommandWeapons::WasItemLeaveHandsEvent().
|
inlineprivate |
Throwing animation after button release.
Definition at line 170 of file dayzplayerimplementthrowing.c.
References m_bThrowingAnimationPlaying.
|
inlineprivate |
Throwing wind-up only (button hold).
Definition at line 164 of file dayzplayerimplementthrowing.c.
References m_bThrowingInProgress.
|
inlineprivate |
Definition at line 158 of file dayzplayerimplementthrowing.c.
References m_bThrowingModeEnabled.
|
inlineprivate |
Definition at line 142 of file dayzplayerimplementthrowing.c.
References m_bThrowingAnimationPlaying, m_bThrowingInProgress, and m_fThrowingForce01.
Referenced by DayZPlayerImplementThrowing(), CancelThrowing(), and HandleThrowing().
|
inlineprivate |
Definition at line 149 of file dayzplayerimplementthrowing.c.
References m_bThrowingModeEnabled, and m_Player.
Referenced by DayZPlayerImplementThrowing(), CancelThrowing(), and HandleThrowing().
|
private |
Definition at line 263 of file dayzplayerimplementthrowing.c.
Referenced by HandleThrowing().
|
private |
Definition at line 262 of file dayzplayerimplementthrowing.c.
Referenced by HandleThrowing().
|
private |
Definition at line 261 of file dayzplayerimplementthrowing.c.
Referenced by HandleThrowing().
|
private |
Definition at line 258 of file dayzplayerimplementthrowing.c.
Referenced by HandleThrowing(), IsThrowingAnimationPlaying(), and ResetState().
|
private |
Definition at line 257 of file dayzplayerimplementthrowing.c.
Referenced by CanContinueThrowing(), HandleThrowing(), IsThrowingInProgress(), and ResetState().
|
private |
Definition at line 256 of file dayzplayerimplementthrowing.c.
Referenced by HandleThrowing(), IsThrowingModeEnabled(), and SetThrowingModeEnabled().
|
private |
Definition at line 259 of file dayzplayerimplementthrowing.c.
Referenced by HandleThrowing(), and ResetState().
|
private |
Definition at line 255 of file dayzplayerimplementthrowing.c.
Referenced by DayZPlayerImplementThrowing(), CanChangeThrowingStance(), CanContinueThrowing(), CheckFreeSpace(), HandleThrowing(), and SetThrowingModeEnabled().