gasmask.c 363 B

1234567891011121314151617181920212223
  1. class GasMask extends MaskBase
  2. {
  3. override bool IsObstructingVoice()
  4. {
  5. return true;
  6. }
  7. override int GetVoiceEffect()
  8. {
  9. return VoiceEffectObstruction;
  10. }
  11. override void EEHealthLevelChanged(int oldLevel, int newLevel, string zone)
  12. {
  13. if (GetGame().IsServer())
  14. {
  15. if( newLevel == GameConstants.STATE_RUINED )
  16. {
  17. SetQuantity(0);
  18. }
  19. }
  20. }
  21. }