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

[ANY] Little Anti-Cheat


Post New Thread Reply   
 
Thread Tools Display Modes
lemeshovich
Member
Join Date: Jun 2011
Old 03-03-2021 , 06:30   Re: [ANY] Little Anti-Cheat
Reply With Quote #271

Quote:
Originally Posted by lemeshovich View Post
i think i found a bug
sometimes like 1 or 2 times during few hours game session im not able to shoot from my weapon
im pressing my lmb but nothing happening and it goes away in a few seconds
its happening on 1.7.0-Dev 8 and 1.7.0-Dev 9 versions
back to this bug, its still happening to me almost every day
ill try to explain my observations about this, looks like that occurs only when im trying to shoot (or just aim, not sure) at enemy which is behind any texture (wall, box, etc)
by aiming through walls i mean prefire and predicting enemy moves, not any kinds of cheats

when this happened (im clicking lmb but my weapon isnt shooting) if i continue to press lmb nothing will change and to fix this i have to stop pressing lmb like for 3-4 secs after that everything becomes normal
additional observations, that can happen with any weapon and with any enemy (even with bot)
i was trying to record some video for you about this, so far i have managed to record only one moment for now, and im not sure this could give any additional info for you but still here it is:
https://youtu.be/mvedAozCIY0 (bug happened on 00:08 video time and 0:52 roundtime)
lemeshovich is offline
J_Tanzanite
Senior Member
Join Date: Aug 2018
Location: Norway
Old 03-03-2021 , 09:39   Re: [ANY] Little Anti-Cheat
Reply With Quote #272

Quote:
Originally Posted by lemeshovich View Post
back to this bug, its still happening to me almost every day
ill try to explain my observations about this, looks like that occurs only when im trying to shoot (or just aim, not sure) at enemy which is behind any texture (wall, box, etc)
by aiming through walls i mean prefire and predicting enemy moves, not any kinds of cheats

when this happened (im clicking lmb but my weapon isnt shooting) if i continue to press lmb nothing will change and to fix this i have to stop pressing lmb like for 3-4 secs after that everything becomes normal
additional observations, that can happen with any weapon and with any enemy (even with bot)
i was trying to record some video for you about this, so far i have managed to record only one moment for now, and im not sure this could give any additional info for you but still here it is:
https://youtu.be/mvedAozCIY0 (bug happened on 00:08 video time and 0:52 roundtime)
Sadly the video creates more questions than it answeres.
But, I think I came up with a way to pin down what causes this.

Attached to this reply, is a specific version which tries to check when the player input is changed, and logs when and where it happens in the code.

Try this one.
When the shooting gets blocked, there will be a file at "addons/sourcemod/logs/LILAC_BUTTONS.txt" which details where in the code the blockage occurs.
It will only do this on players who have been in-game for more than 60 seconds and who are alive, just FYI.
It will log once per player.

If you can test with this, I should be able to see where the error is.
Attached Files
File Type: zip Little-Anti-Cheat-1.7.0-SHOOTCHECK.zip (98.7 KB, 33 views)
J_Tanzanite is offline
lemeshovich
Member
Join Date: Jun 2011
Old 03-03-2021 , 13:19   Re: [ANY] Little Anti-Cheat
Reply With Quote #273

Quote:
Originally Posted by J_Tanzanite View Post
Sadly the video creates more questions than it answeres.
But, I think I came up with a way to pin down what causes this.

Attached to this reply, is a specific version which tries to check when the player input is changed, and logs when and where it happens in the code.

Try this one.
When the shooting gets blocked, there will be a file at "addons/sourcemod/logs/LILAC_BUTTONS.txt" which details where in the code the blockage occurs.
It will only do this on players who have been in-game for more than 60 seconds and who are alive, just FYI.
It will log once per player.

If you can test with this, I should be able to see where the error is.
thanks ill try it now
lemeshovich is offline
lemeshovich
Member
Join Date: Jun 2011
Old 03-04-2021 , 04:36   Re: [ANY] Little Anti-Cheat
Reply With Quote #274

J_Tanzanite
updated version yesterday evening and already catched bug few times
but there is no LILAC_BUTTONS.txt file in logs dir
but for now i have 6gb sourcemod error log with this:
Quote:
...
L 03/04/2021 - 112:14: [SM] Blaming: lilac.smx
L 03/04/2021 - 112:14: [SM] Call stack trace:
L 03/04/2021 - 112:14: [SM] [0] GetClientTime
L 03/04/2021 - 112:14: [SM] [1] Line 395, lilac.sp::BUG_CATCH
L 03/04/2021 - 112:14: [SM] [2] Line 318, lilac.sp::OnPlayerRunCmd
L 03/04/2021 - 112:14: [SM] Exception reported: Client 5 is a bot
L 03/04/2021 - 112:14: [SM] Blaming: lilac.smx
L 03/04/2021 - 112:14: [SM] Call stack trace:
L 03/04/2021 - 112:14: [SM] [0] GetClientTime
L 03/04/2021 - 112:14: [SM] [1] Line 395, lilac.sp::BUG_CATCH
L 03/04/2021 - 112:14: [SM] [2] Line 318, lilac.sp::OnPlayerRunCmd
L 03/04/2021 - 112:14: [SM] Exception reported: Client 6 is a bot
...
UPD. errors stops with bot_quota 0

Last edited by lemeshovich; 03-04-2021 at 04:55.
lemeshovich is offline
J_Tanzanite
Senior Member
Join Date: Aug 2018
Location: Norway
Old 03-04-2021 , 04:57   Re: [ANY] Little Anti-Cheat
Reply With Quote #275

