mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-21 18:15:59 +02:00
Added functions to allow for an improved seamless zone change. Player can now pull actors from two zones when performing a seamless zone change to give a improved feel.
This commit is contained in:
parent
63edbe81f3
commit
b43a6885c5
3 changed files with 36 additions and 5 deletions
|
@ -25,8 +25,9 @@ namespace FFXIVClassic_Map_Server.Actors
|
|||
public ushort moveState, oldMoveState;
|
||||
public float[] moveSpeeds = new float[5];
|
||||
|
||||
public uint zoneId;
|
||||
public uint zoneId, zoneId2;
|
||||
public Area zone = null;
|
||||
public Area zone2 = null;
|
||||
public bool isZoning = false;
|
||||
|
||||
public bool spawnedFirstTime = false;
|
||||
|
|
|
@ -1245,9 +1245,15 @@ namespace FFXIVClassic_Map_Server.Actors
|
|||
public void SendInstanceUpdate()
|
||||
{
|
||||
|
||||
//Update Instance
|
||||
playerSession.UpdateInstance(zone.GetActorsAroundActor(this, 50));
|
||||
|
||||
//Update Instance
|
||||
|
||||
List<Actor> aroundMe = new List<Actor>();
|
||||
|
||||
aroundMe.AddRange(zone.GetActorsAroundActor(this, 50));
|
||||
if (zone2 != null)
|
||||
aroundMe.AddRange(zone2.GetActorsAroundActor(this, 50));
|
||||
playerSession.UpdateInstance(aroundMe);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue