How to change swerve direction when tire shot/blown?
-
So in reality, if a moving vehicle's tire blown out, the vehicle starts swerving to the direction of which tire has blown. Like front left tire blown, vehicle starts moving to left. However in awkward as always gta logic, this physics rule is reversed and shooting left tire causing vehicle to swerving towards right...
Anywho so is it possible to change that direction to make the vehicles swerve at correct direction?
-
@Aurora11
I'm not sure you can (without the use of a script anyway), but maybe play with some of these values & figure out exactly what they do (only thing I could find on tires being shot):vehicleaitasks.ymt:
...\mods\update\update.rpf\x64\data\tune\vehicleaitasks.ymt
<Item type="CTaskVehicleShotTire__Tunables"> <Name>CTaskVehicleShotTire</Name> <MaxTimeInSwerve value="1.50000000"/> <MinSpeedInSwerve value="0.10000000"/> <MinSpeedToApplyTorque value="20.00000000"/> <MaxDotToApplyTorque value="0.85000000"/> <TorqueMultiplier value="1.00000000"/> </Item>
Can't see a way to use file edits to identify left or right tire shot, but you might be able to take some of the values from 'ctaskvehicledeaddriver' (also in vehicleaitasks.ymt):
<Item type="CTaskVehicleDeadDriver__Tunables"> <Name>ctaskvehicledeaddriver</Name> <SwerveTime value="8.0" /> <SteerAngleControl>SAC_Randomize</SteerAngleControl> <!-- randomize left & right --> <MinSteerAngle value="-0.5" /> <MaxSteerAngle value="0.5" /> <ThrottleControl>TC_Randomize</ThrottleControl> <MinThrottle value="0.1" /> <MaxThrottle value="1.0" /> <BrakeControl>BC_Randomize</BrakeControl> <MinBrake value="0.0" /> <MaxBrake value="0.095" /> <HandBrakeControl>HBC_Retain</HandBrakeControl> </Item>
& apply them to 'CTaskVehicleShotTire' to at least randomize the occurrence of whether the vehicle turns left or right. That might work.
Example:
<Item type="CTaskVehicleShotTire__Tunables"> <Name>CTaskVehicleShotTire</Name> <MaxTimeInSwerve value="1.50000000"/> <MinSpeedInSwerve value="0.10000000"/> <MinSpeedToApplyTorque value="20.00000000"/> <MaxDotToApplyTorque value="0.85000000"/> <TorqueMultiplier value="1.00000000"/> <SteerAngleControl>SAC_Randomize</SteerAngleControl> <!-- randomize left & right added here with min/max values below --> <MinSteerAngle value="-0.5" /> <MaxSteerAngle value="0.5" /> </Item>