AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [CS GO] Problem with silent footstep (https://forums.alliedmods.net/showthread.php?t=260970)

kondzixd 04-04-2015 00:50

[CS GO] Problem with silent footstep
 
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?

JoB2C 04-04-2015 06:51

Re: [CS GO] Problem with silent footstep
 
Remove the plugin, set sv_footsteps to 0.

kondzixd 04-04-2015 07:17

Re: [CS GO] Problem with silent footstep
 
I dont want to give all players silent footstep.

D.Moder 04-04-2015 07:19

Re: [CS GO] Problem with silent footstep
 
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.

Mathias. 04-04-2015 09:46

Re: [CS GO] Problem with silent footstep
 
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.

KissLick 04-04-2015 11:57

Re: [CS GO] Problem with silent footstep
 
Or you can try to hook footstep sound and stop it (if emitter is your player).

kondzixd 04-04-2015 17:00

Re: [CS GO] Problem with silent footstep
 
How can I hook emit sound in cs go?

KissLick 04-04-2015 18:05

Re: [CS GO] Problem with silent footstep
 
https://forums.alliedmods.net/showthread.php?t=227525

kondzixd 04-05-2015 12:16

Re: [CS GO] Problem with silent footstep
 
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.

Mathias. 04-05-2015 12:54

Re: [CS GO] Problem with silent footstep
 
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.


All times are GMT -4. The time now is 06:04.

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