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>
84 lines
2.9 KiB
C++
84 lines
2.9 KiB
C++
class CfgVehicles {
|
|
class Man;
|
|
class CAManBase: Man {
|
|
class ACE_SelfActions {
|
|
class ADDON {
|
|
displayName = CSTRING(DisplayName);
|
|
condition = QUOTE(visibleMap);
|
|
exceptions[] = {"isNotInside", "notOnMap"};
|
|
statement = "";
|
|
insertChildren = QUOTE(_player call FUNC(addActions));
|
|
icon = "";
|
|
};
|
|
};
|
|
};
|
|
|
|
class ThingX;
|
|
class GVAR(base): ThingX {
|
|
XEH_ENABLED;
|
|
icon = "iconObject_2x3";
|
|
mapSize = 0.3;
|
|
simulation = "House"; // Needed because the objects don't have good collision physx
|
|
destrType = "DesturctNo";
|
|
curatorInfoTypeEmpty = QGVAR(RscSetData);
|
|
editorSubcategory = QUOTE(XADDON);
|
|
GVAR(magazine) = "";
|
|
class Attributes {
|
|
class GVAR(data) {
|
|
displayName = CSTRING(Text);
|
|
property = QGVAR(data);
|
|
control = "EditMulti5";
|
|
expression = QUOTE([ARR_2(_this,_value)] call FUNC(setObjectData));
|
|
defaultValue = "''";
|
|
validate = "STRING";
|
|
typeName = "STRING";
|
|
};
|
|
};
|
|
class ACE_Actions {
|
|
class GVAR(pickup) {
|
|
displayName = CSTRING(Pickup);
|
|
icon = "\a3\ui_f\data\igui\cfg\actions\take_ca.paa";
|
|
distance = 2;
|
|
condition = QUOTE(_this call FUNC(canPickup));
|
|
statement = QUOTE(_this call FUNC(pickup));
|
|
};
|
|
};
|
|
};
|
|
|
|
class XGVAR(notepad): GVAR(base) {
|
|
author = ECSTRING(common,ACETeam);
|
|
displayName = CSTRING(Notepad_DisplayName);
|
|
model = "\a3\structures_f\items\documents\notepad_f.p3d";
|
|
editorPreview = "\a3\editorpreviews_f\data\cfgvehicles\land_notepad_f.jpg";
|
|
scope = 2;
|
|
scopeCurator = 2;
|
|
GVAR(magazine) = QXGVAR(notepad);
|
|
};
|
|
|
|
class XGVAR(document): GVAR(base) {
|
|
author = ECSTRING(common,ACETeam);
|
|
displayName = CSTRING(Document_DisplayName);
|
|
model = "\a3\structures_f\items\documents\file2_f.p3d";
|
|
editorPreview = "\a3\editorpreviews_f\data\cfgvehicles\intel_file2_f.jpg";
|
|
scope = 2;
|
|
scopeCurator = 2;
|
|
GVAR(magazine) = QXGVAR(document);
|
|
};
|
|
|
|
class XGVAR(photo): GVAR(base) {
|
|
author = ECSTRING(common,ACETeam);
|
|
displayName = CSTRING(Photo_DisplayName);
|
|
model = "\a3\structures_f\items\documents\filephotos_f.p3d";
|
|
editorPreview = "\a3\editorpreviews_f\data\cfgvehicles\land_filephotos_f.jpg";
|
|
scope = 2;
|
|
scopeCurator = 2;
|
|
GVAR(magazine) = QXGVAR(photo);
|
|
class Attributes: Attributes {
|
|
class GVAR(data): GVAR(data) {
|
|
displayName = CSTRING(Photo_Filename);
|
|
control = "Edit";
|
|
};
|
|
};
|
|
};
|
|
};
|