Re-exports: Sounds
public class SoundInstance
public class SoundDefinition
Members:
construct(string file)construct(string file, boolean looping)construct(string file, boolean looping, boolean is3D)construct(SoundDefinition cloneFrom)play() returns SoundInstance Plays this sound for all Players with a default duration. Use this if you don’t care when the SoundHandle gets recycled.play(int duration) returns SoundInstance Plays this sound for all Players with the given duration. The duration should be close to the length of the soundfile. Use this to recycle soundhandles immeditely when they finish, allowing for rapid succession of sounds.play(int duration, int volume) returns SoundInstanceplayForPlayer(player p) returns SoundInstance Plays this sound for the given Player with a default duration. See play() for more infoplayForPlayer(player p, int duration) returns SoundInstance Plays this sound for the given Player with the given duration. See play() for more infoplayOnPoint(vec3 target) returns SoundInstanceplayOnPoint(vec3 target, int duration) returns SoundInstancepublic class DynamicSound
Members:
construct(SoundDefinition soundHandle)setTargetPitch(real pitch)play()setAbsolutePitch(real pitch)override function onTimedLoop()constant DEFAULT_SOUND_STOPS_ON_LEAVE_RANGE = true
🔧 Configurable. Override it in your map’s config package.
constant DEFAULT_SOUND_FADE_IN_RATE = 10
🔧 Configurable. Override it in your map’s config package.
constant DEFAULT_SOUND_FADE_OUT_RATE = 10
🔧 Configurable. Override it in your map’s config package.
constant DEFAULT_SOUND_EAX_SETTINGS = "CombatSoundsEAX"
🔧 Configurable. Override it in your map’s config package.
constant DEFAULT_SOUND_VOLUME = 127
🔧 Configurable. Override it in your map’s config package.
constant DEFAULT_SOUND_PITCH = 1.
🔧 Configurable. Override it in your map’s config package.
constant DEFAULT_SOUND_DURATION = 10000
🔧 Configurable. Override it in your map’s config package.
constant SOUND_CHANNEL = 5
🔧 Configurable. Override it in your map’s config package.
constant SOUND_MIN_DIST = 600.
🔧 Configurable. Override it in your map’s config package.
constant SOUND_MAX_DIST = 8000.
🔧 Configurable. Override it in your map’s config package.
constant SOUND_DIST_CUT = 1500.
🔧 Configurable. Override it in your map’s config package.