Edit handling on vehicle mods?
-
the title says it all, I downloaded this car mod: https://www.gta5-mods.com/vehicles/vapid-stanier-off-road-add-on-replace-tuning-liveries and it works perfectly fine however the car flips violently when steering.
and the downside is there is no handling.meta inside dlc.rpf, can someone help me how to edit handling on this vehicle? any answers would be appreciated : )
-
if you look in the vehicles.meta you will see that it borrows handling from one of the SUVs (I forget which one) and the centre of mass is all out of whack, especially if you are using Eddlms handling overhaul. You can add your own handling.meta and add it to the content.xml file, look at other mods with custom handling to see how it is done.
-
@Darkwolf_26
It uses the default 'RANCHERXL' handling in the main 'update.rpf' 'handling.meta':...\mods\update\update.rpf\common\data\handling.meta
stanier5 vehicles.meta:
<handlingId>RANCHERXL</handlingId>
To fix the flipping over, in handling.meta lower the 'z' value in the '<vecCentreOfMassOffset' line (can be negative if required):
<Item type="CHandlingData"> <handlingName>RANCHERXL</handlingName> <fMass value="2400.000000" /> <fInitialDragCoeff value="8.500000" /> <fPercentSubmerged value="85.000000" /> <vecCentreOfMassOffset x="0.000000" y="0.050000" z="***lower this value***" />
How much you lower it by all depends on the model, try dropping it by 0.5 again & again until the flipping over goes away & then tweak (up or down) with smaller values untill you find the perfect setting. Generally, the best setting is usually somewhere just below the point where the vehicle flips over.
If you want, you can edit the stanier5 to use it's own handling data:
If you have issues editing the 'RANCHERXL' handling directly (RancherXL hugs the ground too much after lowering '<vecCentreOfMassOffset' 'z' value for example), make a duplicate copy of the 'RANCHERXL' handling block (paste it in under the original) & then rename it to a unique name used nowhere else in the game & then rename the stanier5's 'vehicles.meta' '<handlingId>' line to the same:Example:
vehicles.meta:
<handlingId>STANIER5</handlingId>
handling.meta:
<Item type="CHandlingData"> <handlingName>STANIER5</handlingName> <fMass value="2400.000000" /> <fInitialDragCoeff value="8.500000" /> <fPercentSubmerged value="85.000000" /> <vecCentreOfMassOffset x="0.000000" y="0.050000" z="-0.500000" />
The stanier5 will then use, in this case, the 'STANIER5' handling data instead, which in turn can be edited to any values you want without affecting any other vehicle.
Alternatively, as @ItsJustCurtis suggests, you can use 'content.xml' to add a 'handling.meta' to the stanier5 'dlc.rpf' itself.Note:
If you fix the off road stanier5 flipping over without having to use exteme values, you probably don't need to worry about separating the RancherXL & stanier5 handling data. The RancherXL will be more stable & hug the ground a bit more, but probably handle somewhat the same. I just included that part in case you ran into problems with the RancherXL, or are very particular about your handling setups etc.