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

[CS GO] Problem with silent footstep


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kondzixd
Member
Join Date: Sep 2010
Old 04-04-2015 , 00:50   [CS GO] Problem with silent footstep
Reply With Quote #1

Hi. I have a problem with silenced footstep. When i turn it on player is ducking all the time and cant plant a bomb (u must be on the ground if u want plant a bomb)

My code:

Code:
public OnPluginStart()
{
    HookEvent("player_footstep", Event_FootStep, EventHookMode_Pre);
}

public Action:Event_FootStep(Handle:event, const String:name[], bool:dontBroadcast)
{
    new client = GetClientOfUserId(GetEventInt(event, "userid"));
    if(maKlase[client])
        SetEntProp(client, Prop_Data, "m_fFlags", 4);
}
Someone know how to fix it?

Last edited by kondzixd; 04-04-2015 at 00:51.
kondzixd is offline
JoB2C
AlliedModders Donor
Join Date: Jan 2014
Location: France
Old 04-04-2015 , 06:51   Re: [CS GO] Problem with silent footstep
Reply With Quote #2

Remove the plugin, set sv_footsteps to 0.
JoB2C is offline
kondzixd
Member
Join Date: Sep 2010
Old 04-04-2015 , 07:17   Re: [CS GO] Problem with silent footstep
Reply With Quote #3

I dont want to give all players silent footstep.
kondzixd is offline
D.Moder
I uploaded 2 great gameplay plugins here
Join Date: Sep 2009
Location: Sin city
Old 04-04-2015 , 07:19   Re: [CS GO] Problem with silent footstep
Reply With Quote #4

I think that's the closest thing to what you need.
CSS / CSGO both ignore silencing footsteps individually, it has to be all players or none.
Use JoB2C's method.
__________________
Creator of COD-Life (Half COD, Half Life)
https://forums.alliedmods.net/showthread.php?t=261162
twitter: @D_Moder_61216
D.Moder is offline
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 04-04-2015 , 09:46   Re: [CS GO] Problem with silent footstep
Reply With Quote #5

just track if they are moving or not and toggle your solution for silent footstep, it should fix issue when bomb plant. Just check if they are not crouch, not walking and moving.

Last edited by Mathias.; 04-04-2015 at 09:47.
Mathias. is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 04-04-2015 , 11:57   Re: [CS GO] Problem with silent footstep
Reply With Quote #6

Or you can try to hook footstep sound and stop it (if emitter is your player).
KissLick is offline
kondzixd
Member
Join Date: Sep 2010
Old 04-04-2015 , 17:00   Re: [CS GO] Problem with silent footstep
Reply With Quote #7

How can I hook emit sound in cs go?

Last edited by kondzixd; 04-04-2015 at 17:01.
kondzixd is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 04-04-2015 , 18:05   Re: [CS GO] Problem with silent footstep
Reply With Quote #8

https://forums.alliedmods.net/showthread.php?t=227525
KissLick is offline
kondzixd
Member
Join Date: Sep 2010
Old 04-05-2015 , 12:16   Re: [CS GO] Problem with silent footstep
Reply With Quote #9

Ok, i do it like this:

Code:
public OnPluginStart()
{
    HookEvent("player_footstep", Event_FootStep, EventHookMode_Pre);
}

public Action:Event_FootStep(Handle:event, const String:name[], bool:dontBroadcast)
{
    new client = GetClientOfUserId(GetEventInt(event, "userid"));
    if(maKlase[client])
    {
        StopSound(client, SNDCHAN_AUTO, "common/step_test_loop.wav")
    }
}
but i dont know how channel i should use and what name is sound footstep.

Last edited by kondzixd; 04-05-2015 at 12:19.
kondzixd is offline
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 04-05-2015 , 12:54   Re: [CS GO] Problem with silent footstep
Reply With Quote #10

try to look if sound name contain foot or footstep and print it out, play a bit with it and make sure all footstep are triggered with that condition and than work your solution out of there.
Mathias. is offline
Reply



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:54.


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