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
Clears any obj type customisations applied to wearpos.
Sets the name extras of this avatar, rendered when right-clicking users.
Resets our tracked version of the target's appearance, so it will be updated whenever someone else takes their index.
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.
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.
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 overhead icon over this avatar (e.g. prayer icons)
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.
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 text gender of this avatar.
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.