deafnesscomplete.c 657 B

1234567891011121314151617181920212223242526
  1. class DeafnessCompleteSymptom : SymptomBase
  2. {
  3. override void OnInit()
  4. {
  5. m_SymptomType = SymptomTypes.SECONDARY;
  6. m_Priority = 0;
  7. m_ID = SymptomIDs.SYMPTOM_DEAFNESS_COMPLETE;
  8. m_IsPersistent = false;
  9. m_MaxCount = 1;
  10. m_SyncToClient = true;
  11. m_DestroyOnAnimFinish = true;
  12. }
  13. override void OnGetActivatedClient(PlayerBase player)
  14. {
  15. //m_Player.SetMasterAttenuation("DeafnessCompleteAttenuation");
  16. m_Player.SetMasterAttenuation("FlashbangAttenuation");
  17. }
  18. //!only gets called once on an active Symptom that is being deactivated
  19. override void OnGetDeactivatedClient(PlayerBase player)
  20. {
  21. m_Player.SetMasterAttenuation("");
  22. }
  23. }