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

Pharma - Disable Painkiller stacking #459

Conversation

Cplhardcore
Copy link
Contributor

When merged this pull request will:
Add the ability to prevent painkillers pain suppression from stacking, requiring the need for higher level painkillers to be used

  • Describe what this pull request will do
    It adds a CBA setting to enable the stacking effect or disable it along with edits to fnc_treatmentAdvanced_Painkillers.sqf
  • Each change in a separate line

Will need localization

IMPORTANT

  • Development Guidelines are read, understood and applied.
  • Title of this PR uses our standard template Component - Add|Fix|Improve|Change|Make|Remove {changes}.

@@ -21,9 +21,10 @@
*/

params ["_medic", "_patient", "_bodyPart", "_classname", "", "_usedItem"];
private _count1 = [_patient, "Painkillers"] call ACEFUNC(medical_status,getMedicationCount);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would rename it personally, count1 is not good name

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed to painkillerscount

@Cplhardcore
Copy link
Contributor Author

Small issue i realized, if you take a painkiller while you have the effects of a previous dose in your system, the pain suppression will run out and not be replenished

@MiszczuZPolski MiszczuZPolski changed the title Disable Painkiller stacking Pharma - Disable Painkiller stacking Dec 28, 2023
@MiszczuZPolski MiszczuZPolski added this to the 2.14.0 milestone Dec 28, 2023
@MiszczuZPolski MiszczuZPolski added the kind/feature request Release Notes: **ADDED:** label Dec 28, 2023
@Cplhardcore
Copy link
Contributor Author

Closing this as there is no current way to add time onto an already active pain suppression source without it stacking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature request Release Notes: **ADDED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants