From b82685aa0e836bb317d5d34ad5c4316af8ab3a96 Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Tue, 29 Oct 2024 22:41:21 +0100 Subject: [PATCH] Remove UpdateBreathStatus --- Fika.Core/Coop/Players/ObservedCoopPlayer.cs | 40 -------------------- 1 file changed, 40 deletions(-) diff --git a/Fika.Core/Coop/Players/ObservedCoopPlayer.cs b/Fika.Core/Coop/Players/ObservedCoopPlayer.cs index 24f846ff..068f3d4d 100644 --- a/Fika.Core/Coop/Players/ObservedCoopPlayer.cs +++ b/Fika.Core/Coop/Players/ObservedCoopPlayer.cs @@ -308,46 +308,6 @@ public override void ApplyHitDebuff(float damage, float staminaBurnRate, EBodyPa } } - public override void UpdateBreathStatus() - { - if (HealthController == null || Speaker == null) - { - return; - } - - ETagStatus healthStatus = HealthStatus; - bool isDying; - if (healthStatus != ETagStatus.BadlyInjured && healthStatus != ETagStatus.Dying) - { - isDying = false; - } - else - { - // Check for GClass increments - isDying = HealthController != null && HealthController.FindActiveEffect(EBodyPart.Common) == null; - } - - bool isAudible = Physical != null && Physical.BreathIsAudible; - bool shouldHeavyBreathe = isAudible || Muffled; - if (gameObject.activeSelf && !HeavyBreath && shouldHeavyBreathe) - { - ETagStatus status1 = isDying ? healthStatus : ETagStatus.Healthy; - ETagStatus status2 = isAudible ? ETagStatus.Aware : ETagStatus.Unaware; - if (Speaker != null) - { - if (status1 == ETagStatus.Healthy && status2 == ETagStatus.Unaware) - { - Speaker.Play(EPhraseTrigger.OnBreath, status1 | status2, true, new int?(-1)); - } - else - { - Speaker.Play(EPhraseTrigger.OnBreath, status1 | status2, true, null); - } - } - } - HeavyBreath = shouldHeavyBreathe; - } - public void HandleExplosive(DamageInfo damageInfo, EBodyPart bodyPartType, EBodyPartColliderType colliderType) { if (HealthController.DamageCoeff == 0)