Raised This Month: $32 Target: $400
 8% 

[Solved] (CS:S) Lower your own gun sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sinsic
Senior Member
Join Date: May 2012
Old 07-24-2014 , 23:19   [Solved] (CS:S) Lower your own gun sound
Reply With Quote #1

Hi,
I'm writing a plugin which lowers map music and gun sounds. I managed lowering map musics and other players gun sounds but couldn't find a way to lower the sound of your own gun.

Can someone point me to the right way?

Thanks in advance.

Edit: For anyone looking for the answer: You can't do this in a nice way. Synchronisation would be off at best.
__________________

Last edited by sinsic; 07-25-2014 at 17:21.
sinsic is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 07-25-2014 , 00:58   Re: CS:S Lower your own gun sound
Reply With Quote #2

There is a round shape wheel look design on the speaker or somewhere along the cable.
Have you try to turn them around to clock or counter clock wise direction?
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.
GsiX is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 07-25-2014 , 01:09   Re: CS:S Lower your own gun sound
Reply With Quote #3

I think you have to disable player prediction. Gunshot sound is directly related to weapons. We can only control it from the server side by disabling prediction. But disabling it made the game a bit laggy

Last edited by kadet.89; 07-25-2014 at 01:11.
kadet.89 is offline
Send a message via Skype™ to kadet.89
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 07-25-2014 , 02:17   Re: CS:S Lower your own gun sound
Reply With Quote #4

It is possible that it depends on the weapon though.
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.
Dr. Greg House is offline
sinsic
Senior Member
Join Date: May 2012
Old 07-25-2014 , 09:56   Re: CS:S Lower your own gun sound
Reply With Quote #5

Quote:
Originally Posted by GsiX View Post
There is a round shape wheel look design on the speaker or somewhere along the cable.
Have you try to turn them around to clock or counter clock wise direction?
Thank you for this reply which is a waste of space and time.
If you were sincere while writing this, we want to hear each other speak, some maps at zombie escape has very loud music and when we use zr_ammo (unlimited bullets) weapon sounds are just unbearable.

Quote:
Originally Posted by kadet.89 View Post
I think you have to disable player prediction. Gunshot sound is directly related to weapons. We can only control it from the server side by disabling prediction. But disabling it made the game a bit laggy
I hope it is not like that :/, I tried it at my zombie server when "zombie hands" plugin randomly showed normal hands, it fixed the problem but very laggy game as you said :/

Quote:
Originally Posted by Dr. Greg House View Post
It is possible that it depends on the weapon though.
How about all of them?



As I said I managed to lower other peoples gun sounds but can't lower players own gun sounds
__________________
sinsic is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 07-25-2014 , 13:13   Re: CS:S Lower your own gun sound
Reply With Quote #6

try to look through the datamaps for
- CCSPlayer - player
- CPredictedViewModel - predicted_viewmodel

It may be possible to block the event that causes sounds playback. Then you can play a quiet version (with a long lag because of no prediction)
I'm sure that the sound is tied to the weapon. Even if my ping 300ms, the sound plays without delay. Сlients weapon sound always predicts on the client side

Last edited by kadet.89; 07-26-2014 at 03:07.
kadet.89 is offline
Send a message via Skype™ to kadet.89
sinsic
Senior Member
Join Date: May 2012
Old 07-25-2014 , 17:18   Re: CS:S Lower your own gun sound
Reply With Quote #7

Quote:
Originally Posted by kadet.89 View Post
try to look through the datamaps for
- CCSPlayer - player
- CPredictedViewModel - predicted_viewmodel

It may be possible to block the event that causes sounds playback. Then you can play a quiet version (with a long lag because of no prediction)
I'm sure that the sound is tied to the weapon. Even if my ping 300ms, the sound plays without delay. Сlient's weapon sound always predicts on the client side
Thanks, with the example about ping, now I understand what the problem is.

I'll try what you suggest, if it doesn't feel/sound good with delay, I'll just leave players own sound levels at normal and lower the rest.

Thank you everyone for the inputs.
__________________
sinsic is offline
blodia
Veteran Member
Join Date: Sep 2009
Location: UK
Old 07-27-2014 , 13:20   Re: [Solved] (CS:S) Lower your own gun sound
Reply With Quote #8

setting "m_bPredictWeapons" to 0 on clients should disable weapon prediction , but the sounds will be delayed depending on ping and may cause other issues.
blodia 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 15:48.


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