Raised This Month: $32 Target: $400
 8% 

Jump Sound Blocker


Post New Thread Reply   
 
Thread Tools Display Modes
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 02-20-2014 , 03:56   Re: Jump Sound Blocker
Reply With Quote #21

Quote:
Originally Posted by jimaway View Post
needs updated orpheu signature
Your sure of this? It appears to be working for me.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 06-26-2014 , 07:56   Re: Jump Sound Blocker
Reply With Quote #22

You should add support for set_user_footsteps if it doesn't have it (looking in source, I don't see that).
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 07-11-2014 , 03:19   Re: Jump Sound Blocker
Reply With Quote #23

Quote:
Originally Posted by GuskiS View Post
You should add support for set_user_footsteps if it doesn't have it (looking in source, I don't see that).
I'm not sure what you mean. You should be able to freely set player footsteps on off.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 12-25-2014 , 02:19   Re: Jump Sound Blocker
Reply With Quote #24

Hey there.
Can you tell me if there is any way to use the plugin without setting mp_footstep 0?

I want to make a version of it, for spectators, so that the sound of them jumping dont affect the people that is actually playing the game mod. I been trying and come up with this adjustments (not working)

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <orpheu_stocks>
#include <hlsdk_const>

#define PLUGIN             "Jump Sound Blocker"
#define VERSION         "1.0.2"
#define AUTHOR             "hornet"

enum
{
    
    
STEP_CONCRETE,
    
STEP_METAL,
    
STEP_DIRT,
    
STEP_VENT,      
    
STEP_GRATE,     
    
STEP_TILE,
    
STEP_SLOSH,
    
STEP_WADE,       
    
STEP_LADDER,    
    
STEP_SNOW
    
STEP_GRASS
}

new 
OrpheuStruct:g_ppmove;

new 
g_iBlockStep33 ]; 

public 
plugin_init() 
{
    
register_pluginPLUGINVERSIONAUTHOR );
    
    
OrpheuRegisterHookOrpheuGetDLLFunction"pfnPM_Move""PM_Move" ), "OnPM_Move" );
    
OrpheuRegisterHookOrpheuGetFunction"PM_PlayStepSound" ), "OnPM_PlayStepSound" );
}

public 
OrpheuHookReturn:OnPM_MoveOrpheuStruct:ppmoveserver )
{
    
g_ppmove ppmove;
    
    new 
iPlayer OrpheuGetStructMemberppmove"player_index" ) + 1;
    
    if( 
cs_get_user_teamiPlayer ) == CS_TEAM_SPECTATOR )
    {
        if( ( 
OrpheuGetStructMemberOrpheuStruct:OrpheuGetStructMemberppmove"cmd" ), "buttons" ) & IN_JUMP  )
        &&( !( 
OrpheuGetStructMemberppmove"oldbuttons" ) & IN_JUMP ) )
        &&( 
OrpheuGetStructMemberppmove"onground" ) != -) )
            
g_iBlockStepiPlayer ] = 1;
    }
}

public 
OrpheuHookReturn:OnPM_PlayStepSoundiStepFloat:flVol )
{
    new 
iPlayer OrpheuGetStructMemberg_ppmove"player_index" ) + 1;
    
    switch( 
g_iBlockStepiPlayer ] )
    {
        case 
1
        {
            
g_iBlockStepiPlayer ] = 2;
            return 
OrpheuSupercede;
        }
        
        case 
2:
        {
            
g_iBlockStepiPlayer ] = 0;
            return 
OrpheuSupercede;
        }
    }
    
    new 
iRand random_num0);
    
    switch ( 
iStep )
    {
        case 
STEP_METAL:
        {
            switch( 
iRand )
            {
                case 
0emit_soundiPlayerCHAN_BODY"player/pl_metal1.wav"flVolATTN_NORM0PITCH_NORM );
                case 
1emit_soundiPlayerCHAN_BODY"player/pl_metal3.wav"flVolATTN_NORM0PITCH_NORM );
                case 
2emit_soundiPlayerCHAN_BODY"player/pl_metal2.wav"flVolATTN_NORM0PITCH_NORM );
                case 
3emit_soundiPlayerCHAN_BODY"player/pl_metal4.wav"flVolATTN_NORM0PITCH_NORM );
            }
        
        }
        
        case 
STEP_DIRT:
        {
            switch( 
iRand )
            {
                case 
0emit_soundiPlayerCHAN_BODY"player/pl_dirt1.wav"flVolATTN_NORM0PITCH_NORM );
                case 
1emit_soundiPlayerCHAN_BODY"player/pl_dirt3.wav"flVolATTN_NORM0PITCH_NORM );
                case 
