Moderators Popular Post Patrick Posted January 15, 2021 Moderators Popular Post Share Posted January 15, 2021 pAttach Optimized bone attach thanks to the new MTA functions/events. This resource doesn't match with well known bone_attach, you can not use the same parameters! Documentation moved to GitHub! Go to GitHub... 13 4 Link to comment
Danihe Posted January 16, 2021 Share Posted January 16, 2021 Very nice, i will try this 1 Link to comment
Tekken Posted January 16, 2021 Share Posted January 16, 2021 I have already done it, with server synchronization you may check the difference performance wise, see my signature, got released not so long ago. Link to comment
Moderators Patrick Posted January 17, 2021 Author Moderators Share Posted January 17, 2021 19 hours ago, Tekken said: I have already done it, with server synchronization you may check the difference performance wise, see my signature, got released not so long ago. Sure, I ran again every tests with yours. Link to comment
Santi Posted January 20, 2021 Share Posted January 20, 2021 (edited) I'm using it but the objects are becoming invisible or coming out of the bone. Edit: The server has more than 200 players. Then the objects leave the bone without explanation. Edited January 20, 2021 by Santi plus Link to comment
Moderators Patrick Posted January 21, 2021 Author Moderators Share Posted January 21, 2021 19 hours ago, Santi said: I'm using it but the objects are becoming invisible or coming out of the bone. Edit: The server has more than 200 players. Then the objects leave the bone without explanation. Thanks for the report, I'll check it out. Can you tell me more info about how you use it? How attach/deatach it to player, and when? 1 Link to comment
MTA Anti-Cheat Team Dutchman101 Posted January 22, 2021 MTA Anti-Cheat Team Share Posted January 22, 2021 It would be interesting to see a performance comparison between this and attachToBones (just like this, another recent "bone_attach" replacement by @Tekken) 1 Link to comment
Moderators Patrick Posted January 22, 2021 Author Moderators Share Posted January 22, 2021 10 hours ago, Dutchman101 said: It would be interesting to see a performance comparison between this and attachToBones (just like this, another recent "bone_attach" replacement by @Tekken) Sorry for late response, I rewrote most of code, I'm using new table structure, and I fixed bug what Santi reported before (I hope). I ran all tests again with the latest versions of resources, you can find new results in updated Performance Comparison table. Link to comment
Tekken Posted January 23, 2021 Share Posted January 23, 2021 (edited) Hmm is this normal? I'll do some more tests, and come back with the results. Also aren't you using the exact same positioning from https://wiki.multitheftauto.com/wiki/AttachElementToBone ? Edited January 23, 2021 by Tekken - Link to comment
Moderators Patrick Posted January 23, 2021 Author Moderators Share Posted January 23, 2021 4 minutes ago, Tekken said: Also aren't you using the exact same positioning from https://wiki.multitheftauto.com/wiki/AttachElementToBone ? Yeah, I modified it. Link to comment
Tekken Posted January 23, 2021 Share Posted January 23, 2021 hmm, so is it normal? also the helmet seems to disappear somehow as in script I don't change it's positions at any time unless I change skin. Link to comment
Moderators Patrick Posted January 23, 2021 Author Moderators Share Posted January 23, 2021 5 minutes ago, Tekken said: hmm, so is it normal? also the helmet seems to disappear somehow as in script I don't change it's positions at any time unless I change skin. Of couse it's not normal, but are you sure it is pAttach's fault? I didn't experience similar bug. Link to comment
Tekken Posted January 23, 2021 Share Posted January 23, 2021 (edited) Well I'm just using the resource as is, ~0.5% CPU with 4 objects Simply removed mine and added yours, replaced the function names, also I attach server side if that helps. re-downloaded latest version to be sure, the same effect. Edited January 23, 2021 by Tekken wrong cpu usage Link to comment
Moderators Patrick Posted January 23, 2021 Author Moderators Share Posted January 23, 2021 1 hour ago, Tekken said: Well I'm just using the resource as is, ~0.5% CPU with 4 objects Simply removed mine and added yours, replaced the function names, also I attach server side if that helps. re-downloaded latest version to be sure, the same effect. Probably fixed, can you test with latest version please? Link to comment
Tekken Posted January 24, 2021 Share Posted January 24, 2021 Can’t test right now but I think it’s fixed, also may I know what have you changed to have those positions? Also why? Link to comment
Tekken Posted January 24, 2021 Share Posted January 24, 2021 Yes it is fixed! Thanks. 1 hour ago, Tekken said: may I know what have you changed to have those positions? NVM found, was that meant to reproduce bone_attach positions? 1 Link to comment
Platin Posted January 24, 2021 Share Posted January 24, 2021 Good job Patrick, this resource will hopefully help a lot of new scripters. I had found a problem tho, this resource won't note changes between interiores (i suppose thats because there isnt and event called "onClientElementInteriorChange") and the object will be left behind in the other interior, even when the dimensions change. It would be nice if you could address this issue. Thank you! Link to comment
Moderators Patrick Posted January 24, 2021 Author Moderators Share Posted January 24, 2021 33 minutes ago, Tekken said: NVM found, was that meant to reproduce bone_attach positions? No, just works more like attachElements. 12 minutes ago, Platin - xNikoXD said: Good job Patrick, this resource will hopefully help a lot of new scripters. I had found a problem tho, this resource won't note changes between interiores (i suppose thats because there isnt and event called "onClientElementInteriorChange") and the object will be left behind in the other interior, even when the dimensions change. It would be nice if you could address this issue. Thank you! Yeah, I know. Because there is no event for that. But dimension change should work. Link to comment
cocowen Posted January 25, 2021 Share Posted January 25, 2021 tekken and yours which should i begin to use Link to comment
Moderators Patrick Posted January 25, 2021 Author Moderators Share Posted January 25, 2021 1 hour ago, cocowen said: tekken and yours which should i begin to use Whichever you want. 1 Link to comment
Tekken Posted January 25, 2021 Share Posted January 25, 2021 You should be using this one as it gives 10 to 15 % better performance! 1 Link to comment
Moderators Patrick Posted April 7, 2021 Author Moderators Share Posted April 7, 2021 pAttach v1.1.3 Moved to GitHub: https://github.com/Patrick2562/mtasa-pAttach Download: https://github.com/Patrick2562/mtasa-pAttach/releases/tag/v1.1.3 - Added interior change event. - Added update checker. 2 Link to comment
cocowen Posted April 19, 2021 Share Posted April 19, 2021 most function is shared whats the different from using function from client or server , do it same ? or client just work for local player Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now