PDA

View Full Version : [CS:GO][REQ] Surf no drop sound?


edwardidg
07-14-2016, 13:13
Hello! Is there any way [plugin or command] that disable the 'drop' sound? I'm running a surf server. I use sv_footsteps to 0 but the drop sound is still there.

Mitchell
07-14-2016, 21:45
Pretty sure the sound of landing are still broadcasted to others, and you can block them through a sound hook.
Edit:

#include <sourcemod>
#include <sdktools>

public Plugin:myinfo = {
name = "Disable Fall Sound",
author = "Mitch",
description = "Disables fall sound.",
version = "1.0.0",
url = "mtch.tech"
}

public OnPluginStart() {
AddNormalSoundHook(sound_hook);
}

public Action:sound_hook(clients[64], &numClients, String:sample[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags) {
if(StrContains(sample, "player/damage", false) >= 0) {
return Plugin_Handled;
}
return Plugin_Continue;
}