Player Avatar Extended Info
This data structure keeps track of all the extended info blocks for a given player avatar.
Parameters
the index of the avatar who owns this extended info block.
the filter responsible for ensuring the total packet size constraint is not broken in any way. If this filter does not conform to the contract correctly, crashes are likely to happen during encoding.
the list of client-specific writers & encoders of all extended info blocks. During caching procedure, all registered client buffers will be built concurrently among players.
the byte buffer allocator used to allocate buffers during the caching procedure. Any extended info block which is built on-demand is written directly into the main buffer.
the Huffman codec is used to compress public chat extended info blocks.
Constructors
Functions
Adds a headbar onto the avatar. If a headbar by the same id already exists, updates the status of the old one. Up to four distinct headbars can be rendered simultaneously.
Clears any obj type customisations applied to wearpos.
Forces a model refresh client-side even if the worn objects + base colour + gender have not changed. This is particularly important to enable when setting or clearing any obj type customisations, as those are not considered when calculating the hash code.
Sets the name extras of this avatar, rendered when right-clicking users.
Removes a headbar on this avatar by the id of id, if one renders.
Removes the oldest currently showing hitmark on this avatar, if one exists.
Clears any obj type customisations applied to wearpos.
Sets the body type of the character.
Sets the combat level of the avatar.
Sets an exact movement for this avatar. It should be noted that this is done in conjunction with actual movement, as the exact move extended info block is only responsible for visualizing precise movement, and will synchronize to the real coordinate once the exact movement has finished.
Sets the angle for this avatar to face.
Sets the face-locking onto the avatar with index index. If the target avatar is a player, add 0x10000 to the real index value (0-2048). If the target avatar is a NPC, set the index as it is. In order to stop facing an entity, set the index value to -1.
Forces a model refresh client-side even if the worn objects + base colour + gender have not changed. This is particularly important to enable when setting or clearing any obj type customisations, as those are not considered when calculating the hash code.
Sets an ident kit. Note that this function does not rely on wearpos values, as those range from 0 to 11. Ident kit values only range from 0 to 6, which would result in some wasted memory. A list of wearpos to ident kit can also be found in net.rsprot.protocol.common.game.outgoing.info.playerinfo.extendedinfo.Appearance.identKitSlotList
Sets the movement speed for this avatar. This move speed will be used whenever the player moves, unless a temporary move speed is utilized, which will take priority. The known values are:
Sets the name extras of this avatar, rendered when right-clicking users.
Sets the head models of an obj at wearpos wearpos.
Recolours part of an obj in the first slot (out of two).
Recolours part of an obj in the second slot (out of two).
Retextures part of an obj in the first slot (out of two).
Retextures part of an obj in the second slot (out of two).
Sets the worn models of an obj at wearpos wearpos.
Sets the overhead icon over this avatar (e.g. prayer icons)
Sets the pronoun of this avatar.
Sets the sequence for this avatar to play.
Sets the skill level of the avatar, seen when right-clicking players as "skill: value", instead of the usual combat level. Set to 0 to render combat level instead.
Sets the skull icon over this avatar.
Applies a tint over the non-textured parts of the character.
Sets the temporary movement speed for this avatar - this move speed will only apply for a single game cycle. The known values are:
Sets the pronoun of this avatar.
Transforms this avatar to the respective NPC, or back to player if the id is -1.
Applies a tint over the non-textured parts of the character.
Transforms this avatar to the respective NPC, or back to player if the id is -1.