Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | return;
|
| | | }
|
| | |
|
| | | Vector3 _pos = new Vector3((package.PosX - GA_Hero.MapOffset.x) * .5f, 0, (package.PosY - GA_Hero.MapOffset.z) * .5f);
|
| | | Vector3 _pos;
|
| | |
|
| | | if (package.PosX == 0 && package.PosY == 0)
|
| | | {
|
| | | _pos = ClientSceneManager.Instance.lastDeadPos;
|
| | | }
|
| | | else
|
| | | {
|
| | | _pos = new Vector3((package.PosX - GA_Hero.MapOffset.x) * .5f, 0, (package.PosY - GA_Hero.MapOffset.z) * .5f);
|
| | | }
|
| | |
|
| | | RaycastHit _hitInfo;
|
| | | if (Physics.Raycast(_pos + new Vector3(0, 30, 0), Vector3.down, out _hitInfo, 100, LayerUtility.WalkbleMask))
|
| | |
| | | } |
| | | } |
| | | |
| | | public Vector3 lastDeadPos { get; private set; } |
| | | |
| | | public void NpcDead(int eventID, GActor npc, int npcID) |
| | | { |
| | | if (eventID < 0 || npc == null) |
| | |
| | | m_EventActorDict[eventID].Remove(npc); |
| | | } |
| | | } |
| | | |
| | | lastDeadPos = npc.Pos; |
| | | } |
| | | |
| | | public void Handle_0820(H0820_tagMissionDict package) |
| | |
| | | m_Liquid.gameObject.SetActive(false);
|
| | | var dataMapId = model.GetDataMapIdByMapId(PlayerDatas.Instance.baseData.MapID);
|
| | | m_ExitDungeon.gameObject.SetActive(dataMapId != DemonJarModel.DEMONJAR_MAPID
|
| | | && !CrossServerUtility.IsCrossServerOneVsOne());
|
| | | && !CrossServerUtility.IsCrossServerOneVsOne()
|
| | | && !hazyDemonKingModel.IsInDungeon);
|
| | | m_ContainerAncient.gameObject.SetActive(dataMapId == 31160);
|
| | | m_BossInfosContainer.gameObject.SetActive(
|
| | | dataMapId == ElderGodAreaModel.ELDERGODAREA_MAPID
|
| | |
| | | break;
|
| | | case JadeDynastyBossModel.JADEDYNASTY_MAP:
|
| | | case AllianceBossModel.DATAMAPID:
|
| | | case RidingPetBossModel.RIDINGPETBOSS_MAP:
|
| | | m_Inspire.gameObject.SetActive(true);
|
| | | break;
|
| | | default:
|
| | |
| | | m_BossAlive = findPreciousModel.IsBossAlive(config.npcId);
|
| | | }
|
| | |
|
| | | HazyRegionModel.Incident incident;
|
| | | model.TryGetIncident(incidentId, out incident);
|
| | | var error = 0;
|
| | | redpointAble = model.TryGotoIncident(incidentId, false, out error);
|
| | | redpointAble = model.TryGotoIncident(incidentId, false, out error)
|
| | | && incident.state == HazyRegionModel.IncidentState.Processing;
|
| | |
|
| | |
|
| | | DisplayBase();
|
| | | DisplayItems();
|
| | |
| | | bossAlive = findPreciousModel.IsBossAlive(config.npcId);
|
| | | }
|
| | |
|
| | | var error = 0;
|
| | | redpointAble = model.TryGotoIncident(incidentId, false, out error);
|
| | | HazyRegionModel.Incident incident;
|
| | | if (model.TryGetIncident(incidentId, out incident))
|
| | | {
|
| | | var error = 0;
|
| | | redpointAble = model.TryGotoIncident(incidentId, false, out error)
|
| | | && incident.state == HazyRegionModel.IncidentState.Processing;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | var error = 0;
|
| | | foreach (var id in incidents)
|
| | | {
|
| | | if (model.TryGotoIncident(id, false, out error))
|
| | | HazyRegionModel.Incident incident;
|
| | | if (model.TryGotoIncident(id, false, out error)
|
| | | && model.TryGetIncident(id, out incident)
|
| | | && incident.state == HazyRegionModel.IncidentState.Processing)
|
| | | {
|
| | | model.selectIncident = id;
|
| | | break;
|
| | |
| | | {
|
| | | SnxxzGame.Instance.StartCoroutine(Co_TryOpenHazyRegionWin());
|
| | | WindowCenter.Instance.Close<HazyAdventureHintWin>();
|
| | |
|
| | | taskModel.AutomaticTripToTask(taskModel.currentMission);
|
| | | //taskModel.AutomaticTripToTask(taskModel.currentMission);
|
| | | }
|
| | |
|
| | | private void OnStageLoadFinish()
|