Skip to content

Commit

Permalink
Remove UpdateBreathStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Oct 29, 2024
1 parent cd0e2fb commit b82685a
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions Fika.Core/Coop/Players/ObservedCoopPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<GInterface309>(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)
Expand Down

0 comments on commit b82685a

Please sign in to comment.