Class/Object

net.psforever.packet.game

ProjectileStateMessage

Related Docs: object ProjectileStateMessage | package game

Permalink

final case class ProjectileStateMessage(projectile_guid: PlanetSideGUID, shot_pos: Vector3, shot_vel: Vector3, unk1: Int, unk2: Int, unk3: Int, unk4: Boolean, time_alive: Int) extends PlanetSideGamePacket with Product with Serializable

Dispatched to deliberately render certain projectiles of a weapon on other players' clients.

This packet is generated by firing specific weapons in specific fire modes. For example, the Phoenix (hunterseeker) discharged in its primary fire mode generates this packet; but, the Phoenix in secondary fire mode does not. The Striker (striker) discharged in its primary fire mode generates this packet; but, the Striker in secondary fire mode does not. The chosen fire mode(s) are not a straight-fire projectile but one that has special control asserted over it. For the Phoenix, it is user-operated. For the Striker, it tracks towards a target while the weapon's reticle hovers over that target.

This packet will continue to be dispatched by the client for as long as the projectile being tracked is in the air. All projectiles have a maximum lifespan before they will lose control and either despawn and/or explode. This number is tracked in the packet for simplicity. If the projectile strikes a valid target, the count will jump to a significantly enormous value beyond its normal lifespan. This ensures that the projectile - locally and the shared model - will despawn.

projectile_guid

the projectile

shot_pos

the position of the projectile

shot_vel

the velocity of the projectile

unk1

na; usually 0

unk2

na; will remain consistent for the lifespan of a given projectile in most cases

unk3

na; will remain consistent for the lifespan of a given projectile in most cases

unk4

na; usually false

time_alive

how long the projectile has been in the air; often expressed in multiples of 2

Source
ProjectileStateMessage.scala
Linear Supertypes
Product, Equals, PlanetSideGamePacket, PlanetSidePacket, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ProjectileStateMessage
  2. Product
  3. Equals
  4. PlanetSideGamePacket
  5. PlanetSidePacket
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ProjectileStateMessage(projectile_guid: PlanetSideGUID, shot_pos: Vector3, shot_vel: Vector3, unk1: Int, unk2: Int, unk3: Int, unk4: Boolean, time_alive: Int)

    Permalink

    projectile_guid

    the projectile

    shot_pos

    the position of the projectile

    shot_vel

    the velocity of the projectile

    unk1

    na; usually 0

    unk2

    na; will remain consistent for the lifespan of a given projectile in most cases

    unk3

    na; will remain consistent for the lifespan of a given projectile in most cases

    unk4

    na; usually false

    time_alive

    how long the projectile has been in the air; often expressed in multiples of 2

Type Members

  1. type Packet = ProjectileStateMessage

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ProjectileStateMessage to any2stringadd[ProjectileStateMessage] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ProjectileStateMessage, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ProjectileStateMessage to ArrowAssoc[ProjectileStateMessage] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def encode: Attempt[BitVector]

    Permalink
  9. def ensuring(cond: (ProjectileStateMessage) ⇒ Boolean, msg: ⇒ Any): ProjectileStateMessage

    Permalink
    Implicit information
    This member is added by an implicit conversion from ProjectileStateMessage to Ensuring[ProjectileStateMessage] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (ProjectileStateMessage) ⇒ Boolean): ProjectileStateMessage

    Permalink
    Implicit information
    This member is added by an implicit conversion from ProjectileStateMessage to Ensuring[ProjectileStateMessage] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): ProjectileStateMessage

    Permalink
    Implicit information
    This member is added by an implicit conversion from ProjectileStateMessage to Ensuring[ProjectileStateMessage] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): ProjectileStateMessage

    Permalink
    Implicit information
    This member is added by an implicit conversion from ProjectileStateMessage to Ensuring[ProjectileStateMessage] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ProjectileStateMessage to StringFormat[ProjectileStateMessage] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def opcode: GamePacketOpcode.Value

    Permalink
  22. val projectile_guid: PlanetSideGUID

    Permalink

    the projectile

  23. val shot_pos: Vector3

    Permalink

    the position of the projectile

  24. val shot_vel: Vector3

    Permalink

    the velocity of the projectile

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. val time_alive: Int

    Permalink

    how long the projectile has been in the air; often expressed in multiples of 2

  27. val unk1: Int

    Permalink

    na; usually 0

  28. val unk2: Int

    Permalink

    na; will remain consistent for the lifespan of a given projectile in most cases

  29. val unk3: Int

    Permalink

    na; will remain consistent for the lifespan of a given projectile in most cases

  30. val unk4: Boolean

    Permalink

    na; usually false

  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def [B](y: B): (ProjectileStateMessage, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ProjectileStateMessage to ArrowAssoc[ProjectileStateMessage] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Product

Inherited from Equals

Inherited from PlanetSideGamePacket

Inherited from PlanetSidePacket

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ProjectileStateMessage to any2stringadd[ProjectileStateMessage]

Inherited by implicit conversion StringFormat from ProjectileStateMessage to StringFormat[ProjectileStateMessage]

Inherited by implicit conversion Ensuring from ProjectileStateMessage to Ensuring[ProjectileStateMessage]

Inherited by implicit conversion ArrowAssoc from ProjectileStateMessage to ArrowAssoc[ProjectileStateMessage]

Ungrouped