AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] Disable Game Sounds (1.3.1) (https://forums.alliedmods.net/showthread.php?t=227735)

Mitchell 10-06-2013 16:25

[CS:GO] Disable Game Sounds (1.3.1)
 
1 Attachment(s)
CS:GO Disable Round Sounds.
Description:
This plugin removes those annoying long sounds at the begging of the round, and the looped sound after the round starts. I needed this personally cause it was ruining the ambient environment for my gamemode. You could plop this into your server and have another plugin play custom sounds at the begging of the round, just an idea that this plugin would allow you to do.
Small issue with the sound that likes to loop itself, it will play once and then fade; this is because SoundHooks do not work on these sounds (since they are 'clientsided')

You're welcome for finding a fix. I actually found it when looking through cvars, theres a max of the same sound you could play so i played with this and found out that i can stop the sound manually. It just cant use a sound hook on it weirdly.

Version Notes:
1.3.1: Removed most hooks on PRE, added a few different hooks in attempt to remove any left over sounds.
1.3.0: Added hooks for endround, also added Hook_Pre modes and post together.
1.2.0: Uses playgamesound on the clients, alot better than canceling specific sounds every 0.1 seconds.
1.1.0: Removed from gameframe.
1.0.0: initial release.

cREANy0 10-06-2013 17:56

Re: [CS:GO] Disable Game Sounds
 
I test this plugin on my Minigame Server atm and I notice that sometimes the map music dont stop at round end and is still running on new round.
Is there a way to fix this?

greetz cREANy0

Mitchell 10-06-2013 19:23

Re: [CS:GO] Disable Game Sounds
 
Quote:

Originally Posted by cREANy0 (Post 2046001)
I test this plugin on my Minigame Server atm and I notice that sometimes the map music dont stop at round end and is still running on new round.
Is there a way to fix this?

greetz cREANy0

Do you know the sound path that the game is playing?

PresidentEvil 10-06-2013 23:59

Re: [CS:GO] Disable Game Sounds
 
So is "removes" the round start music by lowing the games music volume to zero?

Mitchell 10-07-2013 02:07

Re: [CS:GO] Disable Game Sounds
 
Quote:

Originally Posted by PresidentEvil (Post 2046073)
So is "removes" the round start music by lowing the games music volume to zero?

This runs the function 'StopSound()' on all channels with the sound paths of the round_start sounds. It does nothing with the clients volume.

tumtum 10-07-2013 05:37

Re: [CS:GO] Disable Game Sounds
 
Quote:

Originally Posted by Mitchell (Post 2045959)
CS:GO Disable Round Sounds.
Description:
This plugin removes those annoying long sounds at the begging of the round, and the looped sound after the round starts. I needed this personally cause it was ruining the ambient environment for my gamemode. You could plop this into your server and have another plugin play custom sounds at the begging of the round, just an idea that this plugin would allow you to do.
Small issue with the sound that likes to loop itself, it will play once and then fade; this is because SoundHooks do not work on these sounds (since they are 'clientsided')

You're welcome for finding a fix. I actually found it when looking through cvars, theres a max of the same sound you could play so i played with this and found out that i can stop the sound manually. It just cant use a sound hook on it weirdly.

Version Notes:
1.0.0: initial release.

Nice Idea, but this plugin let the server do weird things. In my case i can't chat and it is not showing ct or t win.

cREANy0 10-07-2013 08:40

Re: [CS:GO] Disable Game Sounds
 
Quote:

Originally Posted by tumtum (Post 2046140)
Nice Idea, but this plugin let the server do weird things. In my case i can't chat and it is not showing ct or t win.

same for me.
Server start lagging after some hours.

greetz cREANy0

Mitchell 10-07-2013 08:57

Re: [CS:GO] Disable Game Sounds
 
Ill look into it, for now disable this plugin.
Ill probably hook round_start and a couple seconds after word.

tumtum 10-07-2013 09:00

Re: [CS:GO] Disable Game Sounds
 
Quote:

Originally Posted by cREANy0 (Post 2046191)
same for me.
Server start lagging after some hours.

greetz cREANy0

Mitchell, try to set volume 0 and remove stopsound.
Dunno if this way can work

See your message now lol ^^ ok hope you fix it =)

Mitchell 10-07-2013 09:28

Re: [CS:GO] Disable Game Sounds
 
Updated to 1.1.0 try the new plugin file, see how it works!


All times are GMT -4. The time now is 05:08.

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