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 Treatment - Modernize and Cleanup #6933

Merged
merged 51 commits into from
Jun 3, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
0155c43
Modernize and cleanup medical_treatment
mharis001 Apr 11, 2019
e5fb289
Merge branch 'master' into medical-treatment-work
mharis001 Apr 11, 2019
1acfff8
One line for each old public function
mharis001 Apr 11, 2019
b4f9196
Fix litterCleanupDelay name
mharis001 Apr 13, 2019
92d13fc
Improve adjustment calcs / wound blood loss / medications
PabstMirror Mar 31, 2019
8da089d
Change wound data array
PabstMirror Apr 16, 2019
ad3f0fd
Splinting and treatment and gui
PabstMirror Apr 17, 2019
80aa05e
Add arm fractures and aim effects
PabstMirror Apr 24, 2019
da68764
localizations and event
PabstMirror Apr 26, 2019
2e897e8
fix
PabstMirror Apr 26, 2019
8a29957
Merge branch 'limping' into medical-treatment-work-rebaseLimping
PabstMirror Apr 26, 2019
93d3fd5
fix merge for renamed files
PabstMirror Apr 26, 2019
e57a6fb
Fixes and code review changes
mharis001 Apr 26, 2019
9fa0b8b
Move medical logs clearing to treatment
mharis001 Apr 26, 2019
5db1a86
More cleanup work
mharis001 Apr 26, 2019
338772b
cleanup
PabstMirror Apr 27, 2019
9fe16f8
Apply suggestions from code review
mharis001 Apr 27, 2019
fe07ea0
formating, rename bone images
PabstMirror Apr 27, 2019
65601b4
Merge branch 'limping' of https://github.com/acemod/ACE3 into limping
PabstMirror Apr 27, 2019
7b64150
Merge branch 'master' into medical-treatment-work
PabstMirror Apr 27, 2019
6e71338
Fix args for setDead call in actionPlaceInBodyBag
PabstMirror Apr 27, 2019
94afb63
Merge branch 'master' into limping
PabstMirror Apr 27, 2019
796d71c
Apply suggestions from code review
mharis001 Apr 27, 2019
1c4ee3e
disable calls to extension
PabstMirror Apr 30, 2019
6d1eb91
Update fnc_onMedicationUsage.sqf
PabstMirror May 2, 2019
a23b22a
Medical - Skip unneeded setVars on initUnit (#6949)
PabstMirror May 7, 2019
cdd1de0
Medical - Transfer state machine state on locality (#6950)
PabstMirror May 7, 2019
641f3f8
Merge branch 'master' into limping
PabstMirror May 7, 2019
82bbb96
Make UAV excludes consistant, formating
PabstMirror May 7, 2019
e36bab3
Update fnc_treatmentFullHealLocal.sqf
PabstMirror May 11, 2019
615420a
Merge branch 'limping' into medical-treatment-work
PabstMirror May 12, 2019
6c1cc93
reset fractures on respawn
PabstMirror May 12, 2019
c924000
Merge branch 'limping' into medical-treatment-work
PabstMirror May 12, 2019
482c0c7
Merge branch 'master' into medical-treatment-work
PabstMirror May 12, 2019
50caca9
Merge branch 'master' into medical-treatment-work
PabstMirror May 12, 2019
f9d64d4
Fix merge
PabstMirror May 12, 2019
ab6714c
Add PAK time coefficient setting
mharis001 May 12, 2019
7355916
Fix medication
PabstMirror May 12, 2019
9af310a
Add ace_medical_replacementItems config array
mharis001 May 12, 2019
4fe4598
checkItems performance improvement
mharis001 May 12, 2019
bf1b6c9
Treatment - cap max animation speed (#6995)
PabstMirror May 12, 2019
d9fee5f
Move replacementItems compiling to preInit
mharis001 May 12, 2019
003388c
Improve replacementItems compiling
mharis001 May 13, 2019
84fa731
Cleanup splint functions, use macros for fractures
mharis001 May 26, 2019
92d7145
Rename splintCondition to canSplint
mharis001 May 26, 2019
aed68ae
Add cprCreatesPulse setting
mharis001 May 26, 2019
0a49847
Cleanup remaining functions
mharis001 May 28, 2019
cdd88de
Capitalize stringtable entry names
mharis001 May 28, 2019
3f56037
getStitchTime function and fix treatment locations
mharis001 May 28, 2019
7caefea
Update addons/medical_treatment/functions/fnc_getHealTime.sqf
mharis001 May 28, 2019
ebdcc30
Merge branch 'master' into medical-treatment-work
PabstMirror Jun 3, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/common/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@
<Korean>기본</Korean>
</Key>
<Key ID="STR_ACE_Common_Vehicle">
<English>Medical vehicles</English>
<English>Medical Vehicles</English>
<Russian>В медицинском транспорте</Russian>
<Polish>Pojazdy medyczne</Polish>
<Spanish>Vehiculos médicos</Spanish>
Expand Down
3 changes: 1 addition & 2 deletions addons/medical/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ PREP_RECOMPILE_END;
// Add warning for old functions that were technically public, Remove at 3.14.0
{
missionNamespace setVariable [_x, compileFinal format ['diag_log text "ACE Medical WARNING: Formerly public function [%1] has no effect in medical rewrite."; nil', _x]];
} forEach ["ace_medical_fnc_actionPlaceInBodyBag","ace_medical_fnc_actionRemoveTourniquet","ace_medical_fnc_addHeartRateAdjustment","ace_medical_fnc_addToLog","ace_medical_fnc_addToTriageCard
","ace_medical_fnc_addUnconsciousCondition","ace_medical_fnc_addVitalLoop","ace_medical_fnc_canAccessMedicalEquipment","ace_medical_fnc_canTreat","ace_medical_fnc_displayTriageCard","ace_medical_fnc_dropDownTriageCard","ace_medical_fnc_getTriageStatus","ace_medical_fnc_getUnconsciousCondition","ace_medical_fnc_hasItem","ace_medical_fnc_hasItems","ace_medical_fnc_hasTourniquetAppliedTo","ace_medical_fnc_isInMedicalFacility","ace_medical_fnc_isInMedicalVehicle","ace_medical_fnc_isMedic","ace_medical_fnc_isMedicalVehicle","ace_medical_fnc_itemCheck","ace_medical_fnc_selectionNameToNumber","ace_medical_fnc_setCardiacArrest","ace_medical_fnc_setDead","ace_medical_fnc_setHitPointDamage","ace_medical_fnc_showBloodEffect","ace_medical_fnc_treatment","ace_medical_fnc_treatmentAdvanced_bandage","ace_medical_fnc_treatmentAdvanced_CPR","ace_medical_fnc_treatmentAdvanced_CPRLocal","ace_medical_fnc_treatmentAdvanced_medication","ace_medical_fnc_treatmentAdvanced_medicationLocal","ace_medical_fnc_treatmentIV","ace_medical_fnc_treatmentIVLocal","ace_medical_fnc_unconsciousPFH","ace_medical_fnc_useItem","ace_medical_fnc_useItems"];
} forEach ["ace_medical_fnc_actionPlaceInBodyBag","ace_medical_fnc_actionRemoveTourniquet","ace_medical_fnc_addHeartRateAdjustment","ace_medical_fnc_addToLog","ace_medical_fnc_addToTriageCard","ace_medical_fnc_addUnconsciousCondition","ace_medical_fnc_addVitalLoop","ace_medical_fnc_canAccessMedicalEquipment","ace_medical_fnc_canTreat","ace_medical_fnc_displayTriageCard","ace_medical_fnc_dropDownTriageCard","ace_medical_fnc_getTriageStatus","ace_medical_fnc_getUnconsciousCondition","ace_medical_fnc_hasItem","ace_medical_fnc_hasItems","ace_medical_fnc_hasTourniquetAppliedTo","ace_medical_fnc_isInMedicalFacility","ace_medical_fnc_isInMedicalVehicle","ace_medical_fnc_isMedic","ace_medical_fnc_isMedicalVehicle","ace_medical_fnc_itemCheck","ace_medical_fnc_selectionNameToNumber","ace_medical_fnc_setCardiacArrest","ace_medical_fnc_setDead","ace_medical_fnc_setHitPointDamage","ace_medical_fnc_showBloodEffect","ace_medical_fnc_treatment","ace_medical_fnc_treatmentAdvanced_bandage","ace_medical_fnc_treatmentAdvanced_CPR","ace_medical_fnc_treatmentAdvanced_CPRLocal","ace_medical_fnc_treatmentAdvanced_medication","ace_medical_fnc_treatmentAdvanced_medicationLocal","ace_medical_fnc_treatmentIV","ace_medical_fnc_treatmentIVLocal","ace_medical_fnc_unconsciousPFH","ace_medical_fnc_useItem","ace_medical_fnc_useItems"];
kymckay marked this conversation as resolved.
Show resolved Hide resolved

ADDON = true;
2 changes: 1 addition & 1 deletion addons/medical/initSettings.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// CBA Settings [ADDON: ace_medical]:

private _categoryArray = [LELSTRING(medical,Category_DisplayName), "?"];
private _categoryArray = [LELSTRING(medical,Category), "?"];

// todo: Check the description is still accurate
[
Expand Down
2 changes: 1 addition & 1 deletion addons/medical/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define COMPONENT_BEAUTIFIED Medical Core
#include "\z\ace\addons\main\script_mod.hpp"

// #define DEBUG_MODE_FULL
#define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define ENABLE_PERFORMANCE_COUNTERS

Expand Down
2 changes: 1 addition & 1 deletion addons/medical/stringtable.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project name="ACE">
<Package name="Medical">
<Key ID="STR_ACE_Medical_Category_DisplayName">
<Key ID="STR_ACE_Medical_Category">
<English>ACE Medical</English>
<Russian>ACE: медицина</Russian>
<Polish>ACE Opcje medyczne</Polish>
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_ai/functions/fnc_playTreatmentAnim.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private _animConfig = if (_isBandage) then {
configFile >> "ACE_Medical_Actions" >> "Basic" >> "Morphine";
};

private _configProperty = "animationCaller";
private _configProperty = "animationMedic";
if (_isSelfTreatment) then {
_configProperty = _configProperty + "Self";
};
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_blood/initSettings.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// CBA Settings [ADDON: ace_medical_blood]:

private _categoryArray = [LELSTRING(medical,Category_DisplayName), LLSTRING(subCategory)];
private _categoryArray = [LELSTRING(medical,Category), LLSTRING(subCategory)];

[
QGVAR(enabledFor), "LIST",
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_damage/initSettings.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// CBA Settings [ADDON: ace_medical_damage]:

private _categoryArray = [LELSTRING(medical,Category_DisplayName), LLSTRING(subCategory)];
private _categoryArray = [LELSTRING(medical,Category), LLSTRING(subCategory)];

[
QEGVAR(medical,playerDamageThreshold), "SLIDER",
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_feedback/initSettings.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// CBA Settings [ADDON: ace_medical_feedback]:

private _categoryArray = [LELSTRING(medical,Category_DisplayName), LLSTRING(subCategory)];
private _categoryArray = [LELSTRING(medical,Category), LLSTRING(subCategory)];

[
QGVAR(painEffectType),
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_gui/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class CfgVehicles {
#include "InteractionBodyParts.hpp"
#undef ACTION_CONDITION
};
class ACE_LoadPatient {
class ACE_LoadPatient {
displayName = CSTRING(LoadPatient);
condition = QUOTE(_target getVariable [ARR_2('ACE_isUnconscious',false)] && {alive _target} && {vehicle _target == _target});
exceptions[] = {"isNotDragging", "isNotCarrying"};
Expand Down
10 changes: 5 additions & 5 deletions addons/medical_gui/initSettings.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
QGVAR(enableActions),
"LIST",
[LSTRING(EnableActions_DisplayName), LSTRING(EnableActions_Description)],
LSTRING(Category),
[ELSTRING(medical,Category), LSTRING(SubCategory)],
[[0, 1, 2], [LSTRING(Selections3D), LSTRING(Radial), ELSTRING(common,Disabled)], 0],
false
] call CBA_settings_fnc_init;
Expand All @@ -11,7 +11,7 @@
QGVAR(enableSelfActions),
"CHECKBOX",
[LSTRING(EnableSelfActions_DisplayName), LSTRING(EnableSelfActions_Description)],
LSTRING(Category),
[ELSTRING(medical,Category), LSTRING(SubCategory)],
true,
false
] call CBA_settings_fnc_init;
Expand All @@ -20,7 +20,7 @@
QGVAR(enableMedicalMenu),
"LIST",
[LSTRING(EnableMedicalMenu_DisplayName), LSTRING(EnableMedicalMenu_Description)],
LSTRING(Category),
[ELSTRING(medical,Category), LSTRING(SubCategory)],
[[0, 1, 2], [ELSTRING(common,Disabled), ELSTRING(common,Enabled), ELSTRING(common,VehiclesOnly)], 1],
false
] call CBA_settings_fnc_init;
Expand All @@ -29,7 +29,7 @@
QGVAR(openAfterTreatment),
"CHECKBOX",
[LSTRING(OpenAfterTreatment_DisplayName), LSTRING(OpenAfterTreatment_Description)],
LSTRING(Category),
[ELSTRING(medical,Category), LSTRING(SubCategory)],
true,
false
] call CBA_settings_fnc_init;
Expand All @@ -38,7 +38,7 @@
QGVAR(maxDistance),
"SLIDER",
[LSTRING(MaxDistance_DisplayName), LSTRING(MaxDistance_Description)],
LSTRING(Category),
[ELSTRING(medical,Category), LSTRING(SubCategory)],
[0, 10, 3, 1],
false
] call CBA_settings_fnc_init;
4 changes: 2 additions & 2 deletions addons/medical_gui/stringtable.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project name="ACE">
<Package name="Medical GUI">
<Key ID="STR_ACE_Medical_GUI_Category">
<English>ACE Medical GUI</English>
<Key ID="STR_ACE_Medical_GUI_SubCategory">
<English>GUI</English>
</Key>
<Key ID="STR_ACE_Medical_GUI_EnableActions_DisplayName">
<English>Enable Medical Actions</English>
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_statemachine/initSettings.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// CBA Settings [ADDON: ace_medical_statemachine]:

private _categoryArray = [LELSTRING(medical,Category_DisplayName), LLSTRING(subCategory)];
private _categoryArray = [LELSTRING(medical,Category), LLSTRING(subCategory)];

[
QGVAR(fatalInjuryCondition), "LIST",
Expand Down
2 changes: 1 addition & 1 deletion addons/medical_status/initSettings.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// CBA Settings [ADDON: ace_medical_status]:

private _categoryArray = [LELSTRING(medical,Category_DisplayName), LLSTRING(subCategory)];
private _categoryArray = [LELSTRING(medical,Category), LLSTRING(subCategory)];

[
QEGVAR(medical,bleedingCoefficient), "SLIDER",
Expand Down
10 changes: 5 additions & 5 deletions addons/medical_treatment/ACE_Medical_Treatment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ class ADDON {
timeInSystem = 1800;
timeTillMaxEffect = 30;
maxDose = 4;
inCompatableMedication[] = {};
incompatableMedication[] = {};
mharis001 marked this conversation as resolved.
Show resolved Hide resolved
viscosityChange = -10;
};
class Epinephrine {
Expand All @@ -593,7 +593,7 @@ class ADDON {
timeInSystem = 120;
timeTillMaxEffect = 10;
maxDose = 10;
inCompatableMedication[] = {};
incompatableMedication[] = {};
};
class Adenosine {
painReduce = 0;
Expand All @@ -603,7 +603,7 @@ class ADDON {
timeInSystem = 120;
timeTillMaxEffect = 15;
maxDose = 6;
inCompatableMedication[] = {};
incompatableMedication[] = {};
};
class Atropine {
painReduce = 0;
Expand All @@ -613,14 +613,14 @@ class ADDON {
timeInSystem = 120;
timeTillMaxEffect = 15;
maxDose = 6;
inCompatableMedication[] = {};
incompatableMedication[] = {};
};
class PainKillers {
painReduce = 0.1;
timeInSystem = 600;
timeTillMaxEffect = 60;
maxDose = 10;
inCompatableMedication[] = {};
incompatableMedication[] = {};
viscosityChange = 5;
};
};
Expand Down
Loading