Handling Replacement (Library)

Rate:
Downloads: 4
Views: 573
Comments: 0
Category: Tools
Upload by: ikt

Description

Handling Replacement is a library/tool for script developers, to manage vehicle handling changes in non-intrusive way. It clones the handling of a vehicle, and assign the copy to the vehicle, so only that vehicle is affected by changes to its handling data.



This is useful for scripts that want to continuously vary certain handling parameters, without affecting other instances of that vehicle model.



An example is my variable drive bias, which changes fDriveBiasFront constantly.



Installation

Grand Theft Auto V (v1868+) required.

Extract HandlingReplacement.asi to GTA V's main folder.



Development

Check HandlingReplacement.h on the repository for the three functions. The asi loader should already have loaded and initialized things, so one can just start using it right away.



An usage example can also be found there.



GitHub repository



If you have any questions, hop on my Discord server.



Compatibility

  • Changes made to the original CHandlingData instance activation on a vehicle, will not be applied to that vehicle any more
  • Changes made to the CHandlingData from the vehicle instance itself, will apply normally. These changes do not propagate to the original CHandlingData instance.
  • As with the default method of directly changing handling data, other scripts can interfere when multiple scripts are setting the same fields.
  • No CHandlingData is provided, use your own one.




The following list shows scripts currently using this library and what fields they access. Please let me know when you want to use the library, I'll update the list so you know what fields might be affected.



  • Manual Transmission - (5.0.0)

    • fDriveBias - constantly written to when variable AWD is enabled


  • (Your script) - (Starting version using it)

    • (CHandlingData field) - set constantly, periodically, occasionally






Acknowledgements

FiveM - On some bits on how to properly replace/clone subhandlingdata, and the rage alloc/free.
Show Full Description
View topic on GTA5-Mods.com Forums »

Tags

Rating

0
5
4
3
2
1
Your rate

Write comment:

Please enter review or comment.
Please choose a name.
Email invalid.