mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
6ca9d59443
* Merge ACEX - first attempt Backwards compatibility with XGVAR set of macros used on all settings and config entries Public API functions not taken into account yet, many other things probably still missed * Resolve issues * Switch to addSetting, backward compatible CfgPatches, missed XGVAR. * Remove unnecessary backwards compat * Convert ACEX Categorised settings to initSettings / Fix Intel items magazine * Apply suggestions from code review Co-authored-by: PabstMirror <pabstmirror@gmail.com> * Remove maintainers from merged ACEX components * Cleanup unused module and faction classes * Sitting - Add more object configs by @Dystopian https://github.com/acemod/ACEX/pull/255 * Translations - Add Japanese by @classicarma https://github.com/acemod/ACEX/pull/259 * Kill Tracker - Add killtracker.inc public include file by @Freddo3000" https://github.com/acemod/ACEX/pull/251 * Add ACEX authors and sort authors file * acex - final tweaks (#8513) * acex - handle old funcs * replace thirst/hunger setvars to acex naming fix macro Revert "fix macro" This reverts commit d807e5e804c43916eaa42d34a89af94c6d9a48ad. Revert "replace thirst/hunger setvars to acex naming" This reverts commit bafc607884932d6e339daedc7c22e25dddbdd868. x Co-authored-by: TyroneMF <TyroneMF@hotmail.com> Co-authored-by: PabstMirror <pabstmirror@gmail.com>
102 lines
3.2 KiB
C++
102 lines
3.2 KiB
C++
class CfgVehicles {
|
|
class Man;
|
|
class CAManBase: Man {
|
|
class ACE_SelfActions {
|
|
class ADDON {
|
|
displayName = CSTRING(Fortify);
|
|
condition = QUOTE([_player] call FUNC(canFortify));
|
|
modifierFunction = QUOTE(call FUNC(modifyAction));
|
|
insertChildren = QUOTE(_this call FUNC(addActions));
|
|
statement = "";
|
|
exceptions[] = {};
|
|
showDisabled = 0;
|
|
priority = 1;
|
|
};
|
|
};
|
|
};
|
|
class Logic;
|
|
class Module_F: Logic {
|
|
class AttributesBase {
|
|
class Default;
|
|
class Combo;
|
|
class Edit;
|
|
class Checkbox;
|
|
class ModuleDescription;
|
|
};
|
|
class ModuleDescription;
|
|
};
|
|
class ACE_Module: Module_F {};
|
|
class XGVAR(setupModule): ACE_Module {
|
|
author = ECSTRING(common,ACETeam);
|
|
category = "ACEX";
|
|
displayName = CSTRING(Fortify);
|
|
function = QFUNC(setupModule);
|
|
scope = 2;
|
|
isGlobal = 0;
|
|
class Attributes: AttributesBase {
|
|
class Side: Combo {
|
|
displayName = "$STR_eval_typeside";
|
|
property = QGVAR(setupModule_Side);
|
|
typeName = "NUMBER";
|
|
defaultValue = 1;
|
|
class values {
|
|
class West {
|
|
name = "$STR_WEST";
|
|
value = 1;
|
|
};
|
|
class East {
|
|
name = "$STR_east";
|
|
value = 2;
|
|
};
|
|
class Indp {
|
|
name = "$STR_guerrila";
|
|
value = 3;
|
|
};
|
|
class Civ {
|
|
name = "$STR_civilian";
|
|
value = 4;
|
|
};
|
|
};
|
|
};
|
|
class Preset: Default {
|
|
displayName = "$STR_controls_presets";
|
|
property = QGVAR(setupModule_Preset);
|
|
control = QGVAR(presetSelection);
|
|
typeName = "STRING";
|
|
defaultValue = 0;
|
|
};
|
|
class Budget: Edit {
|
|
property = QGVAR(setupModule_Budget);
|
|
displayName = CSTRING(budget);
|
|
typeName = "NUMBER";
|
|
defaultValue = -1;
|
|
};
|
|
class AddToolItem: Checkbox {
|
|
property = QGVAR(setupModule_AddToolItem);
|
|
displayName = CSTRING(addToolItem);
|
|
typeName = "BOOL";
|
|
};
|
|
class ModuleDescription: ModuleDescription {};
|
|
};
|
|
|
|
class ModuleDescription: ModuleDescription {
|
|
description = CSTRING(moduleDescription);
|
|
};
|
|
};
|
|
|
|
class XGVAR(buildLocationModule): ACE_Module {
|
|
author = ECSTRING(common,ACETeam);
|
|
category = "ACEX";
|
|
displayName = CSTRING(buildLocationModule);
|
|
scope = 2;
|
|
isGlobal = 1;
|
|
canSetArea = 1;
|
|
function = QFUNC(buildLocationModule);
|
|
class AttributeValues {
|
|
size3[] = {300, 300, -1};
|
|
IsRectangle = 1;
|
|
};
|
|
};
|
|
|
|
};
|