drowningevents.c 731 B

123456789101112131415161718192021222324252627282930313233343536
  1. class DrowningSoundEventBase extends PlayerSoundEventBase
  2. {
  3. void DrowningEvents()
  4. {
  5. m_HasPriorityOverTypes = -1;//-1 for all
  6. m_Type = EPlayerSoundEventType.DROWNING;
  7. }
  8. override bool CanPlay(PlayerBase player)
  9. {
  10. return true;
  11. }
  12. override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id,EPlayerSoundEventType type_other )
  13. {
  14. return true;
  15. }
  16. }
  17. class DrowningEvent1 extends DrowningSoundEventBase
  18. {
  19. void DrowningEvent1()
  20. {
  21. m_ID = EPlayerSoundEventID.DROWNING_BREATH;
  22. m_SoundVoiceAnimEventClassID = 901;
  23. }
  24. }
  25. class DrowningEvent2 extends DrowningSoundEventBase
  26. {
  27. void DrowningEvent2()
  28. {
  29. m_ID = EPlayerSoundEventID.DROWNING_PAIN;
  30. m_SoundVoiceAnimEventClassID = 900;
  31. }
  32. }