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 adjustments2 #2361

Merged
merged 85 commits into from
Sep 7, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
17115b8
test switch to adv medical handleDamage
thojkooi Aug 11, 2015
d09ca9e
Code Cleanup Medical Module (Part 1).
jokoho48 Aug 22, 2015
c2d9423
Code Cleanup Medical Module (Part 2).
jokoho48 Aug 22, 2015
21e0a9f
Merge branch 'master' of https://github.com/acemod/ACE3 into codeClea…
jokoho48 Aug 22, 2015
10127ed
Fix Typo
jokoho48 Aug 22, 2015
ff6c8a3
Code Cleanup Medical Module (Part 3).
jokoho48 Aug 22, 2015
2d4ef16
fix CTD
jokoho48 Aug 22, 2015
19dd551
Code Cleanup Medical Module (Part 4).
jokoho48 Aug 22, 2015
fab4c6a
fix Spelling Issues
jokoho48 Aug 22, 2015
260b048
some more Improvements
jokoho48 Aug 23, 2015
db96d42
Merge branch 'CodeCleanUpMedical' into medical-adjustments
thojkooi Aug 26, 2015
3acfc4d
Merge branch 'master' into medical-adjustments
thojkooi Aug 26, 2015
26ffcf4
Merge branch 'master' into medical-adjustments
thojkooi Aug 26, 2015
7a48f59
Merge branch 'basic-medical-test' into medical-adjustments
thojkooi Aug 26, 2015
0cfb492
Fixes and removal of duplicate code
thojkooi Aug 26, 2015
307afc0
Merge branch 'master' into medical-adjustments
thojkooi Aug 26, 2015
9488b6c
Merge branch 'master' into medical-adjustments
thojkooi Aug 26, 2015
604a33f
Merge branch 'master' into medical-adjustments
thojkooi Aug 26, 2015
d56f3ce
Added pain and unconsciousness handling for new basic medical code
thojkooi Aug 29, 2015
1c9e88f
fixes #1964
thojkooi Aug 29, 2015
1a4736e
Clean up
thojkooi Aug 29, 2015
1e08244
Removed debug output
thojkooi Aug 29, 2015
6796b31
Staged work on fixing updating base classes for hitpoints
thojkooi Aug 29, 2015
8916b70
Improve some Code
jokoho48 Aug 29, 2015
321ca81
semi-colon
PabstMirror Aug 29, 2015
183e872
Possible fix for #2298
thojkooi Aug 29, 2015
b291141
Should Be a better fix for #2298
thojkooi Aug 29, 2015
ce42f58
fix #2155
thojkooi Aug 29, 2015
602ef69
Allow diagnose on torso #1879
thojkooi Aug 29, 2015
2fd30ba
fixes #2274
thojkooi Aug 29, 2015
4bde554
Merge branch 'master' into medical-adjustments
thojkooi Aug 29, 2015
8c6f896
fixed script error when canceling treatment actions
thojkooi Aug 31, 2015
5a164c5
fix UBC issues, simplify uniform hitpoint config
commy2 Aug 31, 2015
9665f73
Merge branch 'master' of https://github.com/acemod/ACE3 into medical-…
commy2 Sep 2, 2015
dc5e6b7
Merge branch '323medicalstrcturaldamage' into medical-adjustments
commy2 Sep 2, 2015
7d2f1f5
remove protection, hitpoint config (fix ubc), some debug stuff
commy2 Sep 2, 2015
f939f92
stop flickering of wounds, fix #346
commy2 Sep 2, 2015
f38d245
fixed bloodloss for basic medical
thojkooi Sep 2, 2015
0436209
Merge branch 'master' of https://github.com/acemod/ACE3 into medical-…
commy2 Sep 3, 2015
a84be46
fix errors from cleanup
commy2 Sep 3, 2015
e753131
arms and legs to vulnerable, better scaling for pilots and csat
commy2 Sep 3, 2015
0bd92af
fix variables not inited, csat armor scaleing
commy2 Sep 3, 2015
6d28214
Add some debug values.
ViperMaul Sep 3, 2015
795b7a8
Merge branch 'medical-adjustments2' of https://github.com/acemod/ACE3…
commy2 Sep 3, 2015
b737f42
fix error when opening triage card
commy2 Sep 3, 2015
89b0c05
Fixed a debug statement.
ViperMaul Sep 3, 2015
813e54a
Fixing Debug for object variable hasPain
ViperMaul Sep 4, 2015
2bc2050
Adding more debug
ViperMaul Sep 4, 2015
bf26724
Adding same ADV special case to BASIC handle damage.
ViperMaul Sep 4, 2015
7f58d5a
Revert "Adding same ADV special case to BASIC handle damage." -Not Ne…
ViperMaul Sep 4, 2015
4c0c7bc
debug change
ViperMaul Sep 4, 2015
3d342ec
Fixes #2156 Animation is still played even if you cancel any treatment
thojkooi Sep 5, 2015
a25f640
fixes #2114 No CPR available in basic medical when revive is enabled
thojkooi Sep 5, 2015
df3dbc9
Removed deprecated fire handling
thojkooi Sep 5, 2015
cd9e5df
Clean up of handleDamage. Fixes some debug code
thojkooi Sep 5, 2015
4514812
Basic bandaging now works with new damage system
thojkooi Sep 5, 2015
39ff82e
fixes for CPR condition in basic medical and improvements to lethalDa…
thojkooi Sep 5, 2015
130569c
Made basic medical bleeding information work with new damage system
thojkooi Sep 5, 2015
85dc59d
Fixed: should only display "no injuries" when there are no injuries. …
thojkooi Sep 5, 2015
883b9ab
Removed blur screen for medical menu #2069
thojkooi Sep 5, 2015
e0db571
Minor adjustment to fatality change on torso damage
thojkooi Sep 5, 2015
4122b32
Removed deprecated wound sync code
thojkooi Sep 5, 2015
268220b
Possible fix for weird unconscious behavior in basic medical
thojkooi Sep 5, 2015
6b73eaf
Allow users to disable medical 3d interaction.
thojkooi Sep 5, 2015
25a75b9
fixed incorrect macro usage
thojkooi Sep 5, 2015
1764873
Removed more deprecated wound sync code
thojkooi Sep 5, 2015
c673ea2
Restored uniqueIds
thojkooi Sep 5, 2015
23d45c5
Merge branch 'master' into medical-adjustments2
thojkooi Sep 5, 2015
c70c9cd
Add Screen Blur and Blackout for Medical Menu by Interact_menu setting
jokoho48 Sep 5, 2015
c828544
Added init stacking
thojkooi Sep 5, 2015
d617fba
Merge branch 'master' into medical-adjustments2
thojkooi Sep 5, 2015
c8a7b94
Merge pull request #2363 from acemod/MedicalMenuBlackoutBlur
thojkooi Sep 5, 2015
9c0288c
Removed debug message
thojkooi Sep 5, 2015
17ad7ec
replaced diag_logs by trace
thojkooi Sep 5, 2015
a4e4066
Reduced initial knockdown time for basic medical
thojkooi Sep 5, 2015
f15a1c0
Added allowSelfTreatment attribute to treatment actions
thojkooi Sep 5, 2015
6405ef7
Merge branch 'master' into medical-adjustments2
thojkooi Sep 5, 2015
dad9682
Only add 1/4 of the new damage to pain instead of everything.
thojkooi Sep 5, 2015
d9af19d
properly fixes unconscious weird behavior. Because it never registere…
thojkooi Sep 5, 2015
e4c2469
Removed another debug trace that should not be there
thojkooi Sep 5, 2015
0a6b77b
Removed more deprecated wound sync code
thojkooi Sep 5, 2015
315f46c
Merge branch 'master' into medical-adjustments2
thojkooi Sep 5, 2015
98202f4
Additional debug statements for caching and wounds.
ViperMaul Sep 5, 2015
adb1a11
increase leg and arm armor value, more TRACE debug
commy2 Sep 6, 2015
2fc3533
Build number for Release Candidate
ViperMaul Sep 7, 2015
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/main/script_mod.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#define MAJOR 3
#define MINOR 2
#define PATCHLVL 2
#define PATCHLVL 3
#define BUILD 0

