Author
|
|
Senior Member
|
Plugin ID:
|
5547
|
Plugin Version:
|
3.7.8
|
Plugin Category:
|
Gameplay
|
Plugin Game:
|
Any
|
Plugin Dependencies:
|
|
Servers with this Plugin:
|
|
| |
Plugin Description:
|
Allows clients to stop ambient sounds / music played by the map, and control the volume of said sounds.
|
|
|
02-24-2017
, 20:12
[ANY] Toggle Music & Volume Control (3.7.8, 2017-11-21)
|
#1
|
Info
I made this plugin specifically for CS:GO ZE gamemode as the maps tend to have many sounds playing which by default cannot be turned off. Although I have only tested this with CS:GO it should work for any Source game (such as CS:S). This plugin has been through many revisions but I am happy to say it is at a point where it works 100%. Please test and give me any feedback you may have.
*Notes*- The plugin seems to be bugged on Linux servers, sounds will not terminate and may overlap. It should work fine on Windows servers.
- Versions before 3.7.6 may cause server crashes, ensure you update
- Make sure you have the latest version of dhooks installed
Tested & Working on:- ze_pizzatime_v2
- ze_ffvii_mako_reactor_p8
- zm_uprugiy_xep_v26
Credits to Mitch for key pieces of code that allows this to work & which this plugin is based.
Commands / Cvar
Code:
sm_music - Calls the music toggle menu
sm_stopmusic - Stops music immediately
sm_volume - Calls the volume controls menu
sm_togglemusic_debug - Default "0", change to "1" to enable debug print
Changelog:
Quote:
Version 3.7.0:
- Added more channels to global sounds, to prevent issues with overlap
- Added support for FadeOut command (3.7.1)
- Moved sound caching to PlaySound command in case the map modifies the entity (3.7.1)
- Prevent CS:GO round start / death sounds from playing (3.7.3)
- More compatibility changes for maps that didn't work previously with this plugin (3.7.3)
- Fixed kill input on dhooked entities causing a crash from a void parameter (3.7.5)
- Map volume changes will now be ignored (3.7.5)
- Fixed 3.7.5 not playing music on some maps (3.7.6)
- Added support for "ToggleSound" input (3.7.7)
- Added debug convar sm_togglemusic_debug (3.7.7)
- Possible work-around for soundscripts through ambient_generic (3.7.8)
- Support for point_clientcommand (fix for ze_surf_facility) (3.7.8)
Version 3.6.5:
|
>> Github Repo <<
Download Latest Version 3.7.8:
Download compiled plugin (.smx)
Install DHooks, this is a requirement
Last edited by Agent Wesker; 11-21-2017 at 19:55.
Reason: Info Changes
|
|
|
|