Herr Otto Partz says you're all nothing but pipsqueaks!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: Cas on August 20, 2024, 03:45:09 PMUhm... there are many ways in which we can imagine this, how real it could be. First, let's get to the most achievable. Say we modify existing track element graphics to incorporate terrain elements instead. The physics would remain those of the original elements we've removed, but otherwise, they'd be visible just like terrain elements. You would be able to combine them with other terrain elements, such as placing a hill on top of a hill or on top of water. Even water on top of a hill. Of course, this would be entirely visual. One step beyond, we can imagine extending the list instead of replacing elements if we can find where this is hard-coded. This would require us to specify which physics model will be assigned. We'd have to copy that of one of the existing track elements.
Doing it the other way would be analogous. If replacing an existing, say, hillside terrain element, on placing a road on whatever track element we had placed there, Stunts would try to combine them and would render the road-on-a-slope sprite instead. There's a translation function somewhere in the code that tells you what you obtain when you place something on a hillside.
If we could actually get to modify the physics model of track/terrain elements, then it's not clear what would happen with combined track+terrain elements. My guess is that track elements on top of hills would act the same as on the ground, just higher, but combined elements on hillside blocks would try to find the corresponding translation. If the combination is not specified, you'd get an empty block that would have the physics of.... I don't know. I think probably the physics of the track element when placed on the ground.