2emit_soundiPlayerCHAN_BODY"player/pl_dirt2.wav"flVolATTN_NORM0PITCH_NORM );
                case 
3emit_soundiPlayerCHAN_BODY"player/pl_dirt4.wav"flVolATTN_NORM0PITCH_NORM );
            }
        }
        
        case 
STEP_VENT:
        {
            switch( 
iRand )
            {
                case 
0emit_soundiPlayerCHAN_BODY"player/pl_duct1.wav"flVolATTN_NORM0PITCH_NORM );
                case 
1emit_soundiPlayerCHAN_BODY"player/pl_duct3.wav"flVolATTN_NORM0PITCH_NORM );
                case 
2emit_soundiPlayerCHAN_BODY"player/pl_duct2.wav"flVolATTN_NORM0PITCH_NORM );
                case 
3emit_soundiPlayerCHAN_BODY"player/pl_duct4.wav"flVolATTN_NORM0PITCH_NORM );
            }
        }
        
        case 
STEP_GRATE:
        {
            switch( 
iRand )
            {
                case 
0emit_soundiPlayerCHAN_BODY"player/pl_grate1.wav"flVolATTN_NORM0PITCH_NORM );
                case 
1emit_soundiPlayerCHAN_BODY"player/pl_grate3.wav"flVolATTN_NORM0PITCH_NORM );
                case 
2emit_soundiPlayerCHAN_BODY"player/pl_grate2.wav"flVolATTN_NORM0PITCH_NORM );
                case 
3emit_soundiPlayerCHAN_BODY"player/pl_grate4.wav"flVolATTN_NORM0PITCH_NORM );
            }
        
        }
        
        case 
STEP_TILE:
        {
            switch( 
iRand )
            {
                case 
0emit_soundiPlayerCHAN_BODY"player/pl_tile1.wav"flVolATTN_NORM0PITCH_NORM );
                case 
1emit_soundiPlayerCHAN_BODY"player/pl_tile3.wav"flVolATTN_NORM0PITCH_NORM );
                case 
2emit_soundiPlayerCHAN_BODY"player/pl_tile2.wav"flVolATTN_NORM0PITCH_NORM );
                case 
3emit_soundiPlayerCHAN_BODY"player/pl_tile4.wav"flVolATTN_NORM0PITCH_NORM );
            }
        }
        
        case 
STEP_SLOSH:
        {
            switch( 
iRand )
            {    
                case 
0emit_soundiPlayerCHAN_BODY"player/pl_slosh1.wav"flVolATTN_NORM0PITCH_NORM );
                case 
1emit_soundiPlayerCHAN_BODY"player/pl_slosh3.wav"flVolATTN_NORM0PITCH_NORM );
                case 
2emit_soundiPlayerCHAN_BODY"player/pl_slosh2.wav"flVolATTN_NORM0PITCH_NORM );
                case 
3emit_soundiPlayerCHAN_BODY"player/pl_slosh4.wav"flVolATTN_NORM0PITCH_NORM );
            }
        }
        
        case 
STEP_WADE:
        {
            switch( 
iRand )
            {
                case 
0emit_soundiPlayerCHAN_BODY"player/pl_wade1.wav"flVolATTN_NORM0PITCH_NORM );
                case 
1emit_soundiPlayerCHAN_BODY"player/pl_wade2.wav"flVolATTN_NORM0PITCH_NORM );
                case 
2emit_soundiPlayerCHAN_BODY"player/pl_wade3.wav"flVolATTN_NORM0PITCH_NORM );
                case 
3emit_soundiPlayerCHAN_BODY"player/pl_wade4.wav"flVolATTN_NORM0PITCH_NORM );
            }
        }
        
        case 
STEP_LADDER:
        {
            switch( 
iRand )
            {                
                case 
0emit_soundiPlayerCHAN_BODY"player/pl_ladder1.wav"flVolATTN_NORM0PITCH_NORM );
                case 
1emit_soundiPlayerCHAN_BODY"player/pl_ladder3.wav"flVolATTN_NORM0PITCH_NORM );
                case 
2emit_soundiPlayerCHAN_BODY"player/pl_ladder2.wav"flVolATTN_NORM0PITCH_NORM );
                case 
3emit_soundiPlayerCHAN_BODY"player/pl_ladder4.wav"flVolATTN_NORM0PITCH_NORM );
            }
        }
        
        case 
STEP_SNOW:
        {
            switch( 
iRand )
            {                
                case 
0emit_soundiPlayerCHAN_BODY"player/pl_snow1.wav"flVolATTN_NORM0PITCH_NORM );
                case 
1emit_soundiPlayerCHAN_BODY"player/pl_snow3.wav"flVolATTN_NORM0PITCH_NORM );
                case 
2emit_soundiPlayerCHAN_BODY"player/pl_snow2.wav"flVolATTN_NORM0PITCH_NORM );
                case 
3emit_soundiPlayerCHAN_BODY"player/pl_snow4.wav"flVolATTN_NORM0PITCH_NORM );
            }
        }
        
        case 
STEP_GRASS:
        {
            switch( 
iRand )
            {                
                case 
0emit_soundiPlayerCHAN_BODY"player/pl_grass1.wav"flVolATTN_NORM0PITCH_NORM );
                case 
1emit_soundiPlayerCHAN_BODY"player/pl_grass3.wav"flVolATTN_NORM0PITCH_NORM );
                case 
2emit_soundiPlayerCHAN_BODY"player/pl_grass2.wav"flVolATTN_NORM0PITCH_NORM );
                case 
3emit_soundiPlayerCHAN_BODY"player/pl_grass4.wav"flVolATTN_NORM0PITCH_NORM );
            }
        }
        
        default:
        {
            switch( 
iRand )
            {
                case 
0emit_soundiPlayerCHAN_BODY"player/pl_step1.wav"flVolATTN_NORM0PITCH_NORM );
                case 
1emit_soundiPlayerCHAN_BODY"player/pl_step3.wav"flVolATTN_NORM0PITCH_NORM );
                case 
2emit_soundiPlayerCHAN_BODY"player/pl_step2.wav"flVolATTN_NORM0PITCH_NORM );
                case 
3emit_soundiPlayerCHAN_BODY"player/pl_step4.wav"flVolATTN_NORM0PITCH_NORM );
            }
        }
    }
    
    return 
OrpheuIgnored;

__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!

Last edited by quilhos; 12-25-2014 at 02:19.
quilhos is offline
Ef_Deas
Member
Join Date: Aug 2012
Location: Rio de Janeiro
Old 02-05-2015 , 07:41   Re: Jump Sound Blocker
Reply With Quote #25

Somehow it works fine on my windows server and blocks all the footsteps on my linux server.
Has anyone encountered that kind of problem?
Ef_Deas is offline
Send a message via Skype™ to Ef_Deas
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 02-23-2015 , 20:44   Re: Jump Sound Blocker
Reply With Quote #26

Quote:
Originally Posted by quilhos View Post
Hey there.
Can you tell me if there is any way to use the plugin without setting mp_footstep 0?[/php]
There is a way it can be done because I remember Connor showed me a better way of achieving the same thing, but it was so long ago I forgot how it was done. I can't remember if he used the footsteps member from movevars_s. I'll hassle him some more to find it again

Quote:
Originally Posted by Ef_Deas View Post
Somehow it works fine on my windows server and blocks all the footsteps on my linux server.
Has anyone encountered that kind of problem?
Strange. Are you certain there's no errors?
hornet is offline
Ef_Deas
Member
Join Date: Aug 2012
Location: Rio de Janeiro
Old 02-26-2015 , 22:57   Re: Jump Sound Blocker
Reply With Quote #27

Quote:
Originally Posted by hornet View Post
Strange. Are you certain there's no errors?
Yes, it almost convinced me the sound was in my head.
Made it work by upgrading hlds build and a few shaman dances.

Still sometimes it makes noises when you land (without losing hp)


And I think quilhos and GuskiS want something like this
Spoiler

Last edited by Ef_Deas; 02-26-2015 at 23:02.
Ef_Deas is offline
Send a message via Skype™ to Ef_Deas
Zellerbach
Junior Member
Join Date: Mar 2017
Old 03-01-2017 , 10:19   Re: Jump Sound Blocker
Reply With Quote #28

Please help:
Code:
[FakeDetector]: Config loaded.
[FakeDetector]: Successfully loaded.
L 03/01/2017 - 16:17:38: -------- Mapchange to de_dust --------
L 03/01/2017 - 16:17:49: [GEOIP] Database info: GeoLite2 Country database 2.0
L 03/01/2017 - 16:17:49: [AMXX] Invalid Plugin (plugin "block_jump_sounds.amxx")

Orpheu functions search started.

        Parsing functions started.
                Parsing file "EmitAmbientSound" started
                                Argument type "edict_s *" validated
                                Argument type "Vector *" validated
                                Argument type "char *" validated
                                Argument type "float" validated
                                Argument type "float" validated
                                Argument type "int" validated
                                Argument type "int" validated
                                Return type "int" validated
                Parsing file "EmitAmbientSound" ended
                Parsing file "EmitSound" started
                                Argument type "edict_s *" validated
                                Argument type "int" validated
                                Argument type "char *" validated
                                Argument type "float" validated
                                Argument type "float" validated
                                Argument type "int" validated
                                Argument type "int" validated
                                Return type "int" validated
                Parsing file "EmitSound" ended
                Parsing file "PrecacheSound" started
                                Argument type "char *" validated
                                Return type "int" validated
                Parsing file "PrecacheSound" ended
                Parsing file "PM_Move" started
                                Argument type "playermove_s *" validated
                                Argument type "qboolean" validated
                                Searching for name "PM_Move"... FOUND
                Parsing file "PM_Move" ended
                Parsing file "PM_PlayStepSound" started
                                Argument type "int" validated
                                Argument type "float" validated
                                Searching for name "PM_PlayStepSound"... FOUND
                Parsing file "PM_PlayStepSound" ended
                Parsing folder "CBasePlayerWeapon" started
                        Parsing file "ReloadSound" started
                                Searching for name "ReloadSound__17CBasePlayerWeapon"... NOT FOUND
                        Parsing file "ReloadSound" ended
                Parsing folder "CBasePlayerWeapon" ended
        Parsing functions ended.

Orpheu functions search ended.

Orpheu virtual functions search started.

        Parsing virtual functions started.
        Parsing virtual functions ended.

Orpheu virtual functions search ended.

Orpheu memory structures search started.

        Parsing memory structures started.
        Parsing memory structures ended.

Orpheu memory structures search ended.

Currently loaded plugins:
description stat pend file vers src load unlod
[ 1] WHBlocker RUN - whblocker_mm_i38 v1.5.626 ini Chlvl ANY
[ 2] dproto_EF RUN - dproto_i386.so v0.9.548 ini Start Never
[ 3] VoiceTranscoder RUN - vtc.so v80 ini ANY ANY
[ 4] AMX Mod X RUN - amxmodx_mm_i386. v1.8.3-d ini Start ANY
[ 5] POD-Bot mm RUN - podbot_mm_i386.s vV3B22c ini Chlvl ANY
[ 6] NetBufExtender RUN - nbex.so v1.0 ini ANY Never
[ 7] FakeDetector RUN - fakedetector_mm_ v2.1.3 ini Start Never
[ 8] MySQL RUN - mysql_amxx_i386. v1.8.3-d pl4 ANY ANY
[ 9] Fun RUN - fun_amxx_i386.so v1.8.3-d pl4 ANY ANY
[10] EngineX RUN - engine_amxx_i386 v1.8.1.3 pl4 ANY ANY
[11] FakeMeta RUN - fakemeta_amxx_i3 v1.8.3-d pl4 ANY ANY
[12] Ham Sandwich RUN - hamsandwich_amxx v1.8.3-d pl4 ANY ANY
[13] Orpheu RUN - orpheu_amxx_i386 v2.3 pl4 ANY ANY
[14] CStrike RUN - cstrike_amxx_i38 v1.8.2 pl4 ANY ANY
[15] CSX RUN - csx_amxx_i386.so v1.8.2 pl4 ANY ANY
[16] GeoIP RUN - geoip_amxx_i386. v1.8.3-d pl4 ANY ANY

Last edited by Zellerbach; 03-01-2017 at 10:21.
Zellerbach is offline
Neon123
Senior Member
Join Date: Jan 2016
Old 04-01-2017 , 17:24   Re: Jump Sound Blocker
Reply With Quote #29

not work , i tried to use in zpa
Neon123 is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 04-16-2017 , 03:01   Re: Jump Sound Blocker
Reply With Quote #30

Quote:
Originally Posted by Zellerbach View Post
Please help
Probably compiling it for an old version of amxmodx?
Update to the latest Steam version, amxmodx, and then try again.

Quote:
Originally Posted by Neon123 View Post
not work , i tried to use in zpa
"Not work" could really mean anything. Were there errors? Did the plugin load? Could you hear all footsteps?

This may be another option for your needs.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet 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 19:40.


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