damageevents.c 752 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. class DamageSoundEvents extends PlayerSoundEventBase
  2. {
  3. void DamageSoundEvents()
  4. {
  5. m_HasPriorityOverTypes = -1;//-1 for all
  6. m_Type = EPlayerSoundEventType.DAMAGE;
  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 DamageLightSoundEvent extends DamageSoundEvents
  18. {
  19. void DamageLightSoundEvent()
  20. {
  21. m_ID = EPlayerSoundEventID.TAKING_DMG_LIGHT;
  22. m_SoundVoiceAnimEventClassID = 12;
  23. }
  24. }
  25. class DamageHeavySoundEvent extends DamageSoundEvents
  26. {
  27. void DamageHeavySoundEvent()
  28. {
  29. m_ID = EPlayerSoundEventID.TAKING_DMG_HEAVY;
  30. m_SoundVoiceAnimEventClassID = 13;
  31. }
  32. }