made al_referencedistance and al_rollofffactor unconfigurable to prevent players getting an unfair advantage

This commit is contained in:
drian
2021-03-08 16:31:37 +01:00
parent 9dfdae3ba4
commit 162a078ee9
2 changed files with 2 additions and 6 deletions
-4
View File
@@ -3306,10 +3306,6 @@ docref [waterlevel];
docident [waveheight] [Sets the wave height of water, between 0 (completely still, no waves at all) and 1 (very choppy).];
docargument [F] [wave height (floating-point value)] [min 0/max 1/default 0.3];
docsection [Sound]
docident [al_referencedistance] [The distance from the source emitting the sound to the listener.];
docargument [V] [] [min 0/max 1000000/default 400];
docident [al_rollofffactor] [This value indicates the relative "strength" of a sound (how far away the sound can be heard).];
docargument [V] [] [min 0/max 1000000/default 100];
docident [audio] [Enables or disables the audio subsystem in AC.];
docargument [B] [enable] [min 0/max 1/default 1];
docident [audiodebug] [Enables verbose output for debugging purposes.];
+2 -2
View File
@@ -4,8 +4,8 @@
#define DEBUGCOND (audiodebug==1)
VAR(al_referencedistance, 0, 400, 1000000);
VAR(al_rollofffactor, 0, 100, 1000000);
int al_referencedistance = 400; // The distance from the source emitting the sound to the listener
int al_rollofffactor = 100; // This value indicates the relative "strength" of a sound (how far away the sound can be heard)
// represents an OpenAL source, an audio emitter in the 3D world