Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Medical Treatement- PAK revives people if they get downed after pak-ing timer starts #9793

Open
alexban01 opened this issue Feb 11, 2024 · 3 comments
Labels

Comments

@alexban01
Copy link
Contributor

Mods (complete and add to the following information):

  • Arma 3: 2.14
  • CBA: 3.16.1.231025
  • ACE3: 3.16.3

Description:
If you start pak-ing an unit and in the 10 seconds he goes unconscious but you're still pak-ing him he will wake up.

Steps to reproduce:
Follow [https://ace3.acemod.org/img/wiki/user/issue_flowchart.webp](this flowchart)!

  1. Hurt a unit
  2. Heal the unit
  3. Start using a PAK on the unit and have someone else shoot that unit until he goes unconscious

Expected behavior:
If he goes unconscious the pak timer should stop and the person should not wake up

Where did the issue occur?

  • Dedicated

Log Files:

  • I do not have log files for this

Additional context:
In order to PAK the code only checks if you can use a PAK right now, therefor unless the person dies you can fully heal him.

Screenshots:
Non applicable

@alexban01 alexban01 changed the title Medical Treatement- PAK revives people if they get downed after pak-ing starts Medical Treatement- PAK revives people if they get downed after pak-ing timer starts Feb 11, 2024
@BaerMitUmlaut
Copy link
Member

The PAK is applied at the end of the interaction, just like any other interaction, for example wheel changes.

@alexban01
Copy link
Contributor Author

Yes but currently the game checks if you can pak someone and starts the interaction, but doesn't check if you are actually supposed to be able to pak someone at the end. This allows you to fully revive someone who is downed as long as you start pak-ing him before he goes unconscious. This is indeed a rare occurrence but I thought I should report this as it probably affects a lot of other things as well.

@LinkIsGrim
Copy link
Contributor

All medical interactions (besides stitching) only check for their conditions, including distance to target, on interaction start.

It's an easy enough fix to add a conditionProgress field to treatment and have that be checked during the progress bar (or just check the regular condition constantly), but I think it'll be more annoying than anything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants