ZhooL / FS22_EnhancedVehicle

FS22. Farming Simulator 22. LS22. Landwirtschafts Simulator 22. Track assistant, parking brake, differential locks, wheel drive modes and better hydraulics controls for your vehicle. Shows more vehicle details on HUD.
218 stars 41 forks source link

Working Width #100

Closed Jayshua83 closed 2 years ago

Jayshua83 commented 2 years ago

Where does Enhanced Vehicle calculate Working Width from?

I have several mods where I have to manually set up the WW in EV because they come up incorrectly, but if I know where it calculates it based on I might be able to edit the xml and set the WW correctly?

ZhooL commented 2 years ago

Hi, the WW is calculated by difference between the left & right AI Markers. If no AI Markers are present (which should be; otherwise the AI could not properly use the attachment) I try to calculate the WW using the sizes of the workareas. Code for that is starting around line 2190 in FS22_EnhancedVehicle.lua