This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[TF2/(ANY?)] Custom Sounds [BETA V0.3]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bananensap
Junior Member
Join Date: Jan 2018
Old 01-26-2018 , 13:39   Re: [TF2/(ANY?)] Custom Sounds [BETA V0.3]
Reply With Quote #34

I tested this:

Code:
#include <sdktools>
public OnPluginStart()
{
	AddNormalSoundHook(SoundHook);
}

public Action:SoundHook(clients[64], &numClients, String:sound[PLATFORM_MAX_PATH], &entity, &channel, &Float:volume, &level, &pitch, &flags)
{
	ReplyToCommand(0, sound);
	
	if (StrContains(sound, "sound_you_want_to_change.wav") > -1)
    {
		Format(sound, sizeof(sound), "directory/sound_you_want_to_replace_it_with.mp3");
		return Plugin_Changed;
    }
	return Plugin_Continue;
}
But weapon sounds are not catched in this event?
Only jump sounds etc.
Bananensap is offline
 



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 22:13.


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