![]() |
Dayz Explorer 1.28.160049
|
Protected Member Functions | |
| void | StaminaHandler (PlayerBase player) |
| void | Init () |
| void | ActivateDepletionModifier (EStaminaMultiplierTypes type) |
| void | DeactivateDepletionModifier (EStaminaMultiplierTypes type) |
| void | RecalculateDepletionMultiplier () |
| void | ActivateRecoveryModifier (EStaminaMultiplierTypes type) |
| void | DeactivateRecoveryModifier (EStaminaMultiplierTypes type) |
| void | RecalculateRecoveryMultiplier () |
| void | Update (float deltaT, int pCurrentCommandID) |
| void | OnRPC (float stamina, float stamina_cap, bool cooldown) |
| deprecated use, StaminaHandler uses SyncJunctures now | |
| void | OnSyncJuncture (int pJunctureID, ParamsReadContext pCtx) |
| called from PlayerBase - syncs stamina values on server with client AND sets the value to match on server and client both (m_StaminaSynced guarantees identical values) | |
| void | StaminaProcessor_Move (HumanMovementState pHumanMovementState) |
| void | StaminaProcessor_Ladder (HumanMovementState pHumanMovementState) |
| void | StaminaProcessor_Swimming (HumanMovementState pHumanMovementState) |
| void | SyncStamina (float stamina, float stamina_cap, bool cooldown) |
| stamina sync - server part | |
| void | SyncAdditionalStaminaInfo (Param par) |
| Method to sync more info for stamina manager. Template parameter means it is very extendable for further use. | |
| void | ReadAdditionalStaminaInfo (ParamsReadContext pCtx) |
| Order of read parameters must match the order of writing above. | |
| void | RegisterStaminaConsumers () |
| void | RegisterStaminaModifiers () |
| float | CalcStaminaGainBonus () |
| Calulates stamina regain bonus coef based on current stamina cap and level. | |
| void | ApplyExhaustion () |
| void | CheckStaminaState () |
| check if the stamina is completely depleted | |
| void | SetCooldown (float time, int modifier=-1) |
| set cooldown timer between each consume of stamina | |
| void | ResetCooldown (int modifier=-1) |
| Timer | GetCooldownTimer (int modifier) |
| bool | HasEnoughStaminaFor (EStaminaConsumers consumer) |
| bool | HasEnoughStaminaToStart (EStaminaConsumers consumer) |
| void | SetStamina (float stamina_value) |
| float | GetStamina () |
| float | GetStaminaNormalized () |
| float | GetSyncedStamina () |
| float | GetSyncedStaminaNormalized () |
| float | GetStaminaCap () |
| float | GetStaminaMax () |
| void | SetDepletionMultiplier (float val) |
| void | SetRecoveryMultiplier (float val) |
| float | GetDepletionMultiplier () |
| float | GetRecoveryMultiplier () |
| void | DepleteStaminaEx (EStaminaModifiers modifier, float dT=-1, float coef=1.0) |
| void | DepleteStamina (EStaminaModifiers modifier, float dT=-1) |
| Deprecated. | |
Protected Attributes | |
| float | m_PlayerLoad |
| float | m_StaminaDelta |
| float | m_Stamina |
| float | m_StaminaSynced |
| float | m_StaminaCap |
| float | m_StaminaDepletion |
| float | m_StaminaDepletionMultiplier |
| float | m_StaminaRecoveryMultiplier |
| float | m_Time |
| ref Param3< float, float, bool > | m_StaminaParams |
| ref HumanMovementState | m_State |
| SHumanCommandMoveSettings | m_HumanMoveSettings |
| PlayerBase | m_Player |
| bool | m_Debug |
| bool | m_StaminaDepleted |
| DEPRECATED. | |
| ref map< int, ref Timer > | m_TimerMap |
| ref map< EStaminaMultiplierTypes, float > | m_RegisteredDepletionModifiers |
| ref set< EStaminaMultiplierTypes > | m_ActiveDepletionModifiers |
| ref map< EStaminaMultiplierTypes, float > | m_RegisteredRecoveryModifiers |
| ref set< EStaminaMultiplierTypes > | m_ActiveRecoveryModifiers |
| bool | m_IsInCooldown |
| ref StaminaConsumers | m_StaminaConsumers |
| ref StaminaModifiers | m_StaminaModifiers |
Definition at line 260 of file staminahandler.c.
|
protected |
Definition at line 295 of file staminahandler.c.
|
protected |
Definition at line 348 of file staminahandler.c.
|
protected |
Definition at line 384 of file staminahandler.c.
|
protected |
sets exhaustion look of player based on stamina level
Definition at line 808 of file staminahandler.c.
|
protected |
Calulates stamina regain bonus coef based on current stamina cap and level.
Definition at line 797 of file staminahandler.c.
|
protected |
check if the stamina is completely depleted
in case of complete depletion - start a cooldown timer before the regeneration cycle start
Definition at line 835 of file staminahandler.c.
|
protected |
Definition at line 361 of file staminahandler.c.
|
protected |
Definition at line 398 of file staminahandler.c.
|
protected |
Deprecated.
Definition at line 1063 of file staminahandler.c.
|
protected |
run cooldown right after depletion
Definition at line 971 of file staminahandler.c.
Definition at line 892 of file staminahandler.c.
|
protected |
Definition at line 961 of file staminahandler.c.
|
protected |
Definition at line 966 of file staminahandler.c.
|
protected |
Definition at line 914 of file staminahandler.c.
|
protected |
Definition at line 934 of file staminahandler.c.
|
protected |
Definition at line 939 of file staminahandler.c.
|
protected |
Definition at line 919 of file staminahandler.c.
|
protected |
Definition at line 924 of file staminahandler.c.
|
protected |
Definition at line 929 of file staminahandler.c.
|
protected |
Definition at line 898 of file staminahandler.c.
|
protected |
Definition at line 903 of file staminahandler.c.
|
protected |
Definition at line 330 of file staminahandler.c.
deprecated use, StaminaHandler uses SyncJunctures now
Definition at line 516 of file staminahandler.c.
|
protected |
called from PlayerBase - syncs stamina values on server with client AND sets the value to match on server and client both (m_StaminaSynced guarantees identical values)
Definition at line 521 of file staminahandler.c.
|
protected |
Order of read parameters must match the order of writing above.
Definition at line 695 of file staminahandler.c.
|
protected |
Definition at line 371 of file staminahandler.c.
|
protected |
Definition at line 408 of file staminahandler.c.
|
protected |
Definition at line 708 of file staminahandler.c.
|
protected |
Definition at line 749 of file staminahandler.c.
|
protected |
Definition at line 878 of file staminahandler.c.
set cooldown timer between each consume of stamina
Definition at line 854 of file staminahandler.c.
|
protected |
Definition at line 945 of file staminahandler.c.
|
protected |
Definition at line 953 of file staminahandler.c.
|
protected |
Definition at line 908 of file staminahandler.c.
|
protected |
Definition at line 621 of file staminahandler.c.
|
protected |
Definition at line 558 of file staminahandler.c.
|
protected |
Definition at line 646 of file staminahandler.c.
|
protected |
Method to sync more info for stamina manager. Template parameter means it is very extendable for further use.
Definition at line 684 of file staminahandler.c.
stamina sync - server part
Definition at line 673 of file staminahandler.c.
gets the actual players load
StaminaCap calculation starts when PlayerLoad exceeds STAMINA_WEIGHT_LIMIT_THRESHOLD
processed on event
processed on event
processed on event
Definition at line 423 of file staminahandler.c.
|
protected |
Definition at line 281 of file staminahandler.c.
|
protected |
Definition at line 284 of file staminahandler.c.
|
protected |
Definition at line 276 of file staminahandler.c.
|
protected |
Definition at line 273 of file staminahandler.c.
|
protected |
Definition at line 286 of file staminahandler.c.
|
protected |
Definition at line 274 of file staminahandler.c.
|
protected |
Definition at line 262 of file staminahandler.c.
|
protected |
Definition at line 280 of file staminahandler.c.
|
protected |
Definition at line 283 of file staminahandler.c.
|
protected |
Definition at line 264 of file staminahandler.c.
|
protected |
Definition at line 266 of file staminahandler.c.
|
protected |
Definition at line 288 of file staminahandler.c.
|
protected |
Definition at line 263 of file staminahandler.c.
|
protected |
DEPRECATED.
Definition at line 277 of file staminahandler.c.
|
protected |
Definition at line 267 of file staminahandler.c.
|
protected |
Definition at line 268 of file staminahandler.c.
|
protected |
Definition at line 289 of file staminahandler.c.
Definition at line 271 of file staminahandler.c.
|
protected |
Definition at line 269 of file staminahandler.c.
|
protected |
Definition at line 265 of file staminahandler.c.
|
protected |
Definition at line 272 of file staminahandler.c.
|
protected |
Definition at line 270 of file staminahandler.c.
Definition at line 279 of file staminahandler.c.