Raised This Month: $ Target: $400
 0% 

Fully silencing user.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-09-2017 , 21:30   Fully silencing user.
Reply With Quote #1

I am trying to silence every single action that the user is responsible to. From grenades, to knife, to planting bomb, to the beep of bomb, to firearm sounds, footsteps and jump noise. How do I do it?
eyal282 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-10-2017 , 06:38   Re: Fully silencing user.
Reply With Quote #2

Hook FM_EmitSound, check if sound is equal to the one you want to block, return FMRES_SUPERCEDE.

I can do it for you if you find the sound names.

For footsteps, you can use set_user_footsteps() from fun module

This thread is similar to yours https://forums.alliedmods.net/showthread.php?t=122994
__________________

Last edited by edon1337; 04-10-2017 at 06:41.
edon1337 is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-12-2017 , 11:16   Re: Fully silencing user.
Reply With Quote #3

Quote:
Originally Posted by edon1337 View Post
Hook FM_EmitSound, check if sound is equal to the one you want to block, return FMRES_SUPERCEDE.

I can do it for you if you find the sound names.

For footsteps, you can use set_user_footsteps() from fun module

This thread is similar to yours https://forums.alliedmods.net/showthread.php?t=122994
Jump sound is not blocked.
I actually wish to fully silence the user. making it seem that if he has SOLID_NOT flag and no weapons, it is impossible to others to know he exists ( while they are alive )
eyal282 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 04-12-2017 , 12:30   Re: Fully silencing user.
Reply With Quote #4

Volume 0.0
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-12-2017 , 12:53   Re: Fully silencing user.
Reply With Quote #5

Quote:
Originally Posted by Natsheh View Post
Volume 0.0
EmitSound does not seem to register jump sounds.
eyal282 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-12-2017 , 13:27   Re: Fully silencing user.
Reply With Quote #6

https://forums.alliedmods.net/showthread.php?t=185220 for jump.
For bomb plant and such you can't just hook EmitSound and block it.

Trying to block all possible sounds does not look like a good ideea. What are you trying to do?
__________________

Last edited by HamletEagle; 04-12-2017 at 13:28.
HamletEagle is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-20-2017 , 09:50   Re: Fully silencing user.
Reply With Quote #7

Quote:
Originally Posted by HamletEagle View Post
https://forums.alliedmods.net/showthread.php?t=185220 for jump.
For bomb plant and such you can't just hook EmitSound and block it.

Trying to block all possible sounds does not look like a good ideea. What are you trying to do?
Is it possible to block jump without any external modules?

Edit: Yes. mp_footsteps 0 and force all players that jump successfully do the jump sound.

Do you know how to mimic the engine sounds of ladders, jumping and walking?

Last edited by eyal282; 04-20-2017 at 10:06.
eyal282 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-20-2017 , 11:08   Re: Fully silencing user.
Reply With Quote #8

What are you trying to do? Stop the xy problem.
__________________
HamletEagle is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-20-2017 , 11:10   Re: Fully silencing user.
Reply With Quote #9

Quote:
Originally Posted by HamletEagle View Post
What are you trying to do? Stop the xy problem.
Okay.
eyal282 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-22-2017 , 09:35   Re: Fully silencing user.
Reply With Quote #10

PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
{    
    
register_forward(FM_AddToFullPack"AddToFullPack"1)
}

public 
AddToFullPack(eseenthosthostflagsplayerpSet)
{
    if(
player)
    {
        if(
host != ent && g_bSpectator[ent])
        {
            
set_es(esES_OriginFloat:{99999.9,99999.9,99999.9})
        }
    }

__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 17:49.


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