In the future @DaNiNeX please don't post after a necro post saying it's a necro post. Useless and very annoying, you don't have to state the obvious by bumping the thread further.
is it possible create a script to ban people using bhop macros? exist something already done? I am aware of the game being old but lately I see many people who abuse this exploit. It is quite difficult to recognize a legit bhop from a non legit bhop .
It’s possible up to a certain level. It also must be thought through and tested carefully to avoid false positives. Macrodox and the like There is one such script running on the servers - it’s called Macrodox. You can look it up on AlliedModders. It’s a bit outdated but as far as I’m aware it still works and manages to catch many public autobhop scripts. I know people who have tried to make their own anticheats to guard their servers against these sorta autobhop hacks. However, most of them prefer not to distribute their scripts publicly so that cheaters don’t reverse-engineer their work and bypass the detection methods they’ve used. The idea behind how they operate is pretty similar and straight-forward. They measure the time difference (game ticks) between players hitting the ground and jumping. If it’s zero, then it’s considered a “perfect” jump meaning no speed loss (no ground friction). The more perfect jumps a player has, the higher the chances he’s cheating. It’s usually that setting which varies across the different anticheats. How they hide it Cheat developers often find ways to simulate their cheat to behave more realistic by introducing a human error factor. For instance one could make his cheat delay the jump by a random amount every now and then - the downside of that being an occasional speed loss for the cheater. It’s usually a trade off between how aggressive they want the cheat to be and by how much they want it to be able to cover itself up. Another thing one could do to hide it more is trigger the jump key several times before he lands and after he jumps simulating what a legit player would normally do by scrolling the mouse wheel. This could leave spectators viewing the cheater’s keys with the assumption he’s legit. Other cheats There are other types of cheats that can give you an advantage in bhop including strafehacks which automate strafing so that you always achieve the maximum possible speed out of each turn in the air (it follows the game engine air accelerate formula). You also have optimizers which do the same thing as strafehacks but in a weaker manner making it harder to spot and catch with a server-side script. Anglehacks which rotate your view so that you can cheat on different bhop styles (playing on sideways server-side but seeing normal forward view client-side for ex), in fact anglehacks are pretty hard to catch. You might spot them if you observe the player closely and what he does. Sometimes the player's view glitches out on teleports - that's one, if not the only way to detect them. There is a console macro called nuller which automatically releases the first key you’ve pressed when you press a second so that keys don’t overlap when you strafe (basically when you hold A and D for ex. you’re not going into either direction and this macro avoids that so that you’re never “stationary”) Can be spot by looking at player's keys and seeing if they never overlap. Also not too hard to catch with a script. There’s one which is quite aggressive and very easy to spot and catch. They call it silentstrafe. It spams the sidemove vector left and right rapidly which gives the player super speed without the need of strafing. Often used on longjump bits. There’s a funny one called autoedge which automatically jumps for you when you’re at the edge of a block. It’s only used when prestrafing / longjumping so that you jump at the very last moment, at the edge of the start zone / block. And yes, there is also a cheat which prestrafes perfectly for you so you get the maximum possible speed. There’s also the movement recorder. Have you seen replay bots? It works kinda the same way. It lets you record your run on a private server at a low host_timescale and then playback it on a public server breaking the WR. These are hard to catch if done right. Your goal is to tweak a server variable or something else which could potentially break their playback. These are most of the cheats I can think of. Some of them are easy to catch, some need tuning, others are somewhat impossible to detect using a server-side script. Hope this was informative. Also, don't forget that the bhop scene is a massive meme. Just put on some background music and bhop for fun man. That's what I do, because I find it relaxing. Yeah cheaters are bad but do they really ruin your game experience?