DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnPlay()

void GetSoundEventType::OnPlay ( PlayerBase player)

!! beware of the ifdef above , most likely you want to put your code above it, otherwise it might not get executed !!!

См. определение в файле JumpEvents.c строка 50

51{
52 override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
53 {
54 return true;
55 }
56
57 override bool CanPlay(PlayerBase player)
58 {
59 if( !super.CanPlay(player) )
60 {
61 return false;
62 }
63 return true;
64 }
65
66 override void OnPlay(PlayerBase player)
67 {
68 super.OnPlay(player);
69 if( player.CanSpawnBreathVaporEffect() )
70 player.SpawnBreathVaporEffect();
71 }
72
73 override void OnEnd()
74 {
75 super.OnEnd();
76 //m_Player.GetStaminaSoundHandlerClient().PostponeStamina(1000);
77 if(m_Player)
78 StaminaSoundHandlerClient.Cast(m_Player.m_PlayerSoundManagerClient.GetHandler(eSoundHandlers.STAMINA)).PostponeStamina(1300);
79 }
80}
81
82class JumpSoundEvent extends JumpEventsBase
83{
84 void JumpSoundEvent()
85 {
86 m_HasPriorityOverTypes = -1;//-1 for all
90 }
91}
eBleedingSourceType m_Type
Определения BleedingSource.c:25
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Определения Effect.c:49
DayZPlayer m_Player
Определения Hand_Events.c:42
override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
Определения JumpEvents.c:36
class JumpEventsBase extends PlayerSoundEventBase JumpSoundEvent()
Определения JumpEvents.c:35
override void OnEnd()
Определения JumpEvents.c:57
override bool CanPlay()
Определения MindStates.c:16
EPlayerSoundEventType
Определения PlayerSoundEventBase.c:2
EPlayerSoundEventType m_HasPriorityOverTypes
Определения PlayerSoundEventBase.c:40
EPlayerSoundEventID
Определения PlayerSoundEventHandler.c:3
eSoundHandlers
Определения PlayerSoundManager.c:5
int m_SoundVoiceAnimEventClassID
Определения SoundEvents.c:89
Определения PlayerBaseClient.c:2
void OnPlay()
Определения Sound.c:206