Skip to content

Commit

Permalink
Medical Treatment - Add Setting for Splints (#10458)
Browse files Browse the repository at this point in the history
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: OverlordZorn <56258612+OverlordZorn@users.noreply.github.com>
Co-authored-by: Elia Frate <43710005+Fratee@users.noreply.github.com>
Co-authored-by: Cplhardcore <135324281+Cplhardcore@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: lambdatiger <spam.stnuocca.sl@gmail.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
  • Loading branch information
8 people committed Nov 2, 2024
1 parent c58d357 commit 57c7965
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ class GVAR(actions) {
displayNameProgress = CSTRING(Applying_Splint);
category = "bandage";
icon = QPATHTOEF(medical_gui,ui\splint.paa);
medicRequired = QGVAR(medicSplint);
allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
items[] = {"ACE_splint"};
treatmentLocations = QGVAR(locationSplint);
treatmentTime = QGVAR(treatmentTimeSplint);
callbackSuccess = QFUNC(splint);
condition = QFUNC(canSplint);
Expand Down
18 changes: 18 additions & 0 deletions addons/medical_treatment/initSettings.inc.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,24 @@
true
] call CBA_fnc_addSetting;

[
QGVAR(medicSplint),
"LIST",
[LSTRING(MedicSplint_DisplayName), LSTRING(MedicSplint_Description)],
LSTRING(Category),
[[0, 1, 2], [LSTRING(Anyone), LSTRING(Medics), LSTRING(Doctors)], 0],
true
] call CBA_fnc_addSetting;


[
QGVAR(locationSplint),
"LIST",
[LSTRING(LocationSplint_DisplayName), LSTRING(LocationSplint_Description)],
[[0, 1, 2, 3, 4], [ELSTRING(common,Anywhere), ELSTRING(common,Vehicle), LSTRING(MedicalFacilities), LSTRING(VehiclesAndFacilities), ELSTRING(common,Disabled)], 0],
true
] call CBA_fnc_addSetting;

[
QGVAR(medicAdenosine),
"LIST",
Expand Down
12 changes: 12 additions & 0 deletions addons/medical_treatment/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,18 @@
<Spanish>Controla donde puede sr usada la Epinefrina.</Spanish>
<Korean>에피네프린을 사용할 수 있는 장소를 정합니다.</Korean>
</Key>
<Key ID="STR_ACE_Medical_Treatment_MedicSplint_DisplayName">
<English>Allow Splint</English>
</Key>
<Key ID="STR_ACE_Medical_Treatment_MedicSplint_Description">
<English>Training level required to use Splint.</English>
</Key>
<Key ID="STR_ACE_Medical_Treatment_LocationSplint_DisplayName">
<English>Locations Splint</English>
</Key>
<Key ID="STR_ACE_Medical_Treatment_LocationSplint_Description">
<English>Controls where Splints can be used.</English>
</Key>
<Key ID="STR_ACE_Medical_Treatment_MedicMorphine_DisplayName">
<English>Allow Morphine</English>
</Key>
Expand Down

0 comments on commit 57c7965

Please sign in to comment.