Hacker News new | ask | show | jobs
by emkoemko 43 days ago
why can't we prevent wall hacking by not sending packets of enemy players position if the user can't see them on their screen
5 comments

You can do it to a degree (basic room detection), but it'll never be 100% accurate because of latency and compute cost, you have to give leeway.
Sometimes user can partially see them, game client would need that position. Then user can make a mod that flashes silhouette that just appeared behind a wall for a moment.
this is something cool done by valorant - see https://www.riotgames.com/en/news/demolishing-wallhacks-valo...
you run into some really difficult to solve issues when it comes to the gameplay loop, the graphics engine, and network latency trying to solve that unless you are playing some sort of turn based game where all data can be resolved before the next action
not a trivial solution.