mirror of
https://github.com/luanti-org/luanti.git
synced 2025-12-14 19:18:29 +01:00
Add First Person Attachments (#10360)
Fixes some other third person camera specific attachments. Implements a single new flag for entities to be forced visible in first person mode. Old mods do not need to be updated to use the new flag and are fully backwards compatible.
This commit is contained in:
@@ -238,9 +238,9 @@ std::string LuaEntitySAO::getClientInitializationData(u16 protocol_version)
|
||||
msg_os << serializeString32(generateUpdateAnimationCommand()); // 3
|
||||
for (const auto &bone_pos : m_bone_position) {
|
||||
msg_os << serializeString32(generateUpdateBonePositionCommand(
|
||||
bone_pos.first, bone_pos.second.X, bone_pos.second.Y)); // m_bone_position.size
|
||||
bone_pos.first, bone_pos.second.X, bone_pos.second.Y)); // 3 + N
|
||||
}
|
||||
msg_os << serializeString32(generateUpdateAttachmentCommand()); // 4
|
||||
msg_os << serializeString32(generateUpdateAttachmentCommand()); // 4 + m_bone_position.size
|
||||
|
||||
int message_count = 4 + m_bone_position.size();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user