Raised This Month: $9 Target: $400
 2% 

[L4D2]About the usage of SDKCall


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sorallll
Member
Join Date: Oct 2018
Old 08-06-2021 , 02: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 - 46 views - 2.6 KB)
File Type: txt l4d2_test.txt (662 Bytes, 24 views)
sorallll is offline
Psyk0tik
AlliedModders Donor
Join Date: May 2012
Location: Homeless
Old 08-06-2021 , 10:08   Re: [L4D2]About the usage of SDKCall
Reply With Quote #2

What are you trying to do? Block the "Player.Heartbeat" sound?
__________________
AFK like JFK
--
Donate to Motivate
--
Get latest L4D/L4D2 gamedata signatures here.
--
PM me if you need help with finding signatures and/or offsets in the following games: L4D1&2/CSGO/TF2/NMRIH/INS/DODS/CSS/HL2DM
Psyk0tik is offline
sorallll
Member
Join Date: Oct 2018
Old 08-09-2021 , 07: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
AlliedModders Donor
Join Date: May 2012
Location: Homeless
Old 08-09-2021 , 20: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.
__________________
AFK like JFK
--
Donate to Motivate
--
Get latest L4D/L4D2 gamedata signatures here.
--
PM me if you need help with finding signatures and/or offsets in the following games: L4D1&2/CSGO/TF2/NMRIH/INS/DODS/CSS/HL2DM
Psyk0tik is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-10-2021 , 12: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
Member
Join Date: Oct 2018
Old 08-13-2021 , 16: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


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 11:24.


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