123456789101112131415161718192021222324252627282930313233343536373839404142 |
- class JumpEventsBase extends PlayerSoundEventBase
- {
- override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
- {
- return true;
- }
-
- override bool CanPlay(PlayerBase player)
- {
- if( !super.CanPlay(player) )
- {
- return false;
- }
- return true;
- }
-
- override void OnPlay(PlayerBase player)
- {
- super.OnPlay(player);
- if( player.CanSpawnBreathVaporEffect() )
- player.SpawnBreathVaporEffect();
- }
-
- override void OnEnd()
- {
- super.OnEnd();
- //m_Player.GetStaminaSoundHandlerClient().PostponeStamina(1000);
- if(m_Player)
- StaminaSoundHandlerClient.Cast(m_Player.m_PlayerSoundManagerClient.GetHandler(eSoundHandlers.STAMINA)).PostponeStamina(1300);
- }
- }
- class JumpSoundEvent extends JumpEventsBase
- {
- void JumpSoundEvent()
- {
- m_HasPriorityOverTypes = -1;//-1 for all
- m_Type = EPlayerSoundEventType.GENERAL;
- m_ID = EPlayerSoundEventID.JUMP;
- m_SoundVoiceAnimEventClassID = 18;
- }
- }
|