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

[L4D2] modify sound?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edwinvega86
Senior Member
Join Date: Feb 2016
Old 07-07-2019 , 07:16   [L4D2] modify sound?
Reply With Quote #1

I have used this plugin for a long time.

https://forums.alliedmods.net/showthread.php?p=1542708

But I would like to know if the sound of the infected ones could be modified to make it more severe or acute to match its size, since a long time ago I found a complement that did but, did not take importance and now it's my headache. sorry for the English.
edwinvega86 is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 07-07-2019 , 20:05   Re: [L4D2] modify sound?
Reply With Quote #2

You could use a sound hook
https://sm.alliedmods.net/new-api/sd...ormalSoundHook
and change pitch according to size, depending on how much you change the pitch you may need to emit a second sound at same pitch for low pitches.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
edwinvega86
Senior Member
Join Date: Feb 2016
Old 07-08-2019 , 00:03   Re: [L4D2] modify sound?
Reply With Quote #3

thanks LUX. But my English is poor I would thank you very much for a simple example.
edwinvega86 is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 07-08-2019 , 00:06   Re: [L4D2] modify sound?
Reply With Quote #4

Happy to help, abit of optimization checking if the sound comes from a common infected before checking the sound string can help with performance, and using a stringmap too as they supaaa fast!
https://sm.alliedmods.net/new-api/adt_trie/StringMap

Enjoy

Saving a entity reference of the common infected entity is what i would do.

https://sm.alliedmods.net/new-api/ha...tIndexToEntRef
https://sm.alliedmods.net/new-api/ha...tRefToEntIndex
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D

Last edited by Lux; 07-08-2019 at 00:08.
Lux is offline
edwinvega86
Senior Member
Join Date: Feb 2016
Old 07-08-2019 , 00:53   Re: [L4D2] modify sound?
Reply With Quote #5

thank you
edwinvega86 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 23:02.


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