Raised This Month: $ Target: $400
 0% 

[L4D2] StopSound (music)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
chinagreenelvis
Senior Member
Join Date: Dec 2009
Old 11-28-2010 , 15:43   [L4D2] StopSound (music)
Reply With Quote #1

Working on a plugin which escapes special infected grabs. Everything works except the music keeps playing.

Not sure why this doesn't work:

StopSound(client, SNDCHAN_AUTO, "music/pzattack/asphyxiation.wav");

I've tried

SNDCHAN_AUTO
SNDCHAN_STATIC
SNDCHAN_WEAPON
SNDCHAN_VOICE
SNDCHAN_ITEM
SNDCHAN_BODY
SNDCHAN_STREAM
SNDCHAN_VOICE_BASE
SNDCHAN_USER_BASE

It's placed with other calls that refer to "client" in a section. The other calls work fine, so it's not a contextual problem.

Last edited by chinagreenelvis; 11-28-2010 at 15:47.
chinagreenelvis is offline
λlsnana(H λ l f l i f e)
Member
Join Date: Jun 2010
Old 11-29-2010 , 10:58   Re: [L4D2] StopSound (music)
Reply With Quote #2

Hmm,,
λlsnana(H λ l f l i f e) is offline
Send a message via MSN to λlsnana(H λ l f l i f e)
chinagreenelvis
Senior Member
Join Date: Dec 2009
Old 02-09-2011 , 10:08   Re: [L4D2] StopSound (music)
Reply With Quote #3

Bump.
chinagreenelvis is offline
honorcode23
BANNED
Join Date: Mar 2010
Location: Chile
Old 02-09-2011 , 10:32   Re: [L4D2] StopSound (music)
Reply With Quote #4

When you get, for example, grabbed by a jockey, the engine will play "vassalation.wav" sound which is totally client-side, and cannot be stopped server-side.
honorcode23 is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 02-11-2011 , 05:03   Re: [L4D2] StopSound (music)
Reply With Quote #5

Use SDKCalls to do it, it will stop the music. I even remember a plugin already made.
AtomicStryker 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 06:14.


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