AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Ambient Sounds (https://forums.alliedmods.net/showthread.php?t=205644)

Franc1sco 01-12-2013 22:08

[ANY] Ambient Sounds
 
Description:

Ambient sounds, similar function of zombiereloaded or zombieriot but more advanced.


Features:

-Play a random sound to clients always (ambient sound mode)
-clientpref support ( use !settings in-game for enable or disable ambient sound)
-Easy to configuration, To add a ambient sound, just add it to the sound/ambientsounds folder.



Requeriments:
Files Management Interface
Sound Info Library Extension



Cvars:
Put in server.cfg
Code:

sm_ambientsounds_folder "sound/sm_ambientsounds" // The sound folder where to take a sound to play for ambient music
sm_ambientsounds_volume "0.7" // Volume of the ambient sound. [1.0 = Max volume | 0.0001 = Not audible
sm_ambientsounds_enable "1" // Enable/disable the ambient sound plugin. 1 = enable , 0 = disable



Know bugs:
-None yet



btw, tested in my test server and my zombie riot server and works fine


Donations (optional):

If you apreciate my work, you can donate me via paypal or with a trade offer


Download:

Main repository
Direct download
Code changes

Franc1sco 01-13-2013 08:23

Re: [ANY] Ambient Sounds
 
New version 1.1

-Added new feature for control volume:
Code:

sm_ambientsounds_volume "0.7" // Volume of the ambient sound. [1.0 = Max volume | 0.0001 = Not audible
-bugfixeds
-Changed the default folder to "sound/sm_ambientsounds"

Tested in my zombie riot server and works fine :)

MySTHiC 01-13-2013 08:25

Re: [ANY] Ambient Sounds
 
thanks, will check it out

Franc1sco 01-13-2013 09:18

Re: [ANY] Ambient Sounds v1.1.1
 
New version 1.1.1

-Fixed a bug that in rare occasion in round start produce double ambient music

Franc1sco 01-13-2013 16:15

Re: [ANY] Ambient Sounds v1.2
 
New version 1.2

-Added cvar for enable/disable the ambient sound for all clients
Code:

sm_ambientsounds_enable "1" // Enable/disable the ambient sound plugin. 1 = enable , 0 = disable
You can enable/disable the ambient sound dynamically ingame.

For example:
you can put in rcon (or with a plugin) sm_ambientsounds_enable 0 for disable the sound instantly or put sm_ambientsounds_enable 1 for enable the sound instantly. Ideal if you are looking to the ambient sound is enabled only in a certain round or in a certain moment

Lord_Rofl 05-22-2013 12:35

Re: [ANY] Ambient Sounds v1.2
 
When the track is over? Change random to another or loop?

Franc1sco 05-23-2013 03:20

Re: [ANY] Ambient Sounds v1.2
 
Quote:

Originally Posted by Lord_Rofl (Post 1956360)
When the track is over? Change random to another or loop?

This plugin always select a random sound from the directory when the track is over

Lord_Rofl 05-23-2013 16:35

Re: [ANY] Ambient Sounds v1.2
 
Ahh okay sounds good :)

Can Sourcemod handle that all hear the same sound and the same part of the song?

Kalle4000 10-04-2013 11:52

Re: [ANY] Ambient Sounds v1.2
 
So if a round ends, will the plugin change to a new song at next round? or will it continue playing the same song until it has finished? :)

Franc1sco 10-04-2013 12:21

Re: [ANY] Ambient Sounds v1.2
 
Quote:

Originally Posted by Kalle4000 (Post 2045036)
So if a round ends, will the plugin change to a new song at next round? or will it continue playing the same song until it has finished? :)

new song at next round


All times are GMT -4. The time now is 14:40.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.