DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл MeleeAttack.c

См. исходные тексты.

Структуры данных

class  PlayerSoundEventBase
 
class  MeleeAttackSoundEvents
 

Функции

class MeleeAttackSoundEvents extends PlayerSoundEventBase MeleeAttackLightEvent ()
 
void MeleeAttackSoundEvents ()
 
override bool CanPlay (PlayerBase player)
 
override bool HasPriorityOverCurrent (PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
 
override void OnEnd ()
 

Функции

◆ CanPlay()

override bool CanPlay ( PlayerBase player)
41{
42 void MeleeAttackHeavyEvent()
43 {

◆ HasPriorityOverCurrent()

override bool HasPriorityOverCurrent ( PlayerBase player,
EPlayerSoundEventID other_state_id,
EPlayerSoundEventType type_other )

◆ MeleeAttackLightEvent()

34 {
35 m_ID = EPlayerSoundEventID.MELEE_ATTACK_LIGHT;
37 }
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition Effect.c:49
EPlayerSoundEventID
Definition PlayerSoundEventHandler.c:2
int m_SoundVoiceAnimEventClassID
Definition SoundEvents.c:89

Используется в PlayerSoundEventHandler().

◆ MeleeAttackSoundEvents()

void MeleeAttackSoundEvents ( )
34 {
35 m_ID = EPlayerSoundEventID.MELEE_ATTACK_LIGHT;
37 }
38}

Перекрестные ссылки m_ID и m_SoundVoiceAnimEventClassID.

◆ OnEnd()

override void OnEnd ( )
55{
57 {
60 }
61
62 override bool CanPlay(PlayerBase player)
63 {
64 return true;
65 }
66
68 {
69 if( type_other == EPlayerSoundEventType.DAMAGE )
70 {
71 return false;
72 }
73 return true;
74 }
75
76 override void OnEnd()
77 {
78 super.OnEnd();
79 if(m_Player)
80 StaminaSoundHandlerClient.Cast(m_Player.m_PlayerSoundManagerClient.GetHandler(eSoundHandlers.STAMINA)).PostponeStamina(800);
81 }
82}
83
85{
87 {
88 m_ID = EPlayerSoundEventID.MELEE_ATTACK_LIGHT;
90 }
91}
92
93class MeleeAttackHeavyEvent extends MeleeAttackSoundEvents
94{
96 {
97 m_ID = EPlayerSoundEventID.MELEE_ATTACK_HEAVY;
99 }
100
101}
class DynamicMusicLocationTypes m_Type
DayZPlayer m_Player
Definition Hand_Events.c:42
override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
Definition MeleeAttack.c:45
class MeleeAttackSoundEvents extends PlayerSoundEventBase MeleeAttackLightEvent()
Definition MeleeAttack.c:33
void MeleeAttackSoundEvents()
Definition MeleeAttack.c:34
override void OnEnd()
Definition MeleeAttack.c:54
override bool CanPlay()
Definition MindStates.c:16
EPlayerSoundEventType
Definition PlayerSoundEventBase.c:2
EPlayerSoundEventType m_HasPriorityOverTypes
Definition PlayerSoundEventBase.c:40
eSoundHandlers
Definition PlayerSoundManager.c:5
Definition MeleeAttack.c:41
void MeleeAttackHeavyEvent()
Definition MeleeAttack.c:42
Definition EntityAI.c:95
Definition PlayerBaseClient.c:2