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

Limping / Splint Treatment #6947

Merged
merged 20 commits into from
May 12, 2019
Merged

Limping / Splint Treatment #6947

merged 20 commits into from
May 12, 2019

Conversation

PabstMirror
Copy link
Contributor

@PabstMirror PabstMirror commented Apr 18, 2019

based on PR #6910

I changed settings slightly to be two 3 option settings
Limping: "Disabled", "Limp on open wound", "Limp on open or bandaged wound"
Fractures: "Disabled", "Splints fully heal", "Splints heal (but cannot sprint)

On damage that can cause fracture we set fracture array [0,0,0,0,0,0] index to 1
on splint it gets set to -1 to indicate splint

rough example of gui display
20190418005651_1

TODO:

  • Localization
  • Item Model
  • Arm fractures?
  • Bone sound effect

fix func descriptions

Calc wound blood loss on events

reorder includes so scritpmacroMed has global effect

trivial optimization for getCardiacOutput

Fix var

Fix wounds not reopening (nil _category)

Fix surgical kit inherting canBandage conditional

debug hitpoints

Update ACE_Medical_Treatment_Actions.hpp

Use woundBleeding for IS_BLEEDING macro

rework medication vars

comments

Reset var in init / fullHeal

Update addons/medical_treatment/functions/fnc_onMedicationUsage.sqf

Co-Authored-By: PabstMirror <pabstmirror@gmail.com>
Drop unique id and merge classId and category
@PabstMirror PabstMirror added the kind/enhancement Release Notes: **IMPROVED:** label Apr 18, 2019
@PabstMirror PabstMirror added this to the Medical Rewrite milestone Apr 18, 2019
@kymckay
Copy link
Member

kymckay commented Apr 24, 2019

From what I can see fracture isn't directly influencing pain levels, is that something we want to implement or is the pain from the wound itself enough?

@PabstMirror PabstMirror changed the title WIP: Limping / Splints Limping / Splint Treatment Apr 26, 2019
Copy link
Member

@mharis001 mharis001 left a comment

Choose a reason for hiding this comment

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

Some formatting changes. Also consider changing the bone image file names from: arm_right_boner.paa to arm_right_bone.paa .

addons/medical_gui/functions/fnc_updateInjuryList.sqf Outdated Show resolved Hide resolved
addons/medical_gui/functions/fnc_updateBodyImage.sqf Outdated Show resolved Hide resolved
addons/medical/dev/watchVariable.sqf Outdated Show resolved Hide resolved
@PabstMirror PabstMirror changed the base branch from vitalsWork to master April 27, 2019 19:12
mharis001 and others added 2 commits April 27, 2019 14:50
Co-Authored-By: PabstMirror <pabstmirror@gmail.com>

private _data = (_namespace getVariable _setID) param [2, []];

switch (_op) do {
case ("max"): {
private _result = -1e99;
Copy link
Member

Choose a reason for hiding this comment

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

If data ends up empty, can this cause issues in other scripts? Would it be better to initialise to another value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is called relatively often, I think it's better to leave out the safety checks and just assume the user has added at least one entry.
The only real change I made in this func is moving "max" to the top of the switch block as that's the only one we use so far

@PabstMirror PabstMirror merged commit e56cc0d into master May 12, 2019
@PabstMirror PabstMirror deleted the limping branch May 12, 2019 04:21
BaerMitUmlaut pushed a commit that referenced this pull request Aug 5, 2019
* Improve adjustment calcs / wound blood loss / medications

fix func descriptions

Calc wound blood loss on events

reorder includes so scritpmacroMed has global effect

trivial optimization for getCardiacOutput

Fix var

Fix wounds not reopening (nil _category)

Fix surgical kit inherting canBandage conditional

debug hitpoints

Update ACE_Medical_Treatment_Actions.hpp

Use woundBleeding for IS_BLEEDING macro

rework medication vars

comments

Reset var in init / fullHeal

Update addons/medical_treatment/functions/fnc_onMedicationUsage.sqf

Co-Authored-By: PabstMirror <pabstmirror@gmail.com>

* Change wound data array

Drop unique id and merge classId and category

* Splinting and treatment and gui

* Add arm fractures and aim effects

* localizations and event

* fix

* cleanup

* Apply suggestions from code review

Co-Authored-By: PabstMirror <pabstmirror@gmail.com>

* formating, rename bone images

* Apply suggestions from code review

Co-Authored-By: PabstMirror <pabstmirror@gmail.com>

* disable calls to extension

* Update fnc_onMedicationUsage.sqf

* Medical - Skip unneeded setVars on initUnit (#6949)

*  Medical - Transfer state machine state on locality (#6950)

* Medical - Transfer state machine state on locality

* Fix feedback isUnconscious var

* Exclude AI

* Make UAV excludes consistant, formating

* Update fnc_treatmentFullHealLocal.sqf

* reset fractures on respawn
@PabstMirror PabstMirror modified the milestones: Medical Rewrite, 3.13.0, 3.13.0-temp3 Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Release Notes: **IMPROVED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants