mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
stubbed some more states
- stubbed some ability stuff - moved packet things to loop instead of session only - added mob roaming and aggro - todo: fix target find/detection/pathfinding speed/line of sight/line aoe length etc - todo: see "// todo:" in code
This commit is contained in:
parent
c7b87c0d89
commit
68657e1edc
33 changed files with 1459 additions and 444 deletions
|
@ -39,7 +39,7 @@ namespace FFXIVClassic_Map_Server.dataobjects
|
|||
public void QueuePacket(SubPacket subPacket)
|
||||
{
|
||||
subPacket.SetTargetId(id);
|
||||
Server.GetWorldConnection().QueuePacket(subPacket);
|
||||
Server.GetWorldConnection()?.QueuePacket(subPacket);
|
||||
}
|
||||
|
||||
public Player GetActor()
|
||||
|
@ -119,12 +119,12 @@ namespace FFXIVClassic_Map_Server.dataobjects
|
|||
{
|
||||
//Don't send for static characters (npcs)
|
||||
// todo: this is retarded, need actual mob class
|
||||
if (actor is Character && ((Character)actor).isStatic)
|
||||
continue;
|
||||
//if (actor is Character && ((Character)actor).isStatic)
|
||||
// continue;
|
||||
|
||||
var packet = actor.CreatePositionUpdatePacket();
|
||||
if (packet != null)
|
||||
QueuePacket(packet);
|
||||
//var packet = actor.CreatePositionUpdatePacket();
|
||||
//if (packet != null)
|
||||
// QueuePacket(packet);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue