Better module naming convention

This commit is contained in:
SilentSpike
2015-05-19 12:23:18 +01:00
parent 8fe1a65207
commit a30f6be713
6 changed files with 19 additions and 19 deletions

View File

@ -81,29 +81,19 @@ class CfgVehicles {
category = "ACE"; category = "ACE";
scopeCurator = 2; scopeCurator = 2;
}; };
class GVAR(moduleCapture): GVAR(moduleBase) { class GVAR(moduleCaptive): GVAR(moduleBase) {
curatorCanAttach = 1; curatorCanAttach = 1;
displayName = "Capture Unit"; displayName = "Toggle Captive";
function = QFUNC(moduleCapture); function = QFUNC(moduleCaptive);
icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Capture_ca.paa)); icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Captive_ca.paa));
class ModuleDescription { class ModuleDescription {
description = "Flips the capture state of the specified unit."; description = "Flips the capture state of the specified unit.";
sync[] = {}; sync[] = {};
}; };
}; };
class GVAR(moduleKnockout): GVAR(moduleBase) {
curatorCanAttach = 1;
displayName = "Knockout Unit";
function = QFUNC(moduleKnockout);
//icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Knockout_ca.paa));
class ModuleDescription {
description = "Flips the unconscious state of the specified unit.";
sync[] = {};
};
};
class GVAR(moduleSurrender): GVAR(moduleBase) { class GVAR(moduleSurrender): GVAR(moduleBase) {
curatorCanAttach = 1; curatorCanAttach = 1;
displayName = "Surrender Unit"; displayName = "Toggle Surrender";
function = QFUNC(moduleSurrender); function = QFUNC(moduleSurrender);
icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Surrender_ca.paa)); icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Surrender_ca.paa));
class ModuleDescription { class ModuleDescription {
@ -111,4 +101,14 @@ class CfgVehicles {
sync[] = {}; sync[] = {};
}; };
}; };
class GVAR(moduleUnconscious): GVAR(moduleBase) {
curatorCanAttach = 1;
displayName = "Toggle Unconscious";
function = QFUNC(moduleUnconscious);
//icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Unconscious_ca.paa));
class ModuleDescription {
description = "Flips the unconscious state of the specified unit.";
sync[] = {};
};
};
}; };

View File

@ -7,9 +7,9 @@ PREP(bi_moduleMine);
PREP(bi_moduleProjectile); PREP(bi_moduleProjectile);
PREP(bi_moduleRemoteControl); PREP(bi_moduleRemoteControl);
PREP(handleZeusUnitAssigned); PREP(handleZeusUnitAssigned);
PREP(moduleCapture); PREP(moduleCaptive);
PREP(moduleKnockout);
PREP(moduleSurrender); PREP(moduleSurrender);
PREP(moduleUnconscious);
PREP(moduleZeusSettings); PREP(moduleZeusSettings);
if (isServer) then { if (isServer) then {

View File

@ -13,13 +13,13 @@ class CfgPatches {
// Use additional cfgPatches to contextually remove modules from zeus // Use additional cfgPatches to contextually remove modules from zeus
class GVAR(captives): ADDON { class GVAR(captives): ADDON {
units[] = { units[] = {
QGVAR(moduleCapture), QGVAR(moduleCaptive),
QGVAR(moduleSurrender) QGVAR(moduleSurrender)
}; };
}; };
class GVAR(medical): ADDON { class GVAR(medical): ADDON {
units[] = { units[] = {
QGVAR(moduleKnockout) QGVAR(moduleUnconscious)
}; };
}; };
}; };