Medical Treatment - Enhanced Setting: Add option to allow Self-Stitch/PAK/IV only for Doctors
When merged this pull request will:
fn_canTreat.sqf
- Enhanced handling of the allowSelfTreatment property:
- New Case:
2- Requires Medic to be a Doctor to perform Self Treatment
- New Case:
initSettings.inc.sqf
- Added selectable Option, limiting selfstitching to only doctors.
- Updated
QGVAR(allowSelfStitch)Setting - Updated
QGVAR(allowSelfPAK)Setting - Updated
QGVAR(allowSelfIV)Setting
- Updated
Notes
- [x] I dont know if there's a better way to handle the check in
fn_canTreat.sqf. Open to suggestions. - [x] For the moment, i only used existing Stringtable entries. The setting:
Allow Self-Stitchingcurrently saysNo, Yes, Doctors.- Can upgrade to
No, Yes, Doctors Onlyif needed but would require new stringtable entry.
- Can upgrade to
Edit: rephrase
imho this setting should in the future also apply to the other "selfX" Treatment Settings.
imho this should be extendet to selfIV, selfPAK in addition to selfStitch. Use case would to be to have someone to be able to heal himself fully (unless he is uncon ofc). Also makes little sense to me to have the setting for stitch, but not for iv and pak since they are so similiar otherwise.
or reject.
Just add the features, it ain't exactly hard to add them, and leave the decision to use them to the Players.
Added new setting entries also to SelfPAK and SelfIV