Raised This Month: $51 Target: $400
 12% 

[CS:GO] Disable Game Sounds (1.3.1)


Post New Thread Reply   
 
Thread Tools Display Modes
cREANy0
SourceMod Donor
Join Date: Jul 2012
Location: Germany
Old 10-08-2013 , 20:59   Re: [CS:GO] Disable Game Sounds (1.3.0)
Reply With Quote #21

Problem with server laggs fixed on 1.3.0

greetz cREANy0
__________________
cREANy0 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 10-09-2013 , 12:23   Re: [CS:GO] Disable Game Sounds (1.3.0)
Reply With Quote #22

Quote:
Originally Posted by cREANy0 View Post
Problem with server laggs fixed on 1.3.0

greetz cREANy0
I dont understand are you saying that your server no longer lags with 1.3.0, or are you saying that it lags now?
Mitchell is offline
cREANy0
SourceMod Donor
Join Date: Jul 2012
Location: Germany
Old 10-09-2013 , 17:17   Re: [CS:GO] Disable Game Sounds (1.3.0)
Reply With Quote #23

It's fixed with 1.3.0
__________________
cREANy0 is offline
XHeadHunterX
Member
Join Date: Aug 2013
Old 10-13-2013 , 20:25   Re: [CS:GO] Disable Game Sounds (1.3.0)
Reply With Quote #24

Wow, I've tried so many things to get this working, yet it was so simple! By the way, I understand what the other guy was saying with his 1 second that he can hear the sound. The round start music does not start when the round starts but it starts just before restarting the round. What I mean is when the round ends, you can hear the music start just before the round restarts and it stops as sound as you respawn (and the round has restarted). Maybe a timer would be necessary to solve this.

By the way, why do you hook the events twice? You hook once with EventHookMode_Pre and once without it. Also, I don't think that hooking the round_prestart is necessary in this case.

Anyway, thanks for finding this!
XHeadHunterX is offline
XHeadHunterX
Member
Join Date: Aug 2013
Old 10-13-2013 , 20:33   Re: [CS:GO] Disable Game Sounds (1.3.0)
Reply With Quote #25

Another question, why not use for(new i = 1; i <= MaxClients; i++) for all events to remove the code lines using new client = (GetClientOfUserId(GetEventInt(event, "userid"))); ? Is there any benefits of using both? This is just for personal knowledge

Last edited by XHeadHunterX; 10-13-2013 at 20:33.
XHeadHunterX is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 10-14-2013 , 11:29   Re: [CS:GO] Disable Game Sounds (1.3.0)
Reply With Quote #26

Quote:
Originally Posted by XHeadHunterX View Post
Another question, why not use for(new i = 1; i <= MaxClients; i++) for all events to remove the code lines using new client = (GetClientOfUserId(GetEventInt(event, "userid"))); ? Is there any benefits of using both? This is just for personal knowledge
Because player_spawn is fired when ever a player is spawned, so if you have 64 players in your server and they spawn all at the same time then it would do 64 loops of 0-64, which is very unnecessary for what i'm doing.

And i cant seem to replicate the other request about a timer; i dont hear the sound until the round_start.

Quote:
Originally Posted by XHeadHunterX View Post
By the way, why do you hook the events twice? You hook once with EventHookMode_Pre and once without it. Also, I don't think that hooking the round_prestart is necessary in this case.
I didnt notice if it would have an effect or not, i know that some of them probably could be removed.
This isnt perfect, but its the clostest thing i can get it to, since i cant hook the sound when it plays i have to guess to see if it plays. I.E. There's no way of me checking if it's playing on a client or not.

--------------------
Updated:
1.3.1: Removed some hooks that looks unnecessary. Added a few different hooks in attempt to stop all left over sounds.

Last edited by Mitchell; 10-14-2013 at 11:37. Reason: updated to 1.3.1
Mitchell is offline
El Curioso
Member
Join Date: Nov 2013
Location: Spain
Old 11-24-2013 , 18:13   Re: [CS:GO] Disable Game Sounds (1.2.0)
Reply With Quote #27

Quote:
Originally Posted by Mitchell View Post
Ill be adding an update that stops the endround sounds.

EDIT:
UPDATED to 1.3.0:
Will disable the round_end sound on all players.
I love your simple solution for canceling music!


But since round_end sound is no "music", stopping the music has no effect on this event.

I thing to implement "Music.StopAllExceptMusic" in this case should fix that issue.
El Curioso is offline
nesterov86
Junior Member
Join Date: Apr 2014
Location: Russia, Spb
Old 08-17-2014 , 04:29   Re: [CS:GO] Disable Game Sounds (1.3.1)
Reply With Quote #28

up
nesterov86 is offline
Send a message via ICQ to nesterov86 Send a message via Skype™ to nesterov86
nesterov86
Junior Member
Join Date: Apr 2014
Location: Russia, Spb
Old 08-23-2014 , 07:29   Re: [CS:GO] Disable Game Sounds (1.3.1)
Reply With Quote #29

still it would be nice to mute when laying bombs and ends when the duration of a round.
nesterov86 is offline
Send a message via ICQ to nesterov86 Send a message via Skype™ to nesterov86
Mitchell
~lick~
Join Date: Mar 2010
Old 08-25-2014 , 12:59   Re: [CS:GO] Disable Game Sounds (1.3.1)
Reply With Quote #30

If anybody would like to try and disable the round end sounds try this:
I was unable to try it since i'm not using a good enough computer to run cs:go
Attached Files
File Type: sp Get Plugin or Get Source (DisableGameSounds.sp - 736 views - 1.2 KB)
Mitchell is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:46.


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