Skip to content

Add support for other types of vehicle handling #415

Open
@ArranTuna

Description

@ArranTuna

Describe the solution you'd like

@Cazomino05 said:

Add support for vehicle handling of the following vehicle types:

  • Bike
  • Plane
  • Heli
  • Boat

Additional context

This requires a rewrite of the handling manager and handling data classes also it will need the additional data to be dumped for use by the server/client to an array like we have for vehicles.

CHandlingData struc ; (sizeof=0xC624)
00000000 field_0 dd ?
00000004 field_4 dd ?
00000008 field_8 dd ?
0000000C field_C dd ?
00000010 field_10 dd ?
00000014 vehicleHandling CHandlingVehicle 210 dup(?)
0000B7D4 bikeHandling CHandlingBike 13 dup(?) ; ñ½´ »«½ÒþÑ¡¿´ ¡Òª¡«® ßÔÓÒ¬ÔÒÓÙ ¿º ¿¡ñѬßá óÙþ¿ÔáÑÔß´ 162
0000BB14 flyingHandling CHandlingFlying 24 dup(?)
0000C354 boatHandling CHandlingBoat 12 dup(?)
0000C624 CHandlingData ends

CHandlingBike struc ; (sizeof=0x40)
00000000 index dd ? ; index ó ß»¿ß¬Ñ ¿¼Ñ¡
00000004 leanFwdCOM dd ?
00000008 leanFwdForce dd ?
0000000C leanBakCOM dd ?
00000010 leanBakForce dd ?
00000014 maxLean dd ?
00000018 fullAnimLean dd ?
0000001C desLean dd ?
00000020 speedSteer dd ?
00000024 slipSteer dd ?
00000028 noPlayerCOMz dd ?
0000002C wheelieAng dd ?
00000030 stoppieAng dd ?
00000034 wheelieSteer dd ?
00000038 wheelieStabMult dd ?
0000003C stoppieStabMult dd ?
00000040 CHandlingBike ends
00000040
00000000 ; ---------------------------------------------------------------------------
00000000
00000000 CHandlingFlying struc ; (sizeof=0x58)
00000000 index dd ?
00000004 thrust dd ?
00000008 thrustFallOff dd ?
0000000C yaw dd ?
00000010 yawStab dd ?
00000014 sideSlip dd ?
00000018 roll dd ?
0000001C rollStab dd ?
00000020 pitch dd ?
00000024 pitchStab dd ?
00000028 formLift dd ?
0000002C attackLift dd ?
00000030 gearUpR dd ?
00000034 gearDownL dd ?
00000038 windMult dd ?
0000003C moveRes dd ?
00000040 turnRes RwV3D ?
0000004C speedRes RwV3D ?
00000058 CHandlingFlying ends
00000058
00000000 ; ---------------------------------------------------------------------------
00000000
00000000 CHandlingBoat struc ; (sizeof=0x3C)
00000000 index dd ?
00000004 thrustY dd ?
00000008 thrustZ dd ?
0000000C thrustAppZ dd ?
00000010 aqPlaneForce dd ?
00000014 aqPlaneLimit dd ?
00000018 aqPlaneOffset dd ?
0000001C waveAudioMult dd ?
00000020 look_L_R_BehindCamHeight dd ?
00000024 moveRes RwV3D ?
00000030 turnRes RwV3D ?
0000003C CHandlingBoat ends

From https://bugs.mtasa.com/view.php?id=6094

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions