Skip to content

Medical Core - Make second chance deactivation timeout configurable#289

Open
denispol wants to merge 2 commits intoacemod:medical/add-circulationfrom
denispol:medical/refactor-fall-damage
Open

Medical Core - Make second chance deactivation timeout configurable#289
denispol wants to merge 2 commits intoacemod:medical/add-circulationfrom
denispol:medical/refactor-fall-damage

Conversation

@denispol
Copy link

@denispol denispol commented Nov 1, 2025

This is a small opportunistic refactor I did while working on the second chance logic to improve configurability and code reuse.

When merged this pull request will:

  • Move the 1000ms Second Chance deactivation timeout from a hardcoded constant to a new setting (m_iSecondChanceDeactivationTimeoutMs).
  • Consolidate duplicated fall damage timestamp logic from HandleAnimatedFallDamage and HandleRagdollFallDamage into a new ACE_Medical_RecordFallDamageTime() helper method.

Requires:

@denispol denispol force-pushed the medical/refactor-fall-damage branch from cea4839 to a4698e6 Compare November 1, 2025 22:02
@denispol denispol force-pushed the medical/refactor-fall-damage branch from a4698e6 to 002924a Compare November 1, 2025 22:06
@Kexanone Kexanone self-requested a review November 2, 2025 16:59
@Kexanone Kexanone added kind/enhancement Release Notes: **IMPROVED:** status/blocked Waiting for dependency to be merged first labels Nov 3, 2025
@Kexanone Kexanone added this to the Backlog milestone Nov 3, 2025
@Kexanone Kexanone changed the title Medical - Make fall damage timeout configurable and push timeout logic to settings Medical Core - Make second chance deactivation timeout configurable Dec 7, 2025
@Kexanone Kexanone changed the base branch from medical/add-circulation to master December 7, 2025 02:41
@Kexanone Kexanone changed the base branch from master to medical/add-circulation December 7, 2025 02:41
@Kexanone
Copy link
Member

Kexanone commented Dec 7, 2025

Looks good, but this PR doesn't really need circulation as dependency, so could you instead fork from master and cherry-pick the changes there? Otherwise we won't be able to merge this to master until circulation got merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement Release Notes: **IMPROVED:** status/blocked Waiting for dependency to be merged first

2 participants