project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Feedback > Vehicles
17 Jun 2019, 00:00:00 (PRT)
Register Developer Blogs Project Reality Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 2019-05-23, 01:09   #1
FLAP_BRBGOING2MOON
Default Vehicles sliding

can we do something about sliding down gentle inclines when stopped? its really bad in wheeled vehicles.

Ingame name:FLAP.INCmoon
http://flapend.com/
FLAP_BRBGOING2MOON is offline Reply With Quote
Old 2019-05-23, 01:42   #2
[R-DEV]​Arab
PR:BF2 Developer
Supporting Member

Arab's Avatar
Default Re: Vehicles sliding

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:
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:
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] HandBrake Thread

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

Arab is offline
Last edited by Arab; 2019-05-23 at 03:45..
Reply With Quote
Old 2019-05-23, 04:28   #3
FLAP_BRBGOING2MOON
Default Re: Vehicles sliding

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.

Ingame name:FLAP.INCmoon
http://flapend.com/
FLAP_BRBGOING2MOON is offline Reply With Quote
Old 2019-05-23, 05:15   #4
[R-DEV]​Arab
PR:BF2 Developer
Supporting Member

Arab's Avatar
Default Re: Vehicles sliding

Quote:
Originally Posted by FLAP_BRBGOING2MOON View Post
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

Arab is offline Reply With Quote
Old 2019-05-24, 20:31   #5
FLAP_BRBGOING2MOON
Default Re: Vehicles sliding

thanks!

Edit: the VN-3 is pretty bad too.

Ingame name:FLAP.INCmoon
http://flapend.com/
FLAP_BRBGOING2MOON is offline
Last edited by FLAP_BRBGOING2MOON; 2019-05-25 at 17:27..
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 20:56.