Added moduleMedicalSettings

This commit is contained in:
Glowbal 2015-03-07 13:06:33 +01:00
parent f322884176
commit 1c05f3578c
4 changed files with 35 additions and 7 deletions

View File

@ -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;
};
};
};

View File

@ -77,6 +77,7 @@ PREP(treatmentTourniquetLocal);
PREP(useItem);
PREP(useItems);
PREP(displayPatientInformation);
PREP(moduleMedicalSettings);
GVAR(injuredUnitCollection) = [];
call FUNC(parseConfigForInjuries);

View 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);

Binary file not shown.