AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Fully silencing user. (https://forums.alliedmods.net/showthread.php?t=295993)

eyal282 04-09-2017 21:30

Fully silencing user.
 
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?

edon1337 04-10-2017 06:38

Re: Fully silencing user.
 
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

eyal282 04-12-2017 11:16

Re: Fully silencing user.
 
Quote:

Originally Posted by edon1337 (Post 2510867)
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 )

Natsheh 04-12-2017 12:30

Re: Fully silencing user.
 
Volume 0.0

eyal282 04-12-2017 12:53

Re: Fully silencing user.
 
Quote:

Originally Posted by Natsheh (Post 2511564)
Volume 0.0

EmitSound does not seem to register jump sounds.

HamletEagle 04-12-2017 13:27

Re: Fully silencing user.
 
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?

eyal282 04-20-2017 09:50

Re: Fully silencing user.
 
Quote:

Originally Posted by HamletEagle (Post 2511574)
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?

HamletEagle 04-20-2017 11:08

Re: Fully silencing user.
 
What are you trying to do? Stop the xy problem.

eyal282 04-20-2017 11:10

Re: Fully silencing user.
 
Quote:

Originally Posted by HamletEagle (Post 2513837)
What are you trying to do? Stop the xy problem.

Okay.

OciXCrom 04-22-2017 09:35

Re: Fully silencing user.
 
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})
        }
    }




All times are GMT -4. The time now is 17:49.

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