CitiesSkylinesMods / TMPE

Cities: Skylines Traffic Manager: President Edition
https://steamcommunity.com/sharedfiles/filedetails/?id=1637663252
MIT License
563 stars 85 forks source link

Tram stops #1193

Open hitzu111 opened 2 years ago

hitzu111 commented 2 years ago

Add special behaviour for traffic to stop in front of the tram stops without dedicated pedestrian islands

When the tram stops at the stop, all the vehicles heading in the same direction should stop before the stop and give a way for passengers.

Screenshots

The van should've stopped before the red line

Screenshot_573

Notes or questions?

kianzarrin commented 2 years ago

I'd be impressed if vehicles stopped at pedestrian crossings let alone this. At least they slow down (unlike Iran where vehicles charge at you to scare you off!)

hitzu111 commented 2 years ago

Maybe clever dummy traffic light could work?

krzychu124 commented 2 years ago

I doubt, traffic light requires a node, so at the end it won't look like on screenshot and you can't steer traffic light via external trigger like tram stop or something

hitzu111 commented 2 years ago

I doubt, traffic light requires a node, so at the end it won't look like on screenshot and you can't steer traffic light via external trigger like tram stop or something

I mean I would not care if it's gonna require an extra node for the traffic light. There are just not enough options in TTL to set this correctly.

BuiIdTheBuilder commented 2 years ago

These tram stops are common where I live in Russia. I'd really like to see these in C:S. In my opinion, the easiest way to implement this would be to stop traffic when the tram stops.

originalfoo commented 2 years ago

Could tram create a ghost vehicles in applicable road lanes (between tram lane and sidewalk) when the tram enters a segment where it expects to stop? Other vehicles would then stop and queue behind the ghost vehicle. Ghost vehicle would despawn when tram leaves stop/segment (of if tram despawns for any reason).

Note: I've never used middle of road tram stops in game; do the cims wait on outer pavement until tram stops and then walk in to road, or are they already waiting in middle of road beore tram arrives? If the former, we could do the ghost vehicle first, wait a few frames, then allow cims to enter road to reach tram.

originalfoo commented 2 years ago

Another option would be set "blocked" flag (used to make vehicles avoid roads with burning/collapsed buildings, or flooded, etc) on the segment, although that would likey cause traffic pathed through that segment to reroute.

BuiIdTheBuilder commented 2 years ago

Could tram create a ghost vehicles in applicable road lanes (between tram lane and sidewalk) when the tram enters a segment where it expects to stop? Other vehicles would then stop and queue behind the ghost vehicle. Ghost vehicle would despawn when tram leaves stop/segment (of if tram despawns for any reason).

Note: I've never used middle of road tram stops in game; do the cims wait on outer pavement until tram stops and then walk in to road, or are they already waiting in middle of road beore tram arrives? If the former, we could do the ghost vehicle first, wait a few frames, then allow cims to enter road to reach tram.

With the vanilla 4-lane road with tram tracks, cims just cross the road at the closest junction and walk along the tram tracks to the stop.