multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.4k stars 435 forks source link

Making middle wheels independant from rear wheels #1438

Open tut001 opened 4 years ago

tut001 commented 4 years ago

Is your feature request related to a problem? Please describe. In GTA/MTA, all wheels have option to have 6 wheels, which is seen on trucks with middle wheels. These middle wheels use collisions of the rear wheels instead of having their own. This makes it harder to maintain traction for longer vehicles as you only have 4 colliding wheels.

Describe the solution you'd like Make middle wheels independant from the rear wheel collisions.

Describe alternatives you've considered None (not a programmer).

Additional context Dummy names are wheel_lm, wheel_rm.

Einheit-101 commented 4 years ago

So the middle wheels have no collision at all?

tut001 commented 4 years ago

So the middle wheels have no collision at all?

Middle wheels hitbox is shared with rear wheels, so if you shoot either of them, then both middle and rear will blow.

Einheit-101 commented 4 years ago

And do you know why i have middle wheel in my 3D models, but the wheels are not showing in game at all?

Do only special hardcoded vehicles have 6 wheels? Or can they be added to, say, a Banshee or Admiral?

tut001 commented 4 years ago

And do you know why i have middle wheel in my 3D models, but the wheels are not showing in game at all?

Do only special hardcoded vehicles have 6 wheels? Or can they be added to, say, a Banshee or Admiral?

I tried adding 6 wheels to copcarvg (598) and it works fine. I'm not sure why you're encountering issues. I can take a look if you want to send over the model. :+1:

Pirulax commented 4 years ago

In GTA(and in MTA code as well) only 4 wheels exist. If there's more it must be a copy of an existing one.