Jump to content

My 2 resources | Bone attachments | Gravity gun


DiSaMe

Recommended Posts

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

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

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 :wink:

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...