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

[L4D & L4D2] DSP Effects (1.10) [10-Jan-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
7854
Plugin Version:
1.10
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
3 
Plugin Description:
Distorts and muffles a Survivors sound when pinned by Special Infected, incapacitated or black and white.
Old 11-15-2021 , 16:56   [L4D & L4D2] DSP Effects (1.10) [10-Jan-2024]
Reply With Quote #1

About:
  • Distorts and muffles a Survivors sound when pinned by Special Infected, incapacitated or black and white.
  • Thanks to "Lux" for the DSP effects stock (now part of Left 4 DHooks).



CVars:

Saved to l4d_dsp_effects.cfg in your servers \cfg\sourcemod\ folder.

PHP Code:
// 0=Plugin off, 1=Plugin on.
l4d_dsp_effects_allow "1"

// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d_dsp_effects_modes ""

// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d_dsp_effects_modes_off ""

// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
l4d_dsp_effects_modes_tog "0"

// 0=Off. 1=Apply muffle effect when incapped and not pinned by Special Infected.
l4d_dsp_effects_incap "1"

// 0=Off. 1=Apply muffle effect when pinned by a Special Infected.
l4d_dsp_effects_special "1"

// 0=Off. 1=Apply muffle effect when black and white.
l4d_dsp_effects_strike "1"

// DSP Effects plugin version
l4d_dsp_effects_version 


Changes:
Code:
1.10 (10-Jan-2024)
    - Fixed the "l4d_dsp_effects_modes_tog" cvar detecting Versus and Survival modes incorrectly.

1.9 (25-Sep-2023)
    - Fixed resetting the sound when incapacitated and special infected stop pinning.
    - Fixed not setting the sound if black and white after defib.
    - Thanks to "Automage" for reporting and helping.

1.8 (24-Sep-2023)
    - Fixed invalid handle errors. Thanks to "Automage" for reporting.

1.7 (22-Sep-2023)
    - No longer resets the DSP level when going AFK.
    - No longer resets the DSP level when using Adrenaline.
    - Changed the thirdstrike check.
    - Thanks to "Automage" for reporting and testing.

1.6 (01-Nov-2022)
    - Fixed the effect playing after being revived and not black and white, due to conflict with other plugins.

1.5 (01-Jun-2022)
    - Fixed random rare server crash.

1.4 (02-Feb-2022)
    - Fixed invalid client errors. Thanks to "sonic155" for reporting.

1.3 (20-Nov-2021)
    - Fixed ledge hanging distorting sound. Thanks to "TypicalType" for reporting.

1.2 (18-Nov-2021)
    - Changed gamemode check from creating an entity to use Left4DHooks "L4D_GetGameModeType" native.

1.1 (16-Nov-2021)
    - Fixed not restoring sound when healed. Thanks to "sonic155" for reporting.

1.0 (15-Nov-2021)
    - Initial release.


Requirements:
  1. Uses Left 4 DHooks Direct plugin version 1.73 or newer.


Installation:
DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires Left 4 DHooks Direct!
  1. Download the .smx file and put into your servers \addons\sourcemod\plugins folder.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_dsp_effects.sp - 63 views - 15.5 KB)
File Type: smx l4d_dsp_effects.smx (10.3 KB, 92 views)
__________________

Last edited by Silvers; 01-10-2024 at 11:58.
Silvers is offline
thewintersoldier97
Senior Member
Join Date: Aug 2021
Location: Vietnam
Old 11-16-2021 , 00:48   Re: [L4D & L4D2] DSP Effects (1.0) [15-Nov-2021]
Reply With Quote #2

Looks fun Great work Silvers!
__________________

Looking for some fun!
thewintersoldier97 is offline
sonic155
Senior Member
Join Date: Mar 2019
Old 11-16-2021 , 11:58   Re: [L4D & L4D2] DSP Effects (1.0) [15-Nov-2021]
Reply With Quote #3

works great but i have my server to one incap before B/W so the sound never comes back after healing any way of putting a counter for how many downs allowed before the plugin counts as B/W ?
if not then ill just disable the B/W sound part then its great =p
sonic155 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-16-2021 , 12:22   Re: [L4D & L4D2] DSP Effects (1.1) [16-Nov-2021]
Reply With Quote #4

I forgot to reset when healed. Thanks!

Code:
1.1 (16-Nov-2021)
    - Fixed not restoring sound when healed. Thanks to "sonic155" for reporting.
__________________
Silvers is offline
sonic155
Senior Member
Join Date: Mar 2019
Old 11-16-2021 , 17:42   Re: [L4D & L4D2] DSP Effects (1.1) [16-Nov-2021]
Reply With Quote #5

thank you =O
sonic155 is offline
TypicalType
Member
Join Date: Mar 2020
Location: Brazil
Old 11-19-2021 , 22:03   Re: [L4D & L4D2] DSP Effects (1.2) [18-Nov-2021]
Reply With Quote #6

the sound not restoring issue is also happening when the survivor hangs on the ledge
TypicalType is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-19-2021 , 22:35   Re: [L4D & L4D2] DSP Effects (1.3) [20-Nov-2021]
Reply With Quote #7

Thanks, please let me know if this fixes it.

Code:
1.3 (20-Nov-2021)
    - Fixed ledge hanging distorting sound. Thanks to "TypicalType" for reporting.
__________________
Silvers is offline
sonic155
Senior Member
Join Date: Mar 2019
Old 01-29-2022 , 23:11   Re: [L4D & L4D2] DSP Effects (1.3) [20-Nov-2021]
Reply With Quote #8

L 01/29/2022 - 201:12: [SM] Exception reported: Entity 6 (6) is invalid
L 01/29/2022 - 201:12: [SM] Blaming: l4d_dsp_effects.smx
L 01/29/2022 - 201:12: [SM] Call stack trace:
L 01/29/2022 - 201:12: [SM] [0] SetEntDataFloat
L 01/29/2022 - 201:12: [SM] [1] Line 340, C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\inclu de\left4dhooks_lux_library.inc::Terror_SetPen dingDspEffect
L 01/29/2022 - 201:12: [SM] [2] Line 383, l4d_dsp_effects.sp::SetEffects
L 01/29/2022 - 201:12: [SM] [3] Line 143, l4d_dsp_effects.sp::ResetPlugin
L 01/29/2022 - 201:12: [SM] [4] Line 134, l4d_dsp_effects.sp::OnPluginEnd
L 01/29/2022 - 201:12: Error log file session closed.
sonic155 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-02-2022 , 08:33   Re: [L4D & L4D2] DSP Effects (1.4) [02-Feb-2022]
Reply With Quote #9

Fixed.

Code:
1.4 (02-Feb-2022)
    - Fixed invalid client errors. Thanks to "sonic155" for reporting.
__________________
Silvers is offline
sonic155
Senior Member
Join Date: Mar 2019
Old 02-02-2022 , 11:08   Re: [L4D & L4D2] DSP Effects (1.4) [02-Feb-2022]
Reply With Quote #10

Quote:
Originally Posted by Silvers View Post
Fixed.

Code:
1.4 (02-Feb-2022)
    - Fixed invalid client errors. Thanks to "sonic155" for reporting.
nice work =D
sonic155 is offline
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 20:18.


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