MapProjAnim

class MapProjAnim : ZoneProt

Map projectile anim packets are sent to render projectiles from one coord to another.

Constructors

Link copied to clipboard
constructor(id: Int, startHeight: Int, endHeight: Int, startTime: Int, endTime: Int, angle: Int, progress: Int, sourceIndex: Int, targetIndex: Int, xInZone: Int, zInZone: Int, deltaX: Int, deltaZ: Int)

Properties

Link copied to clipboard
val angle: Int

the angle that the projectile takes during its flight

Link copied to clipboard
open override val category: ServerProtCategory
Link copied to clipboard
Link copied to clipboard
val deltaX: Int

the x coordinate delta that the projectile will move to relative to the starting position.

Link copied to clipboard
val deltaZ: Int

the z coordinate delta that the projectile will move to relative to the starting position.

Link copied to clipboard

the height of the projectile as it finishes flying

Link copied to clipboard

the end time in client cycles (20ms/cc) until the projectile arrives at its destination

Link copied to clipboard
val id: Int

the id of the spotanim that is this projectile

Link copied to clipboard

the fine coord distance offset that the projectile begins flying at. If the value is 0, the projectile begins flying at the defined start coordinate. For every 128 units of value, the projectile is moved 1 game square towards the end position. Interpolate between 0-128 for units smaller than 1 game square. This is commonly set to 128 to make a projectile appear as if it's flying straight down, as the projectile will not render if its defined start and end coords are equal. So, in order to avoid that, one solution is to put the end coordinate 1 game square away from the start in a cardinal direction, and set the value of this property to 128 - ensuring that the projectile will appear to fly completely vertically, with no horizontal movement whatsoever.

Link copied to clipboard
open override val protId: Int
Link copied to clipboard

the index of the pathing entity from whom the projectile comes. If the value is 0, the projectile will not be locked to any source entity.

Link copied to clipboard

the height of the projectile as it begins flying

Link copied to clipboard

the start time in client cycles (20ms/cc) until the projectile begins moving

Link copied to clipboard

the index of the pathing entity at whom the projectile is shot. If the value is 0, the projectile will not be locked to any target entity.

Link copied to clipboard

the start x coordinate of the projectile within the zone it is in, a value in range of 0 to 7 (inclusive) is expected. Any bits outside that are ignored.

Link copied to clipboard

the start z coordinate of the projectile within the zone it is in, a value in range of 0 to 7 (inclusive) is expected. Any bits outside that are ignored.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun estimateSize(): Int
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String