mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-07-14 16:04:43 +00:00
augmented player shift state with object delete and object create for other connected players
This commit is contained in:
parent
9698ddd5a2
commit
4f74dbaf80
1 changed files with 17 additions and 5 deletions
|
|
@ -1432,13 +1432,25 @@ class GeneralOperations(
|
||||||
val pguid = player.GUID
|
val pguid = player.GUID
|
||||||
val sguid = src.GUID
|
val sguid = src.GUID
|
||||||
val dguid = dest.GUID
|
val dguid = dest.GUID
|
||||||
sendResponse(PlayerStateShiftMessage(ShiftState(0, dest.Position, player.Orientation.z)))
|
val events = continent.AvatarEvents
|
||||||
useRouterTelepadEffect(pguid, sguid, dguid)
|
val zoneid = continent.id
|
||||||
continent.LocalEvents ! LocalServiceMessage(
|
events ! AvatarServiceMessage(zoneid, AvatarAction.ObjectDelete(pguid, pguid))
|
||||||
continent.id,
|
events ! AvatarServiceMessage(player.Name,
|
||||||
LocalAction.RouterTelepadTransport(pguid, pguid, sguid, dguid)
|
AvatarAction.SendResponse(PlanetSideGUID(0), PlayerStateShiftMessage(ShiftState(0, dest.Position, player.Orientation.z)))
|
||||||
)
|
)
|
||||||
player.Position = dest.Position
|
player.Position = dest.Position
|
||||||
|
events ! AvatarServiceMessage(zoneid, AvatarAction.LoadPlayer(
|
||||||
|
pguid,
|
||||||
|
player.Definition.ObjectId,
|
||||||
|
pguid,
|
||||||
|
player.Definition.Packet.ConstructorData(player).get,
|
||||||
|
None
|
||||||
|
))
|
||||||
|
useRouterTelepadEffect(pguid, sguid, dguid)
|
||||||
|
continent.LocalEvents ! LocalServiceMessage(
|
||||||
|
zoneid,
|
||||||
|
LocalAction.RouterTelepadTransport(pguid, pguid, sguid, dguid)
|
||||||
|
)
|
||||||
player.LogActivity(TelepadUseActivity(VehicleSource(router), DeployableSource(remoteTelepad), PlayerSource(player)))
|
player.LogActivity(TelepadUseActivity(VehicleSource(router), DeployableSource(remoteTelepad), PlayerSource(player)))
|
||||||
} else {
|
} else {
|
||||||
log.warn(s"UseRouterTelepadSystem: ${player.Name} can not teleport")
|
log.warn(s"UseRouterTelepadSystem: ${player.Name} can not teleport")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue