-
Notifications
You must be signed in to change notification settings - Fork 740
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
Conversation
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 <[email protected]>
Drop unique id and merge classId and category
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? |
There was a problem hiding this 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
.
Co-Authored-By: PabstMirror <[email protected]>
|
||
private _data = (_namespace getVariable _setID) param [2, []]; | ||
|
||
switch (_op) do { | ||
case ("max"): { | ||
private _result = -1e99; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
* Medical - Transfer state machine state on locality * Fix feedback isUnconscious var * Exclude AI
* 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 <[email protected]> * 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 <[email protected]> * formating, rename bone images * Apply suggestions from code review Co-Authored-By: PabstMirror <[email protected]> * 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
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 1on splint it gets set to -1 to indicate splint
rough example of gui display
TODO: