hch
2019-05-25 fc0477a43ec7ad1536a15efd2f229b140ba33fc7
6942 【后端】视野层级设计
3个文件已修改
8 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFB.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py
@@ -7293,10 +7293,8 @@
def DoType_Visible(curPlayer, curMission, curActionNode):
    visible = GameWorld.ToIntDef(curActionNode.GetAttribute("id"), 0)
    if visible:
        curPlayer.SetVisible(True)
        curPlayer.SetSightLevel(0)
    else:
        curPlayer.SetVisible(False)
        curPlayer.SetSightLevel(curPlayer.GetID())
    return
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -1036,7 +1036,7 @@
    if not GameWorld.IsCrossServer() and (PlayerControl.GetCrossMapID(curPlayer) or curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_ClientCustomScene)):
        GameWorld.DebugLog("===登录本服地图时,处于跨服或自定义场景状态,不刷新视野!", curPlayer.GetPlayerID())
        curPlayer.SetSightLevel(curPlayer.GetID())
    elif curPlayer.GetLV() > 1:
    if curPlayer.GetLV() > 1:
        PlayerState.ChangePlayerSigh(curPlayer, tick)
    
    if GameWorld.IsCrossServer():
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFB.py
@@ -496,8 +496,6 @@
            PlayerControl.SetCustomMap(curPlayer, 0, 0)
            return
    
    curPlayer.SetCanAttack(False)
    curPlayer.SetVisible(False)
    curPlayer.SetSightLevel(curPlayer.GetID())
    curPet = curPlayer.GetPetMgr().GetFightPet()
    if curPet:
@@ -516,8 +514,6 @@
def DoExitCustomScene(curPlayer):
    ## 退出自定义场景状态
    curPlayer.SetCanAttack(True)
    curPlayer.SetVisible(True)
    curPlayer.SetSightLevel(curPlayer.GetID())
    curPlayer.RefreshView()
    curPlayer.SetSightLevel(0)