Raised This Month: $ Target: $400
 0% 

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


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

Quote:
Originally Posted by Arkarr View Post
What... You are being over-happy I guess
Is that bad?
Bananensap is offline
inklesspen
Member
Join Date: Nov 2015
Location: Russia, Moscow
Old 01-18-2018 , 14:16   Re: [TF2/(ANY?)] Custom Sounds [BETA V0.3]
Reply With Quote #102

tf2_stocks.inc not required. Use sdktooks.inc (sdktooks_sounds.inc + sdktooks_stringtables.inc)

I attached fix for CS:GO (Not tested, Edited code marked by //CSGOADD and //CSGOEND)

Some time and I'll post config for CS:GO

I'm too lazy, so I just put sounds of weapons:
Spoiler
Attached Files
File Type: sp Get Plugin or Get Source (CustomSounds_plus_CSGO.sp - 150 views - 5.7 KB)
File Type: smx CustomSounds_plus_CSGO.smx (13.6 KB, 149 views)
__________________
Mai inglish is veri gud!

Last edited by inklesspen; 01-18-2018 at 14:33.
inklesspen is offline
Send a message via Skype™ to inklesspen
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 01-18-2018 , 15:02   Re: [TF2/(ANY?)] Custom Sounds [BETA V0.3]
Reply With Quote #103

Quote:
Originally Posted by Bananensap View Post
Is that bad?
I would say, it's more of a good thing, but I'm definitly not a hero haha...

EDIT:

Also, thanks inklesspen !
__________________
Want to check my plugins ?

Last edited by Arkarr; 01-18-2018 at 15:05.
Arkarr is offline
Bananensap
Junior Member
Join Date: Jan 2018
Old 01-18-2018 , 15:49   Re: [TF2/(ANY?)] Custom Sounds [BETA V0.3]
Reply With Quote #104

Quote:
Originally Posted by inklesspen View Post
tf2_stocks.inc not required. Use sdktooks.inc (sdktooks_sounds.inc + sdktooks_stringtables.inc)

I attached fix for CS:GO (Not tested, Edited code marked by //CSGOADD and //CSGOEND)

Some time and I'll post config for CS:GO

I'm too lazy, so I just put sounds of weapons:
Hmm.. it doesn't change the sounds at all?

Last edited by Bananensap; 01-18-2018 at 15:50.
Bananensap is offline
Bananensap
Junior Member
Join Date: Jan 2018
Old 01-18-2018 , 16:03   Re: [TF2/(ANY?)] Custom Sounds [BETA V0.3]
Reply With Quote #105

I did some testing and turned on the debug, and the weapon sounds don't show up. Only jump sounds etc.
Bananensap is offline
inklesspen
Member
Join Date: Nov 2015
Location: Russia, Moscow
Old 01-19-2018 , 15:15   Re: [TF2/(ANY?)] Custom Sounds [BETA V0.3]
Reply With Quote #106

Quote:
Originally Posted by Bananensap View Post
I did some testing and turned on the debug, and the weapon sounds don't show up. Only jump sounds etc.
Are you used my version of plugin? And was sound been stopped?

//Added later
In CS:GO, sounds of weapons playing by client, server just firing events. If you will hook TE_Shoot then you can stop sound and play other, but Owner of weapon will hear standart sound
__________________
Mai inglish is veri gud!

Last edited by inklesspen; 01-19-2018 at 16:22.
inklesspen is offline
Send a message via Skype™ to inklesspen
Bananensap
Junior Member
Join Date: Jan 2018
Old 01-19-2018 , 17:42   Re: [TF2/(ANY?)] Custom Sounds [BETA V0.3]
Reply With Quote #107

Yes, your version. Sound was just the normal sound.. like jumping and switching weapon to burst sound etc.

So changing weapon sounds is not possible?

Last edited by Bananensap; 01-19-2018 at 17:53.
Bananensap is offline
inklesspen
Member
Join Date: Nov 2015
Location: Russia, Moscow
Old 01-20-2018 , 09:18   Re: [TF2/(ANY?)] Custom Sounds [BETA V0.3]
Reply With Quote #108

Quote:
Originally Posted by Bananensap View Post
So changing weapon sounds is not possible?
Is possible. Via temp-entity hook
__________________
Mai inglish is veri gud!
inklesspen is offline
Send a message via Skype™ to inklesspen
Bananensap
Junior Member
Join Date: Jan 2018
Old 01-20-2018 , 10:21   Re: [TF2/(ANY?)] Custom Sounds [BETA V0.3]
Reply With Quote #109

Quote:
Originally Posted by inklesspen View Post
Is possible. Via temp-entity hook
Well, I do not know sourcepawn. Could you perhaps show me an example by just replacing 1 weapon sound. Or just perhaps implement it in the current plugin?
Bananensap is offline
inklesspen
Member
Join Date: Nov 2015
Location: Russia, Moscow
Old 01-20-2018 , 12:55   Re: [TF2/(ANY?)] Custom Sounds [BETA V0.3]
Reply With Quote #110

Quote:
Originally Posted by Bananensap View Post
Well, I do not know sourcepawn. Could you perhaps show me an example by just replacing 1 weapon sound. Or just perhaps implement it in the current plugin?
For disabling sounds for near players: (Owner will hear sounds)
PHP Code:
public OnPluginStart()
{
    
AddTempEntHook("Shotgun Shot"CSS_Hook_ShotgunShot);
}

public 
Action:CSS_Hook_ShotgunShot(const String:te_name[], const Players[], numClientsFloat:delay)
{
    return 
Plugin_Stop

__________________
Mai inglish is veri gud!
inklesspen is offline
Send a message via Skype™ to inklesspen
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 12:57.


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