Quote:
Originally Posted by lemeshovich View Post
J_Tanzanite
updated version yesterday evening and already catched bug few times
but there is no LILAC_BUTTONS.txt file in logs dir
but for now i have 6gb sourcemod error log with this:
Wow, I managed to forget to add one function...
Amazing how one missing function can cause that much havoc...
The dumb thing is, I tested it with bots, and didn't get those errors........ That's cool.

Anyway, fixed it, this one should work.
Attached Files
File Type: zip Little-Anti-Cheat-1.7.0-SHOOTCHECK_FIX.zip (98.7 KB, 27 views)
J_Tanzanite is offline
lemeshovich
Member
Join Date: Jun 2011
Old 03-04-2021 , 06:50   Re: [ANY] Little Anti-Cheat
Reply With Quote #276

Quote:
Originally Posted by J_Tanzanite View Post
Anyway, fixed it, this one should work.
thanks, tested this
there is no errors in sourcemod logs for now
played ~1.5 hour to reproduce bug, just happened
but still there is no LILAC_BUTTONS.txt file in logs dir(
maybe i should create empty file with that name?
lemeshovich is offline
J_Tanzanite
Senior Member
Join Date: Aug 2018
Location: Norway
Old 03-04-2021 , 08:23   Re: [ANY] Little Anti-Cheat
Reply With Quote #277

Quote:
Originally Posted by lemeshovich View Post
thanks, tested this
there is no errors in sourcemod logs for now
played ~1.5 hour to reproduce bug, just happened
but still there is no LILAC_BUTTONS.txt file in logs dir(
maybe i should create empty file with that name?
You could try to create the file yourself, but it isn't going to change anything.
Did you remember to do "sm plugins refresh" btw?
Because that's important.

Also, when your input gets blocked, is this what you see? https://www.youtube.com/watch?v=DVaAXYB4zDw
Like, do you see your ammo count go down and then instantly up again. And do you see your shooting animation start and suddenly reset?
J_Tanzanite is offline
lemeshovich
Member
Join Date: Jun 2011
Old 03-04-2021 , 08:34   Re: [ANY] Little Anti-Cheat
Reply With Quote #278

Quote:
Originally Posted by J_Tanzanite View Post
Did you remember to do "sm plugins refresh" btw?
i changed map few times and also made full server restart
Quote:
Originally Posted by J_Tanzanite View Post
Like, do you see your ammo count go down and then instantly up again. And do you see your shooting animation start and suddenly reset?
im not sure about ammo but no, i do not see any animation
everything looks like i'm not pressing lmb but i am)
lemeshovich is offline
J_Tanzanite
Senior Member
Join Date: Aug 2018
Location: Norway
Old 03-04-2021 , 09:00   Re: [ANY] Little Anti-Cheat
Reply With Quote #279

Quote:
Originally Posted by lemeshovich View Post
i changed map few times and also made full server restart


im not sure about ammo but no, i do not see any animation
everything looks like i'm not pressing lmb but i am)
... Well... Then there isn't a plugin blocking your input...
When plugins block your input, your client still thinks it shot, until the server tells you that you didn't, hence the animation and ammo.

Also, the fact that the file doesn't generate kinda confirms this.
There are two ways (as far as I know), to block you from shooting.
1. Edit your input inside of OnPlayerRunCmd().
2. Edit your weapon attributes.

The debug version I gave you checks the 1st one. It stores your input inside of OnPlayerRunCmd() before it does anything, then after every cheat detection that *could* alter your input, tests if it did.
And if it did, it would log it.
If another plugin were to block your input however, then Lilac would be comparing blocked input to blocked input, and since it didn't cause the blockage, it won't detect that it blocked anything and thus not log anything.

But since you don't get these jerky animations or ammo counter going down and up, then it's safe to say that your input isn't blocked.

Which leaves the second method, changing when your weapon is allowed to shoot.
Which Lilac doesn't do either...

The closest Lilac gets to this, is checking when you can shoot:
PHP Code:
bool bullettime_can_shoot(int client)
{
    
int weapon;

    if (!
IsPlayerAlive(client))
        return 
false;

    
weapon GetEntPropEnt(clientProp_Data"m_hActiveWeapon");

    if (!
IsValidEntity(weapon))
        return 
false;

    if (
GetEntPropFloat(clientProp_Data"m_flSimulationTime") + GetTickInterval()
        >= 
GetEntPropFloat(weaponProp_Data"m_flNextPrimaryAttack"))
        return 
true;

    return 
false;

In order to change when you can shoot, it would have to use SetEntPropFloat() (Or some other alternative function).
And Lilac doesn't do that.

So that leaves this function as the only other thing I can think of that could possibly ever block you from shooting.

...
Other than a broken mouse, other plugins altering your weapons, sourcemod being bugged (doubt) or the game itself being bugged (extra doubt)...

It makes me wonder tho, does this "blocked from shooting" bug only happen when your server has been on for a long time?
Or can it also happen right after you've completely restarted your server? As in, within 30 minutes of a complete restart?
J_Tanzanite is offline
Teamkiller324
Senior Member
Join Date: Feb 2014
Location: Earth
Old 03-04-2021 , 09:07   Re: [ANY] Little Anti-Cheat
Reply With Quote #280

Swedish translation <:
Attached Files
File Type: txt lilac.phrases.txt (1.6 KB, 29 views)
__________________
Teamkiller324 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 16:21.


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