Show / Hide Table of Contents

Class MovementHackDetector

This class detects when player hacks movement with teleport or increased speed.

Inheritance
System.Object
MovementHackDetector
Namespace: Eco.Gameplay.Players
Assembly: Eco.Gameplay.dll
Syntax
public class MovementHackDetector : Object

Constructors

MovementHackDetector()

Declaration
public MovementHackDetector()

Fields

LatestValidPosition

Declaration
public Vector3 LatestValidPosition
Field Value
Type Description
System.Numerics.Vector3

Properties

PrevWaypoint

Declaration
public Nullable<MovementHackDetector.Waypoint> PrevWaypoint { get; }
Property Value
Type Description
System.Nullable<MovementHackDetector.Waypoint>

Methods

AddWaypoint(Vector3, Single, Double, out Single)

Adds waypoint for player movement. It contains position, max allowed velocity and client timestamp. When new waypoint added and if previous waypoint exists then it checks if distance between waypoints reachable with velocity at last waypoint. It doesn't check vertical component, because you may fall or jump with higher speed, but it should be fine in most cases.

Declaration
public bool AddWaypoint(Vector3 position, float velocity, double time, out float distance)
Parameters
Type Name Description
System.Numerics.Vector3 position
System.Single velocity
System.Double time
System.Single distance
Returns
Type Description
System.Boolean

Clear()

Clears waypoint info. I.e. if you get admin rights and should ignore abnormal movement until admin mode disabled.

Declaration
public void Clear()

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