The FAKK sound system uses the MILES SOUND SYSTEM version 6.0.
MILES can be turned on and off with the cvar s_usemiles. If it is turned
off, it will use the old quake sound system.
The old Quake sound system is mostly still there and should still work
except the music code. Also the Quake sound system doesn’t use the
same volume/min distance scheme so these values don’t carry over
to the Quake system.
Client side – animation:
Client side - script:
Server side – from entity code:
Client side - add to client part of animations in the tiki:
Client side – script
Client side – code
or
Note that minimum distance values are specified in pixels. Basically
how the minimum distance stuff works is that every time the distance doubles
from the minimum distance the volume is halved. So from 0 up to the mindist
the volume is 1, at mindist * 2 the volume is ½, at min_dist *
4 volume = ¼, and so on.
The channel, volume, and minimum distance parameters are all optional.
They will default to other values if not specified. The channel will default
to CHAN_AUTO.
The volume and minimum distance will default to whatever is specified
for this particular sound in the global/sound0.txt file. If either of
these is not specified in global/sound0.txt for this sound then the global
default(s) will be used (also defined in sound0.txt).
This file specifies what values to use for the default volume and minimum
distance values should be used overall and for specific sounds. This makes
it so you don’t have to specify these values every place you play
a sound. This file should be located in the global directory.
To change the global default values make sure the following commands
are in this file:
To change the default values for a specific sound add the following:
For example:
|