Jump to content

Search the Community

Showing results for tags 'Attachment'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RAGE Multiplayer
    • Announcements
    • Discussion
    • Suggestions
  • Scripting
    • Scripting
    • Resources
  • Community
    • Support
    • Servers
    • Media Gallery
  • Non-English
    • Русский - Russian
    • Français - French
    • Deutsch - German
    • Espanol - Spanish
    • Română - Romanian
    • Portuguesa - Portuguese
    • Polski - Polish

Categories

  • Scripts
  • Gamemodes
  • Libraries
  • Plugins
  • Maps
  • Tools

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Facebook


Youtube


Skype


Web


VK

Found 2 results

  1. Hi, I've downloaded the C# 1.1 Attachment Sync but it doesn't work for me as I don't see the object on myself nor on other players when I/they try the /soda command. mapObject returns the correct .Model number, but on using .Exists it returns false. Console logs server: [COMMAND] Machiavelli: /soda current attachments: 337428855 Clientside Changes: private void EntityStreamIn(RAGE.Elements.Entity entity) { var attachments = entity.GetData<List<uint>>("Attachments"); if (attachments != null) { foreach (var key in attachments) { AttachObject(entity, key); } } } private void AttachObject(RAGE.Elements.Entity entity, uint key) { var entityObjects = entity.GetData<Dictionary<uint, MapObject>>("Objects"); if (AttachmentDictionary.ContainsKey(key) && !entityObjects.ContainsKey(key)) { var entityAttachment = AttachmentDictionary[key]; var mapObject = new MapObject(entityAttachment.Model, new Vector3(0, 0, 0), new Vector3(0, 0, 0)) { Dimension = uint.MaxValue }; mapObject.NotifyStreaming = true; // <----------------------------------------- added Chat.Output("attach model: " + entityAttachment.Model); //result: attach model: 114933932 --> (same result for mapObject.Model) var gameEntity = entity.GetGameEntity(); Entity.AttachEntityToEntity(mapObject.Handle, gameEntity.Handle, RAGE.Game.Ped.GetPedBoneIndex(gameEntity.Handle, entityAttachment.BoneId), entityAttachment.Offset.X, entityAttachment.Offset.Y, entityAttachment.Offset.Z, entityAttachment.Rotation.X, entityAttachment.Rotation.Y, entityAttachment.Rotation.Z, false, false, false, false, 2, true); if (Entity.IsEntityAttachedToEntity(mapObject.Handle, gameEntity.Handle)) { OnEntityAttachedEvent?.Invoke(gameEntity, entityAttachment.AttachmentEvent); } entityObjects.Add(key, mapObject); entity.SetData("Objects", entityObjects); } } Can anybody tell me what exactly I need to change and where I have to change it? Like, how do you check if it's streamed/loaded in or not? Might have to change more code in the other files too.
  2. Version 1.0.0

    471 downloads

    Source code : https://github.com/J4YT/RAGE-Multiplayer-Attachment-Sync C# Attachment sync for RAGE Multiplayer Server and Client. Equivalent for the Efficient Attachment System made by ragempdev and rootcause https://rage.mp/files/file/144-efficient-attachment-sync Credits to DasNiels for the server-side Efficient Attachment Sync C# https://github.com/DasNiels/EfficientAttachmentSyncCSharp It has only been tested on RAGE Multiplayer 1.1
×
×
  • Create New...