Watch
-
Add Favorite
This addon allows server owners to add sound managing functionality to a source server, without the need of a separate plug-in such as Mani Admin. It also exposes functions for EventScripts scripters to work with to add sound managing functionality to their script in seconds!
Specifics For Server Owners
Functionality provided by this system is limited, as it is intended more for scripters to use as a standardised way of creating a sound managing script. However, you will be able to do the following just with this addon:
It should be noted that all sounds added using SoundManager will automatically be added to the 'downloads' table upon map start, so you will not have to worry about registering the sound list every map start!
Specifics For EventScripts Scripters
This script can be used to create your own simple sound manager in seconds! Here's an example script that uses the SoundManager functionality:
The recommended functions that you have available are (under the soundmanager module):
SoundManager also works with objects using the Sound class, to better organise Sounds. Here are the recommended exposed functions for the Sound class, which can be used on the Sound objects:
In addition to all of the above exposed functions, you can also subscribe to events that are fired by soundmanager. These do not require the "from soundmanager import *" line, as they use the EventScripts event firing system. The events available at current are:
For these events, the event_vars available are:
Extract contents of the *.zip file into your cstrike directory. Add es_load soundmanager to your autoexec.cfg. You're ready to use SoundManager! For those wanting to script with SoundManager, use "from soundmanager import *" to retrieve the methods from soundmanager. Note: soundmanager must be loaded before your own soundmanager mod is loaded.
v1.0.1:
- Fixed copy-paste error. Silly me :)
( Previous Versions )
Description
InformationThis addon allows server owners to add sound managing functionality to a source server, without the need of a separate plug-in such as Mani Admin. It also exposes functions for EventScripts scripters to work with to add sound managing functionality to their script in seconds!
Specifics For Server Owners
Functionality provided by this system is limited, as it is intended more for scripters to use as a standardised way of creating a sound managing script. However, you will be able to do the following just with this addon:
- Add/Remove sounds via RCON, e.g.: sm_add_sound "mySound" "mySound.mp3"; sm_remove_sound "mySound"
- Play/Emit/Stop sounds via RCON, by multiple filters (i.e. by player, by group of player, by all players), e.g.: sm_play_sound "mySound" player 5; sm_stop_sound "mySound" all
- Modify global sound properties via RCON, e.g.: sm_global_volume 0.5; sm_global_attenuation 0.2
- Of course, as these are RCON commands, you can add them to your autoexec.cfg file to easily set up a list of sounds to use, and to quickly configure the SoundManager.
It should be noted that all sounds added using SoundManager will automatically be added to the 'downloads' table upon map start, so you will not have to worry about registering the sound list every map start!
Specifics For EventScripts Scripters
This script can be used to create your own simple sound manager in seconds! Here's an example script that uses the SoundManager functionality:
import es |
The recommended functions that you have available are (under the soundmanager module):
addSound(soundname, filename, [volume], [attenuation], [length]) |
SoundManager also works with objects using the Sound class, to better organise Sounds. Here are the recommended exposed functions for the Sound class, which can be used on the Sound objects:
getSoundname() |
In addition to all of the above exposed functions, you can also subscribe to events that are fired by soundmanager. These do not require the "from soundmanager import *" line, as they use the EventScripts event firing system. The events available at current are:
- sound_play
- sound_emit
- sound_stop
For these events, the event_vars available are:
- soundname: Name of the sound triggered.
- filename: File name of the sound triggered.
- volume: Volume of the sound triggered.
- attenuation: Attenuation of the sound triggered.
- length: Length of the sound triggered.
- filtertype: Type of the filter for the sound triggered; Can be either:
- "player" – event occurred on a player.
- "entity" – event occurred on an entity.
- "list" – event occurred on a filtered list of players.
- "all" – event occurred on all players.
- filtervalue: Value of the filter according to the filtertype above, i.e.:
- For "player", this will be the playerID of the player.
- For "entity", this will be the entityIndex of the entity.
- For "list", this will be the list filter string of the players.
- For "all", this will be an empty string ("").
Installation
Version Notes For v1.0.1 (Announce this update)
Updated on: 2009-04-06 17:24:04 EST by ashbash1987v1.0.1:
- Fixed copy-paste error. Silly me :)
( Previous Versions )
Find Servers
Servers running this addon.
Request a new feature
featurelist.org: http://featurelist.org/soundmanager
Addon Details
Upload Addon