holdbreathevents.c 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. class HoldBreathSoundEventBase extends PlayerSoundEventBase
  2. {
  3. void HoldBreathSoundEventBase()
  4. {
  5. m_HasPriorityOverTypes = -1;
  6. }
  7. override bool HasHoldBreathException()
  8. {
  9. return true;
  10. }
  11. }
  12. class HoldBreathSoundEvent extends HoldBreathSoundEventBase
  13. {
  14. void HoldBreathSoundEvent()
  15. {
  16. m_Type = EPlayerSoundEventType.GENERAL;
  17. m_ID = EPlayerSoundEventID.HOLD_BREATH;
  18. m_SoundVoiceAnimEventClassID = 20;
  19. }
  20. override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
  21. {
  22. if (other_state_id == EPlayerSoundEventID.RELEASE_BREATH)
  23. {
  24. return false;
  25. }
  26. return true;
  27. }
  28. }
  29. class ExhaustedBreathSoundEvent extends HoldBreathSoundEventBase
  30. {
  31. void ExhaustedBreathSoundEvent()
  32. {
  33. m_Type = EPlayerSoundEventType.GENERAL;
  34. m_ID = EPlayerSoundEventID.EXHAUSTED_BREATH;
  35. m_SoundVoiceAnimEventClassID = 22;
  36. }
  37. override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
  38. {
  39. return false;
  40. }
  41. }
  42. class ReleaseBreathSoundEvent extends HoldBreathSoundEventBase
  43. {
  44. void ReleaseBreathSoundEvent()
  45. {
  46. m_Type = EPlayerSoundEventType.GENERAL;
  47. m_ID = EPlayerSoundEventID.RELEASE_BREATH;
  48. m_SoundVoiceAnimEventClassID = 21;
  49. }
  50. override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
  51. {
  52. if( other_state_id == EPlayerSoundEventID.HOLD_BREATH)
  53. {
  54. return false;
  55. }
  56. return true;
  57. }
  58. }