injuryevents.c 927 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. class InjurySoundEvents extends PlayerSoundEventBase
  2. {
  3. void InjurySoundEvents()
  4. {
  5. m_HasPriorityOverTypes = -1;//-1 for all
  6. m_Type = EPlayerSoundEventType.INJURY;
  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 InjuryLightSoundEvent extends InjurySoundEvents
  18. {
  19. void InjuryLightSoundEvent()
  20. {
  21. m_ID = EPlayerSoundEventID.INJURED_LIGHT;
  22. m_SoundVoiceAnimEventClassID = 28;
  23. }
  24. }
  25. class InjuryMediumSoundEvent extends InjurySoundEvents
  26. {
  27. void InjuryMediumSoundEvent()
  28. {
  29. m_ID = EPlayerSoundEventID.INJURED_MEDIUM;
  30. m_SoundVoiceAnimEventClassID = 28;
  31. }
  32. }
  33. class InjuryHeavySoundEvent extends InjurySoundEvents
  34. {
  35. void InjuryHeavySoundEvent()
  36. {
  37. m_ID = EPlayerSoundEventID.INJURED_HIGH;
  38. m_SoundVoiceAnimEventClassID = 28;
  39. }
  40. }