Added Audio
Some checks failed
Build / Build (push) Failing after 52s

This commit is contained in:
Jacob Schmidt 2025-01-05 17:01:34 -06:00
parent 0a04a3c480
commit 4c2dbd7be5
17 changed files with 109 additions and 0 deletions

1
addons/audio/$PBOPREFIX$ Normal file
View File

@ -0,0 +1 @@
z\forge\addons\audio

View File

@ -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));
};
};

View File

@ -0,0 +1 @@
class CfgSentences {};

View File

@ -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 {};

View File

@ -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";
};
};

View File

View File

@ -0,0 +1 @@
#include "script_component.hpp"

View File

@ -0,0 +1 @@
#include "script_component.hpp"

View File

@ -0,0 +1,8 @@
#include "script_component.hpp"
ADDON = false;
PREP_RECOMPILE_START;
#include "XEH_PREP.hpp"
PREP_RECOMPILE_END;
ADDON = true;

View File

@ -0,0 +1 @@
#include "script_component.hpp"

View File

@ -0,0 +1,2 @@
#include "script_component.hpp"
#include "XEH_PREP.hpp"

19
addons/audio/config.cpp Normal file
View File

@ -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"

View File

@ -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"

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.