Feature #32500

Prevent speed and teleporting hacks

Added by KungFuCharlie over 3 years ago.

Status:New Start date:06/07/2012
Priority:Normal Due date:
Assignee:- % Done:


Target version:-


There have been reports of players moving way to fast and teleporting around the map in the same session (i.e. not disconnecting, moving on another server, and reconnecting).

on timer:
    if player in vehicle:
        max_speed = vehicle.max_speed
        max_speed = player.max_speed

    distance_traveled = player1.position - player1.previous_position
    if distance_traveled > calculate_max_possible_distance(max_speed, timer.duration):
        punish player for teleport hack or speed hack

Also available in: Atom PDF