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

Machina "Sound" Block [Solved]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 03-27-2012 , 01:58   Machina "Sound" Block [Solved]
Reply With Quote #1

This has been brought to my attention several times, but never felt like asking the forums. I see people using plugins to completely disable the Machina, and I also see people using TF2Items to change the gun. (Couldn't figure out the config) So really, what I'm curious about is if there is a way to disable the sound of the Machina on the server (so you don't have to hear constant collateral sounds from the bots being shot).

If the sound isn't possible, how do you use TF2Items to change the gun players use even if Machina is chosen in their inventory?

Ty in advance...

Last edited by ReFlexPoison; 03-28-2012 at 12:20.
ReFlexPoison is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 03-27-2012 , 12:22   Re: Machina "Sound" Block.. or alternative?
Reply With Quote #2

I don't think it's possible to change the sound since sound files are handled client-side, your best bet is either to change it for the stock sniper rifle, however I'm not sure how you'd go about doing this with TF2Items.

Another option would be to maybe use SDKHooks to detect the penetration-kill then block it entirely.
11530 is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 03-27-2012 , 12:39   Re: Machina "Sound" Block.. or alternative?
Reply With Quote #3

https://forums.alliedmods.net/showpo...73&postcount=7

^ MAY stop sounds, as later posts say, may not work.

https://forums.alliedmods.net/showpo...59&postcount=1

^Blocks the damn thing entirely.

You should search a bit to find this kind of thing.
Drixevel is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 03-27-2012 , 13:04   Re: Machina "Sound" Block.. or alternative?
Reply With Quote #4

Quote:
Originally Posted by r3dw3r3w0lf View Post
https://forums.alliedmods.net/showpo...73&postcount=7

^ MAY stop sounds, as later posts say, may not work.

https://forums.alliedmods.net/showpo...59&postcount=1

^Blocks the damn thing entirely.

You should search a bit to find this kind of thing.
I searched, and I've, believe me or not, used both of them. The Machina block plugin is a bit dirty, telling the user to change weapons while there is nothing in their hand. The sound remove plugin you also linked doesn't work, at least not for me.

Currently I am using the Machina block with a bit of an edited script, but still doesn't cut out to be my favorite resolve.

Last edited by ReFlexPoison; 03-27-2012 at 13:11.
ReFlexPoison is offline
napalm00
Veteran Member
Join Date: Jun 2011
Location: Italy, sadly
Old 03-27-2012 , 13:14   Re: Machina "Sound" Block.. or alternative?
Reply With Quote #5

Change the "playerpenetratecount" int of all player_deaths triggered by a machina to 0 (ofc using the pre hook mode)? Dunno, just tossing ideas
__________________
napalm00 is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 03-27-2012 , 13:18   Re: Machina "Sound" Block.. or alternative?
Reply With Quote #6

Quote:
Originally Posted by napalm00 View Post
Change the "playerpenetratecount" int of all player_deaths triggered by a machina to 0 (ofc using the pre hook mode)? Dunno, just tossing ideas
May I ask how I would do this, because, wouldn't doing that cause the Machina to do absolutely nothing in damage? I mean, if I could figure out how to get the TF2Items to switch all Machinas to regular Snipers, that would probably do best. All in all, anything would work. (TF2Items is also simpler than scripting in my opinion )
ReFlexPoison is offline
napalm00
Veteran Member
Join Date: Jun 2011
Location: Italy, sadly
Old 03-27-2012 , 13:27   Re: Machina "Sound" Block.. or alternative?
Reply With Quote #7

It would most likely leave the damage untouched, but before setting it to anything you'd have to debug the player_death event of a machina penetration kill.
About TF2Items, I thought you wanted to only block the sound, not the penetration attribute or the weapon itself

EDIT:
Just fyi, it's not possible to replace weapons by using only the tf2items.weapons.txt file.
__________________

Last edited by napalm00; 03-27-2012 at 13:29.
napalm00 is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 03-27-2012 , 13:58   Re: Machina "Sound" Block.. or alternative?
Reply With Quote #8

Quote:
Originally Posted by napalm00 View Post
It would most likely leave the damage untouched, but before setting it to anything you'd have to debug the player_death event of a machina penetration kill.
About TF2Items, I thought you wanted to only block the sound, not the penetration attribute or the weapon itself

EDIT:
Just fyi, it's not possible to replace weapons by using only the tf2items.weapons.txt file.
Yeah, what I'm aiming for, but, like I said, I have VERY minimal scripting knowledge. Anyway thank you for the info though. I'll probably end up figuring something out with this.

And if I am going to use TF2Items, it will probably end up being TF2 Give Weapon. (Still don't know if "that" is possible, but I just posted in the forum thread.
ReFlexPoison is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-27-2012 , 22:19   Re: Machina "Sound" Block.. or alternative?
Reply With Quote #9

I'm pretty sure this has been asked many times before, but I can't find any similar threads atm.

Anyway, this is completely possible with a plugin. It's not client-side.

I don't feel like writing and testing code right now, so try hooking teamplay_broadcast_audio or something like that.

Check out this similar plugin: https://forums.alliedmods.net/showthread.php?t=167713
__________________
Dr. McKay is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 03-27-2012 , 22:49   Re: Machina "Sound" Block.. or alternative?
Reply With Quote #10

Quote:
Originally Posted by Dr. McKay View Post
I'm pretty sure this has been asked many times before, but I can't find any similar threads atm.

Anyway, this is completely possible with a plugin. It's not client-side.

I don't feel like writing and testing code right now, so try hooking teamplay_broadcast_audio or something like that.

Check out this similar plugin: https://forums.alliedmods.net/showthread.php?t=167713
I wouldn't know how to script it =/ nor will I ask you to script it for me. I'll attempt to figure it out though. Ty for the info.

Last edited by ReFlexPoison; 03-27-2012 at 22:55.
ReFlexPoison is offline
Reply


Thread Tools
Display Modes

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 09:03.


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