From 4011158e5834a69187237eb575194aeb500bd270 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 02 四月 2019 17:17:40 +0800
Subject: [PATCH] 860312 修复NPC移动体验问题,可能会导致瞬移时会带着NPC移动
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
index 5e67837..787692c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -2222,8 +2222,9 @@
moveDestY = resultPos.GetPosY()
if curNPC.GetCurAction() == IPY_GameWorld.laNPCMove and \
- (GameWorld.GetGameWorld().GetTick() - curNPC.GetActionTick()) < 1200:
- # Move接口调用太快会导致不移动
+ (GameWorld.GetGameWorld().GetTick() - curNPC.GetActionTick()) < 800:
+ # .Move( 接口调用太快会导致移动时间不够长(不足一格)导致无法移动 或者移动过慢问题
+ # SetDestPos 调用会导致反向移动偏快
curNPC.SetDestPos(moveDestX, moveDestY)
return
#=======================================================================
--
Gitblit v1.8.0