mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-25 23:09:08 +00:00
Merge branch 'master' into ReleaseAvatarRequestMessage
This commit is contained in:
commit
7fbf564490
3 changed files with 73 additions and 1 deletions
|
|
@ -523,7 +523,7 @@ object GamePacketOpcode extends Enumeration {
|
|||
case 0xaa => noDecoder(UnknownMessage170)
|
||||
case 0xab => noDecoder(UnknownMessage171)
|
||||
case 0xac => game.ReleaseAvatarRequestMessage.decode
|
||||
case 0xad => noDecoder(AvatarDeadStateMessage)
|
||||
case 0xad => game.AvatarDeadStateMessage.decode
|
||||
case 0xae => noDecoder(CSAssistMessage)
|
||||
case 0xaf => noDecoder(CSAssistCommentMessage)
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,39 @@
|
|||
// Copyright (c) 2017 PSForever
|
||||
package net.psforever.packet.game
|
||||
|
||||
import net.psforever.packet.{GamePacketOpcode, Marshallable, PlanetSideGamePacket}
|
||||
import net.psforever.types.Vector3
|
||||
import scodec.Codec
|
||||
import scodec.codecs._
|
||||
|
||||
/**
|
||||
* na
|
||||
* @param unk1 0 = nothing, 1 = waiting for a rez, 2 = auto map to select spawn, 3 = respawn time
|
||||
* @param unk2 na
|
||||
* @param unk3 spawn penality
|
||||
* @param pos last victim's position
|
||||
* @param unk4 na
|
||||
* @param unk5 na
|
||||
*/
|
||||
final case class AvatarDeadStateMessage(unk1 : Int,
|
||||
unk2 : Long,
|
||||
unk3 : Long,
|
||||
pos : Vector3,
|
||||
unk4 : Long,
|
||||
unk5 : Boolean)
|
||||
extends PlanetSideGamePacket {
|
||||
type Packet = AvatarDeadStateMessage
|
||||
def opcode = GamePacketOpcode.AvatarDeadStateMessage
|
||||
def encode = AvatarDeadStateMessage.encode(this)
|
||||
}
|
||||
|
||||
object AvatarDeadStateMessage extends Marshallable[AvatarDeadStateMessage] {
|
||||
implicit val codec : Codec[AvatarDeadStateMessage] = (
|
||||
("unk1" | uintL(3)) ::
|
||||
("unk2" | uint32L) ::
|
||||
("unk3" | uint32L) ::
|
||||
("pos" | Vector3.codec_pos) ::
|
||||
("unk4" | uint32L) ::
|
||||
("unk5" | bool)
|
||||
).as[AvatarDeadStateMessage]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue