Raised This Month: $51 Target: $400
 12% 

[CSS] Remove fall damage sound?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ibanezez
SourceMod Donor
Join Date: Aug 2014
Location: Earth
Old 12-12-2014 , 21:32   [CSS] Remove fall damage sound?
Reply With Quote #1

Hey, I was wondering how I can remove the fall damage crunch sound in CSS. How would that work in Sourcepawn?


Thanks,

- Ibanezez
__________________
Hello
Ibanezez is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-13-2014 , 01:34   Re: [CSS] Remove fall damage sound?
Reply With Quote #2

You'd need a normal sound hook for it and you'd need to know the sound's filename.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
keygens
Senior Member
Join Date: Mar 2010
Location: Somewhere
Old 12-13-2014 , 05:58   Re: [CSS] Remove fall damage sound?
Reply With Quote #3

Something like this.

Code:
public OnPluginStart() AddNormalSoundHook(SoundHook);

public Action:SoundHook(clients[64], &numClients, String:sound[PLATFORM_MAX_PATH], &Ent, &channel, &Float:volume, &level, &pitch, &flags)
{
    if (StrEqual(sound, "player/damage1.wav", false)) return Plugin_Stop;
    if (StrEqual(sound, "player/damage2.wav", false)) return Plugin_Stop;
    if (StrEqual(sound, "player/damage3.wav", false)) return Plugin_Stop;
    return Plugin_Continue;
}

Last edited by keygens; 12-13-2014 at 05:59.
keygens is offline
Ibanezez
SourceMod Donor
Join Date: Aug 2014
Location: Earth
Old 12-13-2014 , 14:26   Re: [CSS] Remove fall damage sound?
Reply With Quote #4

I'll test that out, thanks.

Is there also a way to remove the screen shake/tilt when you hit the ground?
__________________
Hello
Ibanezez is offline
Michalplyoutube
Veteran Member
Join Date: Jan 2013
Location: Tank Carrier in Mannhatt
Old 12-13-2014 , 14:35   Re: [CSS] Remove fall damage sound?
Reply With Quote #5

Quote:
Originally Posted by Ibanezez View Post
I'll test that out, thanks.

Is there also a way to remove the screen shake/tilt when you hit the ground?
I think not in css
__________________
The plugin developer of TF2BWR Reborn
And a TF2 Player
Michalplyoutube 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 04:57.


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