From 7322799b78962dc14a92450c8842bcfd0894adc4 Mon Sep 17 00:00:00 2001 From: IndigoFox Date: Sat, 15 Jun 2024 16:43:56 -0700 Subject: [PATCH] add custom sounds support --- custom_sounds.hpp | 8 ++++++++ description.ext | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 custom_sounds.hpp diff --git a/custom_sounds.hpp b/custom_sounds.hpp new file mode 100644 index 0000000..9e66f13 --- /dev/null +++ b/custom_sounds.hpp @@ -0,0 +1,8 @@ + +// EXAMPLE +// class uncon_alarm +// { +// name = "uncon_alarm"; +// sound[] = {"AJ_CBRN_V2\sounds\AJ_warning_1.ogg", 0.9, 1, 5}; //directory, volume, pitch, range +// titles[]={}; +// }; \ No newline at end of file diff --git a/description.ext b/description.ext index 1efe1da..dd88aa5 100644 --- a/description.ext +++ b/description.ext @@ -96,6 +96,10 @@ class CfgFunctions { #include "custom_scripts.hpp" }; +class CfgSounds { + #include "custom_sounds.hpp" +}; + class CfgLeaflets { #include "custom_leaflets.hpp" };