Page 1 of 1

Vehicles sliding

Posted: 2019-05-23 01:09
by FLAP_BRBGOING2MOON
can we do something about sliding down gentle inclines when stopped? its really bad in wheeled vehicles.

Re: Vehicles sliding

Posted: 2019-05-23 01:42
by Arab
Thanks for the report!

Just to know which vehicles are doing it to compare the code, which vehicle currently does this?

[R-DEV]Alon discovered a while back that there's a component in the engine called Sleepiness which decides how much time to wait when a physics object is very slow until it "freezes" it in place.

The memory locations are known, but it's a matter of figuring out the value, and the method of patching them with a lower value for PCO's (Player Control Objects) and testing to make sure it has no side-effects.

Though initially, my suspicion is that it's either these two values being too low:

Code: Select all

ObjectTemplate.newCar2.brakeTorque 2500
ObjectTemplate.newCar2.engineBrakeTorque 2000
(Values found in some jeeps)

Might be the engineBrakeTorque being set too low which results in it sliding.
For example, civ_jep_technical (+ all color variants)

Code: Select all

ObjectTemplate.newCar2.brakeTorque 2000
ObjectTemplate.newCar2.engineBrakeTorque 750
Testing this on Kashan with a Hmmwv and a Technical, the Technical slides further due to the engineBrakeTorque being too low, while the Hmmwv with a value of 2000 doesn't slide as much when on an incline.

Also there's a Handbrake solution posted way back that I'll have a look at if a fix to the brake physics isn't found:

Code: Select all

 HandBrake Thread[/url]

Edit: Increasing engineBrakeTorque reduces the slide distance, but the handbrake code doesn't seem to do anything permanent.

Re: Vehicles sliding

Posted: 2019-05-23 04:28
by FLAP_BRBGOING2MOON
its really the technicals that give me issues, especially since they have terrible gun depression you need to be angled down on a hill and you just slide all over the place.

Re: Vehicles sliding

Posted: 2019-05-23 05:15
by Arab
FLAP_BRBGOING2MOON wrote:its really the technicals that give me issues, especially since they have terrible gun depression you need to be angled down on a hill and you just slide all over the place.
Thx, added issue to project tracker to fix for v1.6

Re: Vehicles sliding

Posted: 2019-05-24 20:31
by FLAP_BRBGOING2MOON
thanks!

Edit: the VN-3 is pretty bad too.