Hmm, and I suppose a boat would be running over zombies on the bridge as well, which is not desirable.
A bit of code to differentiate between a boat driving underneath and a car over it would also need to handle zombies trying to attack the boat as it passes under, for example. Can they do that? can they jump on top of the boat?
There’s two ways I can see this being solved:
- a lot of coded exeptions to make it behave correctly.
- z-levels, either by effectively treating one or the other to be at a different z-level, or by just shoving bridges up 1 z-level and adding ‘ramps’ that allow vehicles to be driven a z-level up or down (which, incidentally, would allow for underground parking garages and multi-level parking lots).
The second option isn’t too different from being able to teleport the vehicle from one side of the bridge to the other, after all, it effectively does the same just on land. You still have to deal with making sure the vehicle fits and handling any collisions after teleporting, be it with terrain or critters.
I like it more than the bridge teleport option tho, since it allows quite a few nifty things, like the aforementioned underground parking, as well as fulfilling a request I’ve seen rolled around from time to time for the ability to move cargo between z-levels, not just by dragging/driving the cargo up the ramp, but once you have the code to teleport vehicles, implementing an elevator is not too far behind if you handle it like one.
You could also swim under bridges, or create ‘pillars’ for the bridge, or creating stairs to get up on the bridge from said pillar, even build your own dock right there under the bridge.
That’s a viable abstraction to grabbing some stairs or rope to climb up the bridge tho. Which, granted, could be handled better. I think the ‘driving over fish’ and ‘boating over zombies’ issues are more problematic.