hch
2019-04-02 4011158e5834a69187237eb575194aeb500bd270
860312 修复NPC移动体验问题,可能会导致瞬移时会带着NPC移动
1个文件已修改
5 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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
        #=======================================================================