Anticheat - Surfing Boats
#7

Quote:
Originally Posted by Babul
Посмотреть сообщение
since speedhacks will only trigger when the player is moving, i think that the boat needs a driver.
as soon you got the drivers' id (and the vehicleid being driven), you could subtract the surfing players' position from the vehicles' position. as long the two players (or: the surfing player and the boat) are close together, you may assume that the player is still ON the boat. if you raise the "valid low distance to the boat" to more than 10 units, any player could teleport around the boat...
combining this with -2.0<z<2.0 as z-position, a boat always drives on the ocean - a player is kinda "allowed" to travel at (boats max) speeds JUST at those z-coordinates, but as soon one player figures this out, the word will spread.
one thought about a "naive" solution: (assumptions)
-your server loads 1000 vehicles
-there are like 50 boats only
-at spawning any of those 50 (or later spawned) boat(s), add this very vehicleid to an array, and increase its pointer. like BoatsSpawned[Boats]=vehicleid;Boats++;
-when a player warps around, check at OnplayerUpdate if any of those BoatsSpawned[0<Boats<50] is closer than 10 units (would not need the driver check maybe?)
Thanks Babul, I've decided to go with the idea of making and attaching an area around the boat and then checking if they're in the boat area, it seems to work pretty well too!
Reply


Messages In This Thread
Anticheat - Surfing Boats - by Kyle - 20.12.2012, 10:19
Re: Anticheat - Surfing Boats - by Yiin - 20.12.2012, 10:24
Re: Anticheat - Surfing Boats - by Roel - 20.12.2012, 10:29
Re: Anticheat - Surfing Boats - by Kyle - 20.12.2012, 10:31
Re: Anticheat - Surfing Boats - by Roel - 20.12.2012, 10:35
Re: Anticheat - Surfing Boats - by Babul - 20.12.2012, 11:16
Re: Anticheat - Surfing Boats - by Kyle - 20.12.2012, 14:36

Forum Jump:


Users browsing this thread: 3 Guest(s)