DiSaMe Posted July 19, 2011 Share Posted July 19, 2011 I released 2 resources today and I don't think creating a separate topic for both of them is necessary ---------- Bone attachments ----------- Some people want to have function for attaching elements to player bones. getPedBonePosition doesn't return rotations. But it's not hard to get positions of three joins and calculate rotation using some simple calculations with matrices. If you're still to lazy, my resource can do that for you: https://community.multitheftauto.com/index.php?p= ... ls&id=2540 All you need to do is calling attachElementToBone to attach the element and detachElementFromBone to detach it. Look how well it works: .----------- Gravity gun ----------- Some people already know this because I made this a few months ago. I didn't feel like finishing and releasing it, but now I did. Download: https://community.multitheftauto.com/index.php?p= ... ls&id=2542 That old video: Link to comment
GTX Posted July 19, 2011 Share Posted July 19, 2011 Nice scripts, will you release Dragon ball style too? Link to comment
DiSaMe Posted July 19, 2011 Author Share Posted July 19, 2011 No, that one would need rescripting to work properly with multiple players. Link to comment
Xierra Posted July 20, 2011 Share Posted July 20, 2011 Wow, that's cool! Especially the gravity gun to play some HL2 goodness. I got an idea: If there is a "Gravity Gun" dff & txd, you can load it, then place it to your hands with bone attachments! I'll give it a shot and see if it's rocks. Link to comment
DiSaMe Posted July 21, 2011 Author Share Posted July 21, 2011 Resource updated. Added functions to check whether the element is attached, to get attachment details and to get bone position and rotation. The latter is useful if you, for example, want to create transformers without doing the stuff with trigonometry yourself 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