View Single Post
Mitchell
~lick~
Join Date: Mar 2010
Old 07-11-2018 , 01:47   Re: [CS:GO] Hook game in background
Reply With Quote #5

Quote:
Originally Posted by 1337norway View Post
I'm pretty sure he means alt-tabbed.

You can't check this naively in source mod or from the source engine server itself. You would need a way to run code on a client to figure this out normally but through my development of my previous anti-cheats I've discovered a way within CS:GO at least. NetChannels has a virtual function called GetTimeSinceLastReceived. You can use this information to figure out when the game client last sent data to the server along with the GetAvgLoss function to figure out when players are most likely alt tabbed. They will send less info to the server or none in some cases then they would if they were in-game. This is really the only way I believe you can currently do this and it's really hacky.
If they have the game minimize i remember others saying OnPlayerRunCmd no longer fires for that client so you could have a timer every 10 seconds check if some one hasn't fired that forward.
Mitchell is offline