mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-07-16 00:44:46 +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 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)))
|
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)
|
useRouterTelepadEffect(pguid, sguid, dguid)
|
||||||
continent.LocalEvents ! LocalServiceMessage(
|
continent.LocalEvents ! LocalServiceMessage(
|
||||||
continent.id,
|
continent.id,
|
||||||
LocalAction.RouterTelepadTransport(pguid, pguid, sguid, dguid)
|
LocalAction.RouterTelepadTransport(pguid, pguid, sguid, dguid)
|
||||||
)
|
)
|
||||||
player.Position = dest.Position
|
|
||||||
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