diff --git a/.hemtt/project.toml b/.hemtt/project.toml index 9a15616..b7204a5 100644 --- a/.hemtt/project.toml +++ b/.hemtt/project.toml @@ -47,6 +47,18 @@ parameters = [ "-window", ] +[hemtt.launch.cup] +workshop = [ + "450814997", # CBA_A3 + "2369477168", # ADT + "583496184", # CUP Terrains - Core + "583544987", # CUP Terrains - Maps +] +parameters = [ + "-name=dev", + "-window", +] + [hemtt.launch.vn] workshop = [ "450814997", # CBA_A3 diff --git a/addons/member_customization/$PBOPREFIX$ b/addons/member_customization/$PBOPREFIX$ new file mode 100644 index 0000000..655e585 --- /dev/null +++ b/addons/member_customization/$PBOPREFIX$ @@ -0,0 +1 @@ +z\afm\addons\member_customization diff --git a/addons/member_customization/CfgEventHandlers.hpp b/addons/member_customization/CfgEventHandlers.hpp new file mode 100644 index 0000000..a614deb --- /dev/null +++ b/addons/member_customization/CfgEventHandlers.hpp @@ -0,0 +1,10 @@ +class Extended_PreInit_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_SCRIPT(XEH_preInit)); + }; +}; +class Extended_PostInit_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_SCRIPT(XEH_postInit)); + }; +}; diff --git a/addons/member_customization/CfgVehicles.hpp b/addons/member_customization/CfgVehicles.hpp new file mode 100644 index 0000000..6aa262d --- /dev/null +++ b/addons/member_customization/CfgVehicles.hpp @@ -0,0 +1,17 @@ +class CfgVehicles { + class UserTexture1m_F; + class GVAR(graffiti_chernarus_bolec_17kills): UserTexture1m_F { + displayName = "bolec 17 kills graffiti"; + hiddenSelectionsTextures[] = {QPATHTOF(data\chernarus_graffiti_bolec_17kills_ca.paa)}; + + class Attributes {}; + }; + + class UserTexture_1x2_F; + class GVAR(banner_chernarus_bolec_17kills): UserTexture_1x2_F { + displayName = "bolec 17 kills banner"; + hiddenSelectionsTextures[] = {QPATHTOF(data\chernarus_banner_bolec_17kills_ca.paa)}; + + class Attributes {}; + }; +}; diff --git a/addons/member_customization/README.md b/addons/member_customization/README.md new file mode 100644 index 0000000..d13c1a3 --- /dev/null +++ b/addons/member_customization/README.md @@ -0,0 +1,3 @@ +# Member Customization + +Adds features/objects related to ArmaForces members. diff --git a/addons/member_customization/XEH_postInit.sqf b/addons/member_customization/XEH_postInit.sqf new file mode 100644 index 0000000..ed28490 --- /dev/null +++ b/addons/member_customization/XEH_postInit.sqf @@ -0,0 +1,26 @@ +#include "script_component.hpp" + +call { + if (!(toLower worldName in ["chernarus", "chernarus_summer", "chernarus_winter"]) || !hasInterface) exitWith {}; + + INFO("Spawning ""SK Bolec 17 kills graffiti and sign"""); + + private _pub = nearestObjects [[6898, 2560, 0], ["Land_A_Pub_01"], 25] param [0, objNull]; + if (!alive _pub || {isObjectHidden _pub}) exitWith {}; + GVAR(bolec_17kills_graffiti) = createSimpleObject [QGVAR(graffiti_chernarus_bolec_17kills), [0,0,0], true]; + GVAR(bolec_17kills_graffiti) setPosASL [6899.62,2569.36,7.35698]; + GVAR(bolec_17kills_graffiti) setVectorDirAndUp [[0.040473,-0.999181,0], [0,0,1]]; + _pub addEventHandler ["Killed", { + deleteVehicle (missionNamespace getVariable [QGVAR(bolec_17kills_graffiti), objNull]); + }]; + + private _sign = nearestObjects [[6898, 2569, 4], ["Land_SignB_Pub_CZ3"], 25] param [0, objNull]; + if (!alive _sign || {isObjectHidden _sign}) exitWith {}; + GVAR(bolec_17kills_banner) = createSimpleObject [QGVAR(banner_chernarus_bolec_17kills), [0,0,0], true]; + GVAR(bolec_17kills_banner) setPosWorld [6898,2569.32,10.394]; + GVAR(bolec_17kills_banner) setVectorDirAndUp [[0.0561846,-1.39887,-4.45146e-008], [-1.39887,-0.0561846,6.69994e-010]]; + GVAR(bolec_17kills_banner) setObjectScale 1.4; + _sign addEventHandler ["Killed", { + deleteVehicle (missionNamespace getVariable [QGVAR(bolec_17kills_banner), objNull]); + }]; +}; diff --git a/addons/member_customization/XEH_preInit.sqf b/addons/member_customization/XEH_preInit.sqf new file mode 100644 index 0000000..790542a --- /dev/null +++ b/addons/member_customization/XEH_preInit.sqf @@ -0,0 +1,10 @@ +#include "script_component.hpp" +ADDON = false; + +// PREP_RECOMPILE_START; +// #include "XEH_PREP.hpp" +// PREP_RECOMPILE_END; + +// #include "initSettings.inc.sqf" + +ADDON = true; diff --git a/addons/member_customization/config.cpp b/addons/member_customization/config.cpp new file mode 100644 index 0000000..4841c5e --- /dev/null +++ b/addons/member_customization/config.cpp @@ -0,0 +1,19 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + name = COMPONENT_NAME; + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = { + "afm_main" + }; + author = "ArmaForces"; + authors[] = {"veteran29"}; + VERSION_CONFIG; + }; +}; + +#include "CfgEventHandlers.hpp" +#include "CfgVehicles.hpp" diff --git a/addons/member_customization/data/chernarus_banner_bolec_17kills_ca.paa b/addons/member_customization/data/chernarus_banner_bolec_17kills_ca.paa new file mode 100644 index 0000000..1871e03 Binary files /dev/null and b/addons/member_customization/data/chernarus_banner_bolec_17kills_ca.paa differ diff --git a/addons/member_customization/data/chernarus_graffiti_bolec_17kills_ca.paa b/addons/member_customization/data/chernarus_graffiti_bolec_17kills_ca.paa new file mode 100644 index 0000000..b7eab14 Binary files /dev/null and b/addons/member_customization/data/chernarus_graffiti_bolec_17kills_ca.paa differ diff --git a/addons/member_customization/script_component.hpp b/addons/member_customization/script_component.hpp new file mode 100644 index 0000000..bd64778 --- /dev/null +++ b/addons/member_customization/script_component.hpp @@ -0,0 +1,14 @@ +#define COMPONENT member_customization +#include "\z\afm\addons\main\script_mod.hpp" + +// #define DEBUG_MODE_FULL +// #define DISABLE_COMPILE_CACHE + +#ifdef DEBUG_ENABLED_MEMBER_CUSTOMIZATION + #define DEBUG_MODE_FULL +#endif + #ifdef DEBUG_SETTINGS_MEMBER_CUSTOMIZATION + #define DEBUG_SETTINGS DEBUG_SETTINGS_MEMBER_CUSTOMIZATION +#endif + +#include "\z\afm\addons\main\script_macros.hpp"