New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setModelWheelSize to set vehicle model wheel size #719

Open
Grafu opened this Issue Nov 27, 2018 · 2 comments

Comments

Projects
None yet
4 participants
@Grafu

Grafu commented Nov 27, 2018

Is your feature request related to a problem? Please describe.
I'm always frustrated when I'm replacing car models and the wheel size does not match the original model (wheels stick into the ground).

Describe the solution you'd like
I'd love MTA to have a function something like setModelWheelSize (or even setVehicleWheelSize) to set vehicle/model wheel sizes.

Describe alternatives you've considered
I do not see any alternatives for this, except matching custom model to original model considering wheel sizes. This is very frustrating and I run out of matching car slots fast. + They are not perfectly matched.

Additional context
Attaching googled memory address offsets for vehicle wheel sizes: https://pastebin.com/mt7eLw0Z
According to this source, wheel memory addresses have offset +1112 [Float] from vehicle pointer (ctrl + f Car Wheel Size). Considering this context...

+1108 [DWord] modding data as in garage info
+1112 [Float] Car Wheel Size from vehicle.ide
+1116 [DWord] Time left for car alarm to sound in ms
+1120 [DWord] Pointer to driver

...neighbour values of Car Wheel Size are DWords offset every 4 bytes. But Car Wheel Size is Float instead of DWord I guess it is 2 bytes and there are 2 wheel sizes (front and rear) in that position??

@Einheit-101

This comment has been minimized.

Einheit-101 commented Nov 28, 2018

@CodyJL

This comment has been minimized.

CodyJL commented Nov 28, 2018

This'd be perfect for the 'Vehicle streamer' system I'm planning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment