Jump to content

Determining which part is being shot?


DazzaJay

Recommended Posts

Posted

If you mean onClientPlayerWeaponFire then you will just get the coords (world x, y and z) and the element that client hit (not exact part of it).

Posted

Well, you could use maths to calculate what part of the vehicle was hit, but most of the vehicles have different shape, so every vehicle would have to be calculated with different values. You don't want to make ~200 functions or a table which would hold all the vehicles' size, do you? And in addition, vehicle's collision is simplified to take less memory and faster rendering so it wouldn't be accurate anyway.

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...