The International Simutrans Forum

 

Author Topic: Smooth overtaking patch  (Read 2829 times)

0 Members and 1 Guest are viewing this topic.

Offline isidoro

  • Devotee
  • *
  • Posts: 1140
Smooth overtaking patch
« on: January 09, 2012, 06:29:36 PM »
Here is a very simple smooth overtaking patch.  It is not a full version, it is only to be able to see how it looks like.  So, only convoys end overtaking smoothly.

You can also see a video with one example.  In it, a more modern bus overtakes an old carriage.  The start is like present behavior, the end is smooth.  Only the last half of the tile is used to smooth the overtaking but that can be easily changed...

This is the video (zip compressed): http://simutrans-germany.com/files/upload/smoothoveravi.zip


Offline TurfIt

  • Dev Team, Coder/patcher
  • Devotee
  • *
  • Posts: 1434
Re: Smooth overtaking patch
« Reply #1 on: January 09, 2012, 07:13:11 PM »
Nice idea. But, I presume you didn't try using vehicles with trailers? The effect is rather interesting.  ;)


Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10636
  • Languages: De,EN,JP
Re: Smooth overtaking patch
« Reply #2 on: January 09, 2012, 08:13:54 PM »
All following cars in a convoi could query the first steps of the first vehicle of a convoi.

Offline isidoro

  • Devotee
  • *
  • Posts: 1140
Re: Smooth overtaking patch
« Reply #3 on: January 09, 2012, 11:06:26 PM »
@TurfIt:  Yes.  It is not a working patch, as I said previously.  Replace, as prissi says, the values of steps and steps_next of the vehicle with the corresponding values of the first vehicle of the convoy, if you want to check those.  It is easy, since you have the cnv pointer.