DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
MeleeAttack.c
См. документацию.
1
class
MeleeAttackSoundEvents
extends
PlayerSoundEventBase
2
{
3
void
MeleeAttackSoundEvents
()
4
{
5
m_Type
=
EPlayerSoundEventType
.MELEE;
6
m_HasPriorityOverTypes
= -1;
7
}
8
9
override
bool
CanPlay
(
PlayerBase
player)
10
{
11
return
true
;
12
}
13
14
override
bool
HasPriorityOverCurrent
(
PlayerBase
player,
EPlayerSoundEventID
other_state_id,
EPlayerSoundEventType
type_other)
15
{
16
if
( type_other ==
EPlayerSoundEventType
.DAMAGE )
17
{
18
return
false
;
19
}
20
return
true
;
21
}
22
23
override
void
OnEnd
()
24
{
25
super.OnEnd();
26
if
(
m_Player
)
27
StaminaSoundHandlerClient.Cast(
m_Player
.m_PlayerSoundManagerClient.GetHandler(
eSoundHandlers
.STAMINA)).PostponeStamina(800);
28
}
29
}
30
31
class
MeleeAttackLightEvent
extends
MeleeAttackSoundEvents
32
{
33
void
MeleeAttackLightEvent
()
34
{
35
m_ID
=
EPlayerSoundEventID
.MELEE_ATTACK_LIGHT;
36
m_SoundVoiceAnimEventClassID
= 16;
37
}
38
}
39
40
class
MeleeAttackHeavyEvent
extends
MeleeAttackSoundEvents
41
{
42
void
MeleeAttackHeavyEvent
()
43
{
44
m_ID
=
EPlayerSoundEventID
.MELEE_ATTACK_HEAVY;
45
m_SoundVoiceAnimEventClassID
= 17;
46
}
47
48
}
m_Type
eBleedingSourceType m_Type
Определения
BleedingSource.c:25
m_ID
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Определения
Effect.c:49
m_Player
DayZPlayer m_Player
Определения
Hand_Events.c:42
MeleeAttackLightEvent
class MeleeAttackSoundEvents extends PlayerSoundEventBase MeleeAttackLightEvent()
Определения
MeleeAttack.c:33
EPlayerSoundEventType
EPlayerSoundEventType
Определения
PlayerSoundEventBase.c:2
m_HasPriorityOverTypes
EPlayerSoundEventType m_HasPriorityOverTypes
Определения
PlayerSoundEventBase.c:40
EPlayerSoundEventID
EPlayerSoundEventID
Определения
PlayerSoundEventHandler.c:3
eSoundHandlers
eSoundHandlers
Определения
PlayerSoundManager.c:5
m_SoundVoiceAnimEventClassID
int m_SoundVoiceAnimEventClassID
Определения
SoundEvents.c:89
MeleeAttackSoundEvents::MeleeAttackHeavyEvent
void MeleeAttackHeavyEvent()
Определения
MeleeAttack.c:42
MeleeAttackSoundEvents
Определения
MeleeAttack.c:41
PlayerBase
Определения
PlayerBaseClient.c:2
PlayerSoundEventBase::OnEnd
override void OnEnd()
Определения
MeleeAttack.c:23
PlayerSoundEventBase::HasPriorityOverCurrent
override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
Определения
MeleeAttack.c:14
PlayerSoundEventBase::CanPlay
override bool CanPlay(PlayerBase player)
Определения
MeleeAttack.c:9
PlayerSoundEventBase::MeleeAttackSoundEvents
void MeleeAttackSoundEvents()
Определения
MeleeAttack.c:3
PlayerSoundEventBase
Определения
DamageEvents.c:2
Ishodniki
scripts
4_World
Classes
SoundEvents
PlayerSoundEvents
Events
MeleeAttack.c
Создано системой
1.13.2