LocMerge

class LocMerge : ZoneProt

Loc merge packets are used to merge a given loc's model with the player's own model, preventing any visual clipping problems in the process. This is commonly done with obstacle pipes in agility courses, as the player model will otherwise render through the pipes.

The merge will cover a rectangle defined by the minX, minZ, maxX and maxZ properties, relative to the player who is being merged. It should be noted that the client adds an extra 1 to the total width/height values here, so having all these properties at zero would still create a single tile square to be merged.

Constructors

Link copied to clipboard
constructor(index: Int, id: Int, xInZone: Int, zInZone: Int, shape: Int, rotation: Int, start: Int, end: Int, minX: Int, minZ: Int, maxX: Int, maxZ: Int)

Properties

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

the client cycle (20ms/cc) at which the merging ends.

Link copied to clipboard
val id: Int

the id of the loc that is being merged with the player

Link copied to clipboard
val index: Int

the index of the player who is being merged

Link copied to clipboard
Link copied to clipboard
val maxX: Int

the max x coordinate at which the merge occurs (see explanation above)

Link copied to clipboard
val maxZ: Int

the max z coordinate at which the merge occurs (see explanation above)

Link copied to clipboard
val minX: Int

the min x coordinate at which the merge occurs (see explanation above)

Link copied to clipboard
val minZ: Int

the min z coordinate at which the merge occurs (see explanation above)

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

the rotation of the loc, a value of 0 to 3 (inclusive) is expected.

Link copied to clipboard
val shape: Int

the shape of the loc, a value of 0 to 22 (inclusive) is expected.

Link copied to clipboard
val start: Int

the delay until the loc merging begins, in client cycles (20ms/cc).

Link copied to clipboard

the x coordinate of the loc 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 z coordinate of the loc 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