Raised This Month: $219 Target: $400
 54% 

Solved [CS:GO] Limit shot sound distance for deathmatch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
t1mc
Junior Member
Join Date: Dec 2019
Old 02-04-2020 , 19:15   [CS:GO] Limit shot sound distance for deathmatch
Reply With Quote #1

I just can't figure out how brutalcs and warmup deathmatch servers have limited the weapon shot sounds you can hear on the map. For example, when you are on A, you can't the hear the shots on B. Looking at both their SM plugins, none of them is using a plugin that limits that.

If anyone has an idea or if there is a plugin available, I'd be very happy to know about it. Your help is greatly appreciated.

Last edited by t1mc; 02-05-2020 at 16:01.
t1mc is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 02-04-2020 , 19:25   Re: [CS:GO] Limit shot sound distance for deathmatch
Reply With Quote #2

They may have simply built it into the plugin. It's something I've been experimenting in my deathmatch plugin but isn't yet available in the beta.
__________________
Maxximou5 is offline
t1mc
Junior Member
Join Date: Dec 2019
Old 02-05-2020 , 04:44   Re: [CS:GO] Limit shot sound distance for deathmatch
Reply With Quote #3

Quote:
Originally Posted by Maxximou5 View Post
They may have simply built it into the plugin. It's something I've been experimenting in my deathmatch plugin but isn't yet available in the beta.
Thanks for the reply! Good to know that it doesn't exist publicly after searching hours on this forum and on Google.

How complex is it in your opinion to build this?
t1mc is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 02-05-2020 , 05:19   Re: [CS:GO] Limit shot sound distance for deathmatch
Reply With Quote #4

Check the player position and only reproduce his shoot sounds to players in the same map position.

Exists a netprop that tell you the position in the map, like when you use radio commands that says your position, but i dont remember what netprop, I remember that I saw a thread about it. If not, you can use my devzones plugin for make different zones and only the people on these zones can hear his shots. Or if not limit the shot sound by distance for example: distance > 1000 then block sound).

Plugin doable and not hard to do.


EDIT: ok the netprop for find the position is "m_szLastPlaceName"
__________________
Veteran SourceMod Coder -> Activity channel
Taking some paid jobs and selling some private stuff.
Contact: Steam, Telegram or discord ( Franc1sco#7876 ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 02-05-2020 at 05:39.
Franc1sco is online now
Send a message via MSN to Franc1sco
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 02-05-2020 , 05:31   Re: [CS:GO] Limit shot sound distance for deathmatch
Reply With Quote #5

Ok I made a plugin for auto limit hear shot sounds for players on the same area.

Try it and tell me if works well -> MOVED TO https://forums.alliedmods.net/showthread.php?p=2682812
__________________
Veteran SourceMod Coder -> Activity channel
Taking some paid jobs and selling some private stuff.
Contact: Steam, Telegram or discord ( Franc1sco#7876 ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 02-05-2020 at 07:44.
Franc1sco is online now
Send a message via MSN to Franc1sco
raj kaul
Senior Member
Join Date: Mar 2018
Location: www.lotgaming.xyz
Old 02-05-2020 , 07:06   Re: [CS:GO] Limit shot sound distance for deathmatch
Reply With Quote #6

Quote:
Originally Posted by Franc1sco View Post
Ok I made a plugin for auto limit hear shot sounds for players on the same area.

Try it and tell me if works well -> https://github.com/Franc1sco/Franug-HearShotsByArea

issue - i can't hear any close fire sound also
__________________
raj kaul is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 02-05-2020 , 07:39   Re: [CS:GO] Limit shot sound distance for deathmatch
Reply With Quote #7

Quote:
Originally Posted by raj kaul View Post
issue - i can't hear any close fire sound also
Added cvar for control the max distance for hear.

Code:
sm_franugshotsbyarea_distance "1000.0" // Max distance from the shooter for don't hear him when the listener dont are in the same map place that shooter. 0.0 = use only map places

MOVED TO https://forums.alliedmods.net/showthread.php?p=2682812
__________________
Veteran SourceMod Coder -> Activity channel
Taking some paid jobs and selling some private stuff.
Contact: Steam, Telegram or discord ( Franc1sco#7876 ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 02-05-2020 at 07:44.
Franc1sco is online now
Send a message via MSN to Franc1sco
Reply


Thread Tools
Display Modes

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 10:57.


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