Speed is now stored in the actor. Redid actor speed packet to use float. Added GameMessagePacket which can use all 20 msg packets. Added functions for lua side to call in player obj.

This commit is contained in:
Filip Maj committed 2016-02-02 00:02:06 -05:00
1 parent fe69f069ea
commit cfb29b912f
7 files changed
+445 -21

No files matched your search

@@ -289,5 +289,22 @@ namespace FFXIVClassic_Map_Server.Actors
}
}
public void broadcastPacketAroundActor(Actor actor, SubPacket packet)
{
if (zone != null)
{
List<Actor> aroundActor = getActorsAroundActor(actor, 50);
foreach (Actor a in aroundActor)
{
if (a is Player)
{
SubPacket clonedPacket = new SubPacket(packet, actor.actorId);
Player p = (Player)a;
p.queuePacket(clonedPacket);
}
}
}
}
}
}