mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 16:42:26 +08:00
优化
This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
MoveVectorCacheNum = 10
|
MoveVectorCacheNum = 10
|
||||||
MaxMoveSpeed = 30.0
|
MaxMoveSpeed = 50.0
|
||||||
JumpDistance = 100.0
|
JumpDistance = 100.0
|
||||||
PointDistance = 10.0
|
PointDistance = 10.0
|
||||||
)
|
)
|
||||||
@@ -49,6 +49,9 @@ func (a *AnticheatContext) Move(pos *proto.Vector) bool {
|
|||||||
}
|
}
|
||||||
isJump := true
|
isJump := true
|
||||||
for _, pointData := range scenePointMap {
|
for _, pointData := range scenePointMap {
|
||||||
|
if pointData.TranPos == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
d := GetDistance(pos, &proto.Vector{
|
d := GetDistance(pos, &proto.Vector{
|
||||||
X: float32(pointData.TranPos.X),
|
X: float32(pointData.TranPos.X),
|
||||||
Y: float32(pointData.TranPos.Y),
|
Y: float32(pointData.TranPos.Y),
|
||||||
|
|||||||
Reference in New Issue
Block a user