Machina "Sound" Block [Solved]
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... |
Re: Machina "Sound" Block.. or alternative?
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. |
Re: Machina "Sound" Block.. or alternative?
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. |
Re: Machina "Sound" Block.. or alternative?
Quote:
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. |
Re: Machina "Sound" Block.. or alternative?
Change the "playerpenetratecount" int of all player_deaths triggered by a machina to 0 (ofc using the pre hook mode)? Dunno, just tossing ideas :P
|
Re: Machina "Sound" Block.. or alternative?
Quote:
|
Re: Machina "Sound" Block.. or alternative?
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 :o EDIT: Just fyi, it's not possible to replace weapons by using only the tf2items.weapons.txt file. |
Re: Machina "Sound" Block.. or alternative?
Quote:
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. |
Re: Machina "Sound" Block.. or alternative?
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 |
Re: Machina "Sound" Block.. or alternative?
Quote:
|
All times are GMT -4. The time now is 09:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.