diff --git a/addons/audio/$PBOPREFIX$ b/addons/audio/$PBOPREFIX$ new file mode 100644 index 0000000..ac7c5c8 --- /dev/null +++ b/addons/audio/$PBOPREFIX$ @@ -0,0 +1 @@ +z\forge\addons\audio \ No newline at end of file diff --git a/addons/audio/CfgEventHandlers.hpp b/addons/audio/CfgEventHandlers.hpp new file mode 100644 index 0000000..78b189a --- /dev/null +++ b/addons/audio/CfgEventHandlers.hpp @@ -0,0 +1,19 @@ +class Extended_PreStart_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_FILE(XEH_preStart)); + }; +}; + +class Extended_PreInit_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_FILE(XEH_preInit)); + serverInit = QUOTE(call COMPILE_FILE(XEH_preInit_server)); + }; +}; + +class Extended_PostInit_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_FILE(XEH_postInit)); + clientInit = QUOTE(call COMPILE_FILE(XEH_postInit_client)); + }; +}; \ No newline at end of file diff --git a/addons/audio/CfgSentences.hpp b/addons/audio/CfgSentences.hpp new file mode 100644 index 0000000..a1dcb8a --- /dev/null +++ b/addons/audio/CfgSentences.hpp @@ -0,0 +1 @@ +class CfgSentences {}; \ No newline at end of file diff --git a/addons/audio/CfgSounds.hpp b/addons/audio/CfgSounds.hpp new file mode 100644 index 0000000..c9b79fc --- /dev/null +++ b/addons/audio/CfgSounds.hpp @@ -0,0 +1,24 @@ +class CfgSounds { + sounds[] = {}; + class FORGE_timerBeep { + name = "FORGE_timerBeep"; + sound[] = {QUOTE(PATHTOF(sounds\timerClick.wav)), 1, 3}; + titles[] = {}; + }; + class FORGE_timerBeepShort { + name = "FORGE_timerBeepShort"; + sound[] = {QUOTE(PATHTOF(sounds\timerClickShort.wav)), 1, 3}; + titles[] = {}; + }; + class FORGE_timerEnd { + name = "FORGE_timerEnd"; + sound[] = {QUOTE(PATHTOF(sounds\timerEnd.wav)), 1, 3}; + titles[] = {}; + }; + class FORGE_defused { + name = "FORGE_defused"; + sound[] = {QUOTE(PATHTOF(sounds\defused.wav)), 1, 3}; + titles[] = {}; + }; +}; +class CfgSFX {}; \ No newline at end of file diff --git a/addons/audio/CfgVehicles.hpp b/addons/audio/CfgVehicles.hpp new file mode 100644 index 0000000..89f96ab --- /dev/null +++ b/addons/audio/CfgVehicles.hpp @@ -0,0 +1,16 @@ +class CfgVehicles { + class All; + class Sound: All { + author = "FORGE"; + mapSize = 1; + _generalMacro = "Sound"; + scope = 0; + side = -1; + animated = 0; + vehicleClass = "Sounds"; + icon = "iconSound"; + faction = "none"; + editorCategory = "forge"; + editorSubcategory = "forge_audio"; + }; +}; \ No newline at end of file diff --git a/addons/audio/XEH_PREP.hpp b/addons/audio/XEH_PREP.hpp new file mode 100644 index 0000000..e69de29 diff --git a/addons/audio/XEH_postInit.sqf b/addons/audio/XEH_postInit.sqf new file mode 100644 index 0000000..84f2529 --- /dev/null +++ b/addons/audio/XEH_postInit.sqf @@ -0,0 +1 @@ +#include "script_component.hpp" \ No newline at end of file diff --git a/addons/audio/XEH_postInit_client.sqf b/addons/audio/XEH_postInit_client.sqf new file mode 100644 index 0000000..84f2529 --- /dev/null +++ b/addons/audio/XEH_postInit_client.sqf @@ -0,0 +1 @@ +#include "script_component.hpp" \ No newline at end of file diff --git a/addons/audio/XEH_preInit.sqf b/addons/audio/XEH_preInit.sqf new file mode 100644 index 0000000..d7d59fe --- /dev/null +++ b/addons/audio/XEH_preInit.sqf @@ -0,0 +1,8 @@ +#include "script_component.hpp" +ADDON = false; + +PREP_RECOMPILE_START; +#include "XEH_PREP.hpp" +PREP_RECOMPILE_END; + +ADDON = true; \ No newline at end of file diff --git a/addons/audio/XEH_preInit_server.sqf b/addons/audio/XEH_preInit_server.sqf new file mode 100644 index 0000000..84f2529 --- /dev/null +++ b/addons/audio/XEH_preInit_server.sqf @@ -0,0 +1 @@ +#include "script_component.hpp" \ No newline at end of file diff --git a/addons/audio/XEH_preStart.sqf b/addons/audio/XEH_preStart.sqf new file mode 100644 index 0000000..7dca066 --- /dev/null +++ b/addons/audio/XEH_preStart.sqf @@ -0,0 +1,2 @@ +#include "script_component.hpp" +#include "XEH_PREP.hpp" \ No newline at end of file diff --git a/addons/audio/config.cpp b/addons/audio/config.cpp new file mode 100644 index 0000000..f28ab0a --- /dev/null +++ b/addons/audio/config.cpp @@ -0,0 +1,19 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + name = COMPONENT_NAME; + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"forge_main"}; + authors[] = {"J. Schmidt", "Creedcoder"}; + author = "IDSolutions"; + VERSION_CONFIG; + }; +}; + +#include "CfgEventHandlers.hpp" +#include "CfgSounds.hpp" +#include "CfgSentences.hpp" +#include "CfgVehicles.hpp" \ No newline at end of file diff --git a/addons/audio/script_component.hpp b/addons/audio/script_component.hpp new file mode 100644 index 0000000..458a93a --- /dev/null +++ b/addons/audio/script_component.hpp @@ -0,0 +1,16 @@ +#define COMPONENT audio +#define COMPONENT_BEAUTIFIED Audio +#include "..\main\script_mod.hpp" + +// #define DEBUG_MODE_FULL +// #define DISABLE_COMPILE_CACHE + +#ifdef DEBUG_ENABLED_AUDIO + #define DEBUG_MODE_FULL +#endif + +#ifdef DEBUG_SETTINGS_AUDIO + #define DEBUG_SETTINGS DEBUG_SETTINGS_AUDIO +#endif + +#include "..\main\script_macros.hpp" \ No newline at end of file diff --git a/addons/audio/sounds/defused.wav b/addons/audio/sounds/defused.wav new file mode 100644 index 0000000..a3d067f Binary files /dev/null and b/addons/audio/sounds/defused.wav differ diff --git a/addons/audio/sounds/timerClick.wav b/addons/audio/sounds/timerClick.wav new file mode 100644 index 0000000..4dcbbeb Binary files /dev/null and b/addons/audio/sounds/timerClick.wav differ diff --git a/addons/audio/sounds/timerClickShort.wav b/addons/audio/sounds/timerClickShort.wav new file mode 100644 index 0000000..8216e58 Binary files /dev/null and b/addons/audio/sounds/timerClickShort.wav differ diff --git a/addons/audio/sounds/timerEnd.wav b/addons/audio/sounds/timerEnd.wav new file mode 100644 index 0000000..1297da8 Binary files /dev/null and b/addons/audio/sounds/timerEnd.wav differ