![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Go to the source code of this file.
Enumerations | |
| enum | EPlayerSoundEventID { HOLD_BREATH = 1 , EXHAUSTED_BREATH , RELEASE_BREATH , STAMINA_DOWN_LIGHT , STAMINA_DOWN_HEAVY , STAMINA_UP_LIGHT , STAMINA_UP_HEAVY , STAMINA_UP_END , STAMINA_NORMAL_DUMMY , TAKING_DMG_LIGHT , TAKING_DMG_HEAVY , SYMPTOM_COUGH , SYMPTOM_LAUGHTER , SYMPTOM_SNEEZE , SYMPTOM_GASP , JUMP , MELEE_ATTACK_LIGHT , INJURED_LIGHT , INJURED_MEDIUM , INJURED_HIGH , FREEZING , RATTLING_TEETH , HOT , SYMPTOM_FATIGUE , STAMINA_LOW_FILTER_UPPER , STAMINA_LOW_FILTER_MID , STAMINA_LOW_FILTER_LOWER , DROWNING_BREATH , DROWNING_PAIN , PICKUP_HEAVY , THIRST , FORCE_FEED , FORCE_DRINK , ENUM_COUNT } |
Functions | |
| int | ConvertAnimIDtoEventID (int anim_id) |
| override int | GetCurrentStateEventID () |
| override int | GetCurrentStateEventType () |
| static override EPlayerSoundEventType | GetSoundEventType (int id) |
| void | OnTick (float delta_time) |
| void | PlayerSoundEventHandler (PlayerBase player) |
| override bool | PlayRequest (EPlayerSoundEventID id, bool sent_from_server=false) |
| override bool | PlayRequestEx (EPlayerSoundEventID id, bool sent_from_server=false, int param=0) |
| void | RegisterState (PlayerSoundEventBase state) |
| override bool | StopRequest (EPlayerSoundEventID id, bool sent_from_server=false, int param=0) |
Variables | |
| static ref PlayerSoundEventBase | m_AvailableStates [SOUND_EVENTS_MAX] |
| static ref map< int, int > | m_ConfigIDToScriptIDmapping = new map<int,int> |
| ref PlayerSoundEventBase | m_CurrentState |
| enum EPlayerSoundEventID | m_Player |
| ref Timer | m_UpdateTimer |
| const int | SOUND_EVENTS_MAX = EPlayerSoundEventID.ENUM_COUNT |
| enum EPlayerSoundEventID |
Definition at line 2 of file playersoundeventhandler.c.
Definition at line 120 of file playersoundeventhandler.c.
References m_ConfigIDToScriptIDmapping.
| override int GetCurrentStateEventID | ( | ) |
Definition at line 130 of file playersoundeventhandler.c.
References m_CurrentState.
| override int GetCurrentStateEventType | ( | ) |
Definition at line 139 of file playersoundeventhandler.c.
References m_CurrentState.
|
static |
Definition at line 125 of file playersoundeventhandler.c.
References m_AvailableStates.
| void OnTick | ( | float | delta_time | ) |
Definition at line 109 of file playersoundeventhandler.c.
References m_CurrentState.
| void PlayerSoundEventHandler | ( | PlayerBase | player | ) |
Definition at line 54 of file playersoundeventhandler.c.
References CoughSoundEvent(), DamageLightSoundEvent(), DrowningEvent1(), ExhaustedBreathSoundEvent(), FatigueSoundEvent(), ForceFeedSoundEvent(), FreezingSoundEvent(), GaspSoundEvent(), HoldBreathSoundEvent(), HotSoundEvent(), InjuryHeavySoundEvent(), InjuryLightSoundEvent(), InjuryMediumSoundEvent(), JumpSoundEvent(), LaugherSoundEvent(), m_UpdateTimer, MeleeAttackLightEvent(), PickupHeavySoundEvent(), RattlingTeethSoundEvent(), RegisterState(), ReleaseBreathSoundEvent(), SneezeSoundEvent(), StaminaDownHeavy(), StaminaDownLight(), StaminaLowFilterMid(), StaminaLowFilterUpper(), StaminaNormalDummy(), StaminaUpEnd(), StaminaUpHeavy(), StaminaUpLight(), and ThirstSoundEvent().
Referenced by ManBase::GetPlayerSoundEventHandler(), and ManBase::OnPlayerLoaded().
| override bool PlayRequest | ( | EPlayerSoundEventID | id, |
| bool | sent_from_server = false ) |
Definition at line 209 of file playersoundeventhandler.c.
References PlayRequestEx().
| override bool PlayRequestEx | ( | EPlayerSoundEventID | id, |
| bool | sent_from_server = false, | ||
| int | param = 0 ) |
Definition at line 148 of file playersoundeventhandler.c.
References PlayerSoundEventBase::CanPlay(), Error(), PlayerSoundEventBase::HasPriorityOverCurrent(), m_AvailableStates, m_CurrentState, and SOUND_EVENTS_MAX.
Referenced by PlayRequest().
| void RegisterState | ( | PlayerSoundEventBase | state | ) |
Definition at line 101 of file playersoundeventhandler.c.
References m_AvailableStates, and m_ConfigIDToScriptIDmapping.
Referenced by PlayerSoundEventHandler().
| override bool StopRequest | ( | EPlayerSoundEventID | id, |
| bool | sent_from_server = false, | ||
| int | param = 0 ) |
Definition at line 198 of file playersoundeventhandler.c.
References m_CurrentState.
|
static |
Definition at line 48 of file playersoundeventhandler.c.
Definition at line 49 of file playersoundeventhandler.c.
Referenced by ConvertAnimIDtoEventID(), and RegisterState().
| ref PlayerSoundEventBase m_CurrentState |
Definition at line 50 of file playersoundeventhandler.c.
| ref Timer m_UpdateTimer |
Definition at line 51 of file playersoundeventhandler.c.
| const int SOUND_EVENTS_MAX = EPlayerSoundEventID.ENUM_COUNT |
Definition at line 47 of file playersoundeventhandler.c.