#define VERSION MAJOR.MINOR.PATCHLVL.BUILD
Expand Down
38 changes: 37 additions & 1 deletion addons/medical/ACE_Medical_Treatments.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class ACE_Medical_Actions {
category = "bandage";
treatmentLocations[] = {"All"};
allowedSelections[] = {"All"};
allowSelfTreatment = 1;
requiredMedic = 0;
treatmentTime = 5;
treatmentTimeSelfCoef = 1;
Expand All @@ -32,6 +33,7 @@ class ACE_Medical_Actions {
displayName = CSTRING(Inject_Morphine);
displayNameProgress = CSTRING(Injecting_Morphine);
allowedSelections[] = {"hand_l", "hand_r", "leg_l", "leg_r"};
allowSelfTreatment = 1;
category = "medication";
treatmentTime = 2;
items[] = {"ACE_morphine"};
Expand All @@ -43,6 +45,7 @@ class ACE_Medical_Actions {
displayName = CSTRING(Inject_Epinephrine);
displayNameProgress = CSTRING(Injecting_Epinephrine);
allowedSelections[] = {"hand_l", "hand_r", "leg_l", "leg_r"};
allowSelfTreatment = 1;
category = "medication";
requiredMedic = 1;
treatmentTime = 3;
Expand All @@ -55,6 +58,7 @@ class ACE_Medical_Actions {
displayName = CSTRING(Transfuse_Blood);
displayNameProgress = CSTRING(Transfusing_Blood);
allowedSelections[] = {"hand_l", "hand_r", "leg_l", "leg_r"};
allowSelfTreatment = 0;
category = "advanced";
requiredMedic = 1;
treatmentTime = 20;
Expand Down Expand Up @@ -93,7 +97,7 @@ class ACE_Medical_Actions {
displayNameProgress = CSTRING(Actions_Diagnosing);
category = "examine";
treatmentLocations[] = {"All"};
allowedSelections[] = {"head"};
allowedSelections[] = {"head", "body"};
requiredMedic = 0;
treatmentTime = 1;
items[] = {};
Expand All @@ -105,6 +109,29 @@ class ACE_Medical_Actions {
itemConsumed = 0;
litter[] = {};
};
class CPR: Bandage {
displayName = CSTRING(Actions_CPR);
displayNameProgress = CSTRING(Actions_PerformingCPR);
category = "advanced";
treatmentLocations[] = {"All"};
allowedSelections[] = {"body"};
allowSelfTreatment = 0;
requiredMedic = 0;
treatmentTime = 15;
items[] = {};
condition = QUOTE(!([(_this select 1)] call ace_common_fnc_isAwake) && GVAR(enableRevive)>0);
callbackSuccess = QUOTE(DFUNC(treatmentAdvanced_CPR));
callbackFailure = "";
callbackProgress = "!([((_this select 0) select 1)] call ace_common_fnc_isAwake)";
animationPatient = "";
animationPatientUnconscious = "AinjPpneMstpSnonWrflDnon_rolltoback";
animationCaller = "AinvPknlMstpSlayWnonDnon_medic";
animationCallerProne = "AinvPpneMstpSlayW[wpn]Dnon_medic";
animationCallerSelf = "";
animationCallerSelfProne = "";
itemConsumed = 0;
litter[] = {};
};
};

class Advanced {
Expand All @@ -115,6 +142,7 @@ class ACE_Medical_Actions {
// Which locations can this treatment action be used? Available: Field, MedicalFacility, MedicalVehicle, All.
treatmentLocations[] = {"All"};
allowedSelections[] = {"All"};
allowSelfTreatment = 1;
// What is the level of medical skill required for this treatment action? 0 = all soldiers, 1 = medic, 2 = doctor
requiredMedic = 0;
// The time it takes for a treatment action to complete. Time is in seconds.
Expand Down Expand Up @@ -188,6 +216,7 @@ class ACE_Medical_Actions {
displayName = CSTRING(Actions_Blood4_1000);
displayNameProgress = CSTRING(Transfusing_Blood);
allowedSelections[] = {"hand_l", "hand_r", "leg_l", "leg_r"};
allowSelfTreatment = 0;
category = "advanced";
items[] = {"ACE_bloodIV"};
requiredMedic = 1;
Expand Down Expand Up @@ -238,6 +267,7 @@ class ACE_Medical_Actions {
category = "advanced";
items[] = {"ACE_surgicalKit"};
treatmentLocations[] = {QGVAR(useLocation_SurgicalKit)};
allowSelfTreatment = 0;
requiredMedic = QGVAR(medicSetting_SurgicalKit);
patientStateCondition = QGVAR(useCondition_SurgicalKit);
treatmentTime = "(count ((_this select 1) getVariable ['ACE_Medical_bandagedWounds', []]) * 5)";
Expand All @@ -253,6 +283,7 @@ class ACE_Medical_Actions {
category = "advanced";
items[] = {"ACE_personalAidKit"};
treatmentLocations[] = {QGVAR(useLocation_PAK)};
allowSelfTreatment = 0;
requiredMedic = QGVAR(medicSetting_PAK);
patientStateCondition = QGVAR(useCondition_PAK);
treatmentTime = QUOTE((_this select 1) call FUNC(treatmentAdvanced_fullHealTreatmentTime));
Expand Down Expand Up @@ -297,6 +328,7 @@ class ACE_Medical_Actions {
displayName = CSTRING(Check_Response);
callbackSuccess = QUOTE(DFUNC(actionCheckResponse));
displayNameProgress = CSTRING(Check_Response_Content);
allowSelfTreatment = 0;
};
class RemoveTourniquet: Tourniquet {
displayName = CSTRING(Actions_RemoveTourniquet);
Expand All @@ -313,6 +345,7 @@ class ACE_Medical_Actions {
category = "advanced";
treatmentLocations[] = {"All"};
allowedSelections[] = {"body"};
allowSelfTreatment = 0;
requiredMedic = 0;
treatmentTime = 15;
items[] = {};
Expand All @@ -334,6 +367,7 @@ class ACE_Medical_Actions {
displayNameProgress = CSTRING(PlacingInBodyBag);
category = "advanced";
treatmentLocations[] = {"All"};
allowSelfTreatment = 0;
requiredMedic = 0;
treatmentTime = 15;
items[] = {"ACE_bodyBag"};
Expand Down Expand Up @@ -605,6 +639,7 @@ class ACE_Medical_Advanced {
class vehiclecrash {
thresholds[] = {{0.25, 5}};
selectionSpecific = 0;
lethalDamage = 0.2;
};
class backblast {
thresholds[] = {{0, 2},{0.55, 5}, {1, 6}};
Expand All @@ -622,6 +657,7 @@ class ACE_Medical_Advanced {
class falling {
thresholds[] = {{0.1, 1}};
selectionSpecific = 1;
lethalDamage = 0.4;
};
class ropeburn {
thresholds[] = {{0.1, 1}};
Expand Down
4 changes: 2 additions & 2 deletions addons/medical/ACE_Settings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class ACE_Settings {
description = CSTRING(menuTypeDescription);
typeName = "SCALAR";
value = 0;
values[] = {CSTRING(useSelection)/*, CSTRING(useRadial)*/};
// isClientSettable = 1;
values[] = {CSTRING(useSelection), CSTRING(useRadial), "Disabled"};
isClientSettable = 1;
};
};
Loading