Specify zeus setMedic module conditions further

This commit is contained in:
SilentSpike 2015-08-15 21:44:40 +01:00
parent c01052e5bf
commit 05bf239d8e
4 changed files with 14 additions and 14 deletions

View File

@ -117,7 +117,7 @@ class CfgVehicles {
};
class GVAR(moduleSetMedic): GVAR(moduleBase) {
curatorCanAttach = 1;
displayName = CSTRING(moduleSetMedic_displayName);
displayName = CSTRING(ModuleSetMedic_displayName);
function = QFUNC(moduleSetMedic);
icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Medic_ca.paa));
class ModuleDescription {
@ -127,7 +127,7 @@ class CfgVehicles {
};
class GVAR(moduleSetMedicalVehicle): GVAR(moduleBase) {
curatorCanAttach = 1;
displayName = CSTRING(moduleSetMedicalVehicle_displayName);
displayName = CSTRING(ModuleSetMedicalVehicle_displayName);
function = QFUNC(moduleSetMedicalVehicle);
icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Medic_ca.paa));
class ModuleDescription {
@ -137,7 +137,7 @@ class CfgVehicles {
};
class GVAR(moduleSetMedicalFacility): GVAR(moduleBase) {
curatorCanAttach = 1;
displayName = CSTRING(moduleSetMedicalFacility_displayName);
displayName = CSTRING(ModuleSetMedicalFacility_displayName);
function = QFUNC(moduleSetMedicalFacility);
icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Medic_ca.paa));
class ModuleDescription {

View File

@ -30,8 +30,8 @@ if !(["ACE_Medical"] call EFUNC(common,isModLoaded)) then {
} else {
_unit = (_mouseOver select 1);
if (_unit isKindOf "CAManBase") then {
[LSTRING(NoMan)] call EFUNC(common,displayTextStructured);
if (_unit isKindOf "Man" || {!(_unit isKindOf "Building")}) then {
[LSTRING(OnlyStructures)] call EFUNC(common,displayTextStructured);
} else {
if !(alive _unit) then {
[LSTRING(OnlyAlive)] call EFUNC(common,displayTextStructured);

View File

@ -30,8 +30,8 @@ if !(["ACE_Medical"] call EFUNC(common,isModLoaded)) then {
} else {
_unit = (_mouseOver select 1);
if (_unit isKindOf "CAManBase") then {
[LSTRING(NoMan)] call EFUNC(common,displayTextStructured);
if (_unit isKindOf "Man" || {_unit isKindOf "Building"}) then {
[LSTRING(OnlyVehicles)] call EFUNC(common,displayTextStructured);
} else {
if !(alive _unit) then {
[LSTRING(OnlyAlive)] call EFUNC(common,displayTextStructured);

View File

@ -137,13 +137,13 @@
<German>Bewusstlosigkeit umschalten</German>
<Portuguese>Alternar inconsciência</Portuguese>
</Key>
<Key ID="STR_ACE_Zeus_moduleSetMedic_DisplayName">
<Key ID="STR_ACE_Zeus_ModuleSetMedic_DisplayName">
<English>Assign Medic</English>
</Key>
<Key ID="STR_ACE_Zeus_moduleSetMedicalVehicle_DisplayName">
<Key ID="STR_ACE_Zeus_ModuleSetMedicalVehicle_DisplayName">
<English>Assign Medical Vehicle</English>
</Key>
<Key ID="STR_ACE_Zeus_moduleSetMedicalFacility_DisplayName">
<Key ID="STR_ACE_Zeus_ModuleSetMedicalFacility_DisplayName">
<English>Assign Medical Facility</English>
</Key>
<Key ID="STR_ACE_Zeus_OnlyAlive">
@ -170,11 +170,11 @@
<Italian>Si può usare solo su fanteria a piedi</Italian>
<Portuguese>Usar somente em infantaria desmontada</Portuguese>
</Key>
<Key ID="STR_ACE_Zeus_OnlyVehicles">
<English>Object must be a vehicle</English>
<Key ID="STR_ACE_Zeus_OnlyStructures">
<English>Unit must be a structure</English>
</Key>
<Key ID="STR_ACE_Zeus_NoMan">
<English>Object must not be a man</English>
<Key ID="STR_ACE_Zeus_OnlyVehicles">
<English>Unit must be a vehicle</English>
</Key>
<Key ID="STR_ACE_Zeus_OnlyNonCaptive">
<English>Unit must not be captive</English>