Raised This Month: $32 Target: $400
 8% 

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


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

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
ThatKidWhoGames
Veteran Member
Join Date: Jun 2013
Location: IsValidClient()
Old 04-10-2018 , 23:37   Re: [TF2/(ANY?)] Custom Sounds [BETA V0.3]
Reply With Quote #112

Quote:
Originally Posted by Bananensap View Post
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.
Basically all of the weapon sounds are client side sadly
ThatKidWhoGames is offline
Umbrozium
Junior Member
Join Date: Dec 2017
Location: ǝʌɐɹ
Old 05-12-2018 , 02:21   Re: [TF2/(ANY?)] Custom Sounds [BETA V0.3]
Reply With Quote #113

This plugin is either broken or I don't know where to put the custom sound.
__________________
overmind searches for undermeanings
Umbrozium is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 05-12-2018 , 03:02   Re: [TF2/(ANY?)] Custom Sounds [BETA V0.3]
Reply With Quote #114

Quote:
Originally Posted by Umbrozium View Post
This plugin is either broken or I don't know where to put the custom sound.
Last time I tried, it worked correctly. All sounds should be placed in /sound directory.
__________________
Want to check my plugins ?
Arkarr is offline
305like
Junior Member
Join Date: Aug 2023
Location: korean
Old 09-08-2023 , 19:59   Re: [TF2/(ANY?)] Custom Sounds [BETA V0.3]
Reply With Quote #115

It's a good plugin. But I have a few questions
Is it not possible to change the sound of the taunts that play music, like congas or manrovics?
If so, please let me know how!
305like is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 09-23-2023 , 17:09   Re: [TF2/(ANY?)] Custom Sounds [BETA V0.3]
Reply With Quote #116

Quote:
Originally Posted by 305like View Post
It's a good plugin. But I have a few questions
Is it not possible to change the sound of the taunts that play music, like congas or manrovics?
If so, please let me know how!
I haven't touched this in 5 years...
There is probably a better version of this somewhere.
__________________
Want to check my plugins ?
Arkarr 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 03:22.


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