AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Solved [CS:GO] Limit shot sound distance for deathmatch (https://forums.alliedmods.net/showthread.php?t=321321)

t1mc 02-04-2020 19:15

[CS:GO] Limit shot sound distance for deathmatch
 
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.

Maxximou5 02-04-2020 19:25

Re: [CS:GO] Limit shot sound distance for deathmatch
 
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.

t1mc 02-05-2020 04:44

Re: [CS:GO] Limit shot sound distance for deathmatch
 
Quote:

Originally Posted by Maxximou5 (Post 2682759)
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?

Franc1sco 02-05-2020 05:19

Re: [CS:GO] Limit shot sound distance for deathmatch
 
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"

Franc1sco 02-05-2020 05:31

Re: [CS:GO] Limit shot sound distance for deathmatch
 
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

raj kaul 02-05-2020 07:06

Re: [CS:GO] Limit shot sound distance for deathmatch
 
Quote:

Originally Posted by Franc1sco (Post 2682799)
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

Franc1sco 02-05-2020 07:39

Re: [CS:GO] Limit shot sound distance for deathmatch
 
Quote:

Originally Posted by raj kaul (Post 2682807)
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


All times are GMT -4. The time now is 02:22.

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