mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-07-08 21:14:41 +00:00
replaced player shift state with object create detailed, and stabilizing result with a set current avatar
This commit is contained in:
parent
9698ddd5a2
commit
536d2c3df9
1 changed files with 3 additions and 2 deletions
|
|
@ -1432,13 +1432,14 @@ class GeneralOperations(
|
|||
val pguid = player.GUID
|
||||
val sguid = src.GUID
|
||||
val dguid = dest.GUID
|
||||
sendResponse(PlayerStateShiftMessage(ShiftState(0, dest.Position, player.Orientation.z)))
|
||||
player.Position = dest.Position
|
||||
sendResponse(ObjectCreateDetailedMessage(player.Definition.ObjectId, pguid, player.Definition.Packet.DetailedConstructorData(player).get))
|
||||
sendResponse(SetCurrentAvatarMessage(pguid, 0, 0))
|
||||
useRouterTelepadEffect(pguid, sguid, dguid)
|
||||
continent.LocalEvents ! LocalServiceMessage(
|
||||
continent.id,
|
||||
LocalAction.RouterTelepadTransport(pguid, pguid, sguid, dguid)
|
||||
)
|
||||
player.Position = dest.Position
|
||||
player.LogActivity(TelepadUseActivity(VehicleSource(router), DeployableSource(remoteTelepad), PlayerSource(player)))
|
||||
} else {
|
||||
log.warn(s"UseRouterTelepadSystem: ${player.Name} can not teleport")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue