Skip to content

Commit c6f0653

Browse files
Andx667LinkIsGrimOverlordZornFrateeCplhardcore
authored
Medical Treatment - Add Setting for Splints (#10458)
Co-authored-by: Grim <[email protected]> Co-authored-by: OverlordZorn <[email protected]> Co-authored-by: Elia Frate <[email protected]> Co-authored-by: Cplhardcore <[email protected]> Co-authored-by: PabstMirror <[email protected]> Co-authored-by: lambdatiger <[email protected]> Co-authored-by: johnb432 <[email protected]>
1 parent 609b2fe commit c6f0653

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

addons/medical_treatment/ACE_Medical_Treatment_Actions.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@ class GVAR(actions) {
100100
displayNameProgress = CSTRING(Applying_Splint);
101101
category = "bandage";
102102
icon = QPATHTOEF(medical_gui,ui\splint.paa);
103+
medicRequired = QGVAR(medicSplint);
103104
allowedSelections[] = {"LeftArm", "RightArm", "LeftLeg", "RightLeg"};
104105
items[] = {"ACE_splint"};
106+
treatmentLocations = QGVAR(locationSplint);
105107
treatmentTime = QGVAR(treatmentTimeSplint);
106108
callbackSuccess = QFUNC(splint);
107109
condition = QFUNC(canSplint);

addons/medical_treatment/initSettings.inc.sqf

+18
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,24 @@
172172
true
173173
] call CBA_fnc_addSetting;
174174

175+
[
176+
QGVAR(medicSplint),
177+
"LIST",
178+
[LSTRING(MedicSplint_DisplayName), LSTRING(MedicSplint_Description)],
179+
LSTRING(Category),
180+
[[0, 1, 2], [LSTRING(Anyone), LSTRING(Medics), LSTRING(Doctors)], 0],
181+
true
182+
] call CBA_fnc_addSetting;
183+
184+
185+
[
186+
QGVAR(locationSplint),
187+
"LIST",
188+
[LSTRING(LocationSplint_DisplayName), LSTRING(LocationSplint_Description)],
189+
[[0, 1, 2, 3, 4], [ELSTRING(common,Anywhere), ELSTRING(common,Vehicle), LSTRING(MedicalFacilities), LSTRING(VehiclesAndFacilities), ELSTRING(common,Disabled)], 0],
190+
true
191+
] call CBA_fnc_addSetting;
192+
175193
[
176194
QGVAR(medicAdenosine),
177195
"LIST",

addons/medical_treatment/stringtable.xml

+12
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,18 @@
563563
<Spanish>Controla donde puede sr usada la Epinefrina.</Spanish>
564564
<Korean>에피네프린을 사용할 수 있는 장소를 정합니다.</Korean>
565565
</Key>
566+
<Key ID="STR_ACE_Medical_Treatment_MedicSplint_DisplayName">
567+
<English>Allow Splint</English>
568+
</Key>
569+
<Key ID="STR_ACE_Medical_Treatment_MedicSplint_Description">
570+
<English>Training level required to use Splint.</English>
571+
</Key>
572+
<Key ID="STR_ACE_Medical_Treatment_LocationSplint_DisplayName">
573+
<English>Locations Splint</English>
574+
</Key>
575+
<Key ID="STR_ACE_Medical_Treatment_LocationSplint_Description">
576+
<English>Controls where Splints can be used.</English>
577+
</Key>
566578
<Key ID="STR_ACE_Medical_Treatment_MedicMorphine_DisplayName">
567579
<English>Allow Morphine</English>
568580
</Key>

0 commit comments

Comments
 (0)