Audio at range fix
This commit is contained in:
@@ -24,6 +24,10 @@
|
||||
#define TBD_M119_SHOT_SOUNDSET tbd_m119_shot_soundset
|
||||
#define TBD_M119_SHOT_SOUNDSHADER tbd_M119_shot_soundshader
|
||||
|
||||
#define TBD_M119_SHOT_MEADOWS_SOUNDSHADER tbd_M119_shot_meadows_soundshader
|
||||
#define TBD_M119_SHOT_HOUSES_SOUNDSHADER tbd_M119_shot_houses_soundshader
|
||||
#define TBD_M119_SHOT_FOREST_SOUNDSHADER tbd_M119_shot_forest_soundshader
|
||||
|
||||
#define TBD_MORTARS_105mm_ROUND_HE_CHARGE_1 tbd_mortars_105mm_round_he_charge_1
|
||||
#define TBD_MORTARS_105mm_ROUND_HE_CHARGE_2 tbd_mortars_105mm_round_he_charge_2
|
||||
#define TBD_MORTARS_105mm_ROUND_HE_CHARGE_3 tbd_mortars_105mm_round_he_charge_3
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class CfgSoundSets {
|
||||
class TBD_M119_SHOT_SOUNDSET {
|
||||
soundShaders[] = {QUOTE(TBD_M119_SHOT_SOUNDSHADER)};
|
||||
soundShaders[] = {QUOTE(TBD_M119_SHOT_MEADOWS_SOUNDSHADER),QUOTE(TBD_M119_SHOT_FOREST_SOUNDSHADER),QUOTE(TBD_M119_SHOT_HOUSES_SOUNDSHADER)};
|
||||
volumeFactor = 1.6;
|
||||
volumeCurve = "InverseSquare2Curve";
|
||||
sound3DProcessingType = "WeaponMediumShot3DProcessingType";
|
||||
@@ -8,5 +8,9 @@ class CfgSoundSets {
|
||||
spatial = 1;
|
||||
doppler = 0;
|
||||
loop = 0;
|
||||
frequencyRandomizer = 2;
|
||||
frequencyRandomizerMin = 0.2;
|
||||
obstructionFactor = 0;
|
||||
occlusionFactor = 0.3;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,28 +1,36 @@
|
||||
class CfgSoundShaders {
|
||||
class TBD_M119_SHOT_SOUNDSHADER {
|
||||
|
||||
class TBD_M119_SHOT_MEADOWS_SOUNDSHADER {
|
||||
samples[] = {{QPATHTOF(TBD_M119\sounds\M119shot.ogg), 1}};
|
||||
volume = 4;
|
||||
range = 2500;
|
||||
volume = "2 * (meadows max sea) * (1 - (interior * 0.7))";
|
||||
range = 5000;
|
||||
rangeCurve[] = {{0, 1},
|
||||
{5, 1},
|
||||
{6, 1},
|
||||
{150, 1},
|
||||
{300, 1},
|
||||
{450, 1},
|
||||
{500, 1},
|
||||
{600, 0.95},
|
||||
{750, 0.90},
|
||||
{900, 0.85},
|
||||
{1050, 0.80},
|
||||
{1200, 0.75},
|
||||
{1350, 0.70},
|
||||
{1500, 0.65},
|
||||
{1750, 0.60},
|
||||
{1900, 0.55},
|
||||
{2050, 0.50},
|
||||
{2200, 0.45},
|
||||
{2350, 0.40},
|
||||
{2500, 0.35}
|
||||
{5000, 1}
|
||||
};
|
||||
};
|
||||
|
||||
class TBD_M119_SHOT_HOUSES_SOUNDSHADER {
|
||||
samples[] = {{QPATHTOF(TBD_M119\sounds\M119shot.ogg), 1}};
|
||||
volume = "2 * houses * (1 - (interior * 0.7))";
|
||||
range = 5000;
|
||||
rangeCurve[] = {{0, 1},
|
||||
{5, 1},
|
||||
{6, 1},
|
||||
{5000, 1}
|
||||
};
|
||||
};
|
||||
|
||||
class TBD_M119_SHOT_FOREST_SOUNDSHADER {
|
||||
samples[] = {{QPATHTOF(TBD_M119\sounds\M119shot.ogg), 1}};
|
||||
volume = "2 * (forest max trees) * (1 - (interior * 0.7))";
|
||||
range = 5000;
|
||||
rangeCurve[] = {{0, 1},
|
||||
{5, 1},
|
||||
{6, 1},
|
||||
{5000, 1}
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
15
addons/m119/tbd_m119/cfgSound3DProcessors.hpp
Normal file
15
addons/m119/tbd_m119/cfgSound3DProcessors.hpp
Normal file
@@ -0,0 +1,15 @@
|
||||
class cfgSound3DProcessors {
|
||||
|
||||
class tbd_m119Tail_3DProcessingType
|
||||
{
|
||||
innerRange = 20;
|
||||
range = 1000;
|
||||
typer = "panner";
|
||||
rangeCurve = "InverseSquare3Curve";
|
||||
};
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -17,3 +17,4 @@ class Mode_SemiAuto;
|
||||
#include "CfgVehicles.hpp"
|
||||
#include "CfgAnimationSourceSounds.hpp"
|
||||
#include "CfgMoves.hpp"
|
||||
#include "cfgSound3DProcessors.hpp"
|
||||
|
||||
Reference in New Issue
Block a user