mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added moduleMedicalSettings
This commit is contained in:
parent
f322884176
commit
1c05f3578c
@ -9,7 +9,7 @@ class CfgVehicles {
|
||||
class ACE_moduleMedicalSettings: Module_F {
|
||||
scope = 2;
|
||||
displayName = "Medical Settings [ACE]";
|
||||
icon = QUOTE(PATHTOF(data\ACE_medical_module.paa));
|
||||
icon = QUOTE(PATHTOF(ui\moduleIcon.paa));
|
||||
category = "ACE_medical";
|
||||
function = QUOTE(DFUNC(moduleMedicalSettings));
|
||||
functionPriority = 1;
|
||||
@ -24,16 +24,16 @@ class CfgVehicles {
|
||||
class values {
|
||||
class disable {
|
||||
name = "Disabled";
|
||||
value = -1;
|
||||
value = 0;
|
||||
};
|
||||
class normal {
|
||||
name = "Basic";
|
||||
value = 0;
|
||||
value = 1;
|
||||
default = 1;
|
||||
};
|
||||
class full {
|
||||
name = "Advanced";
|
||||
value = 1;
|
||||
value = 2;
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -44,16 +44,16 @@ class CfgVehicles {
|
||||
class values {
|
||||
class disable {
|
||||
name = "Disable medics";
|
||||
value = -1;
|
||||
value = 0;
|
||||
};
|
||||
class normal {
|
||||
name = "Normal";
|
||||
value = 0;
|
||||
value = 1;
|
||||
default = 1;
|
||||
};
|
||||
class full {
|
||||
name = "Advanced";
|
||||
value = 1;
|
||||
value = 2;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -77,6 +77,7 @@ PREP(treatmentTourniquetLocal);
|
||||
PREP(useItem);
|
||||
PREP(useItems);
|
||||
PREP(displayPatientInformation);
|
||||
PREP(moduleMedicalSettings);
|
||||
|
||||
GVAR(injuredUnitCollection) = [];
|
||||
call FUNC(parseConfigForInjuries);
|
||||
|
27
addons/medical/functions/fnc_moduleMedicalSettings.sqf
Normal file
27
addons/medical/functions/fnc_moduleMedicalSettings.sqf
Normal file
@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Author: Glowbal
|
||||
* Module for adjusting the medical settings
|
||||
*
|
||||
* Arguments:
|
||||
* 0: The module logic <LOGIC>
|
||||
* 1: units <ARRAY>
|
||||
* 2: activated <BOOL>
|
||||
*
|
||||
* Return Value:
|
||||
* None <NIL>
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
private ["_logic", "_units", "_activated"];
|
||||
_logic = _this select 0;
|
||||
_units = _this select 1;
|
||||
_activated = _this select 2;
|
||||
|
||||
if !(_activated) exitWith {};
|
||||
|
||||
[_logic, QGVAR(level), "level"] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(medicSetting), "medicSetting"] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(enableFor), "enableFor"] call EFUNC(common,readSettingFromModule);
|
BIN
addons/medical/ui/moduleIcon.paa
Normal file
BIN
addons/medical/ui/moduleIcon.paa
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user