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

[L4D2]About the usage of SDKCall


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sorallll
Senior Member
Join Date: Oct 2018
Old 08-06-2021 , 01:49   [L4D2]About the usage of SDKCall
Reply With Quote #1

I tried to use these two commands to switch the player’s heartbeat sound, but it seems to have no effect
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_test.sp - 100 views - 2.6 KB)
File Type: txt l4d2_test.txt (662 Bytes, 68 views)
sorallll is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 08-06-2021 , 09:08   Re: [L4D2]About the usage of SDKCall
Reply With Quote #2

What are you trying to do? Block the "Player.Heartbeat" sound?
__________________
Psyk0tik is offline
sorallll
Senior Member
Join Date: Oct 2018
Old 08-09-2021 , 06:16   Re: [L4D2]About the usage of SDKCall
Reply With Quote #3

Quote:
Originally Posted by Psyk0tik View Post
What are you trying to do? Block the "Player.Heartbeat" sound?
I want to use it to enable or disable the heartbeat sound for the client
sorallll is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 08-09-2021 , 19:03   Re: [L4D2]About the usage of SDKCall
Reply With Quote #4

I can't seem to toggle the sound myself, but I didn't test much.

For blocking, I would just recommend patching the function call itself. Can't think of a way right now to toggle the sound while it's already playing.
__________________
Psyk0tik is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-10-2021 , 11:45   Re: [L4D2]About the usage of SDKCall
Reply With Quote #5

What about using a SoundHook?

PHP Code:
StopSound(clientSNDCHAN_STATICSOUND_HEART); 
to stop on a client, must be called multiple times to work.

See my Heartbeat plugin for details.
__________________
Silvers is offline
sorallll
Senior Member
Join Date: Oct 2018
Old 08-13-2021 , 15:54   Re: [L4D2]About the usage of SDKCall
Reply With Quote #6

Quote:
Originally Posted by Silvers View Post
What about using a SoundHook?

PHP Code:
StopSound(clientSNDCHAN_STATICSOUND_HEART); 
to stop on a client, must be called multiple times to work.

See my Heartbeat plugin for details.
Thanks, effective
sorallll 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:40.


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