Raised This Month: $45 Target: $400
 11% 

[CS:GO] Silent footsteps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Eagle08
Junior Member
Join Date: Sep 2020
Old 11-16-2020 , 05:39   [CS:GO] Silent footsteps
Reply With Quote #1

Hi,

Panorama update brought summary screen after match, which shows random statistics per player. I was wondering how footsteps and silent footsteps are counted, as there is a record which shows it.

Any ideas how to count it? Is there anything You have to add to the OnPlayerRunCmd, like:

PHP Code:
if(buttons IN_WALK)
{
    
PrintToChat(client"[DEBUG]Your silent steps: %d"silentsteps[client]);
    
silentsteps[client]++;

It doesn't seem to be working. Any other ideas?

Also, I thought of making player footstep sound silent(other players can't hear your footsteps) after making 20 000 silent steps before(like achievement). I have no idea how to do it. I would appreciate any help.
Thanks

Last edited by Eagle08; 11-16-2020 at 05:43.
Eagle08 is offline
Kellan123
AlliedModders Donor
Join Date: Aug 2012
Old 11-16-2020 , 15:26   Re: [CS:GO] Silent footsteps
Reply With Quote #2

https://sm.alliedmods.net/new-api/sd...ormalSoundHook
Kellan123 is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 11-18-2020 , 06:24   Re: [CS:GO] Silent footsteps
Reply With Quote #3

jump sound on client side, so you can't remove it
ZASTRELIS is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 11-18-2020 , 07:54   Re: [CS:GO] Silent footsteps
Reply With Quote #4

Quote:
Originally Posted by ZASTRELIS View Post
jump sound on client side, so you can't remove it
You can block jump sounds and footsteps with AddNormalSoundHook, I did it.
He wants to detect silent footsteps, which you cannot do with AddNormalSoundHook, because there are no sounds.

I think OnPlayerRunCmd is the answer by detecting if client is pressing W, A, S or D and SHIFT (IN_WALK).
__________________
Ilusion9 is offline
Eagle08
Junior Member
Join Date: Sep 2020
Old 11-18-2020 , 09:29   Re: [CS:GO] Silent footsteps
Reply With Quote #5

Thanks for all your replies.

I used AddNormalSoundHook and it worked. I didn't want to block jump or other sounds, just steps, so that was perfect for me.

But I still have no idea how to count steps. I know it is possible to detect if client is holding SHIFT or any move key, but how would You know how many steps has he done? He can still hold SHIFT but, don't move.
How often or when is OnPlayerRunCmd executed?

Thanks in advance.
Eagle08 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 01:19.


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