PDA

View Full Version : Tunnel portals


rdamurphy
07-03-2008, 05:09 AM
Does anyone know what those numbers in the SD file for tunnel portals do? I thought maybe they were a bounding box, or something, I copied the ones in one of the default tunnel portals (without turrets one), but I don't know if I need to do anything with them?

Robert

Hawk
07-03-2008, 06:24 AM
If you're talking about the 3 lines of ESD_Complex_Box, I would guess that's it's a combination of bounding box settings and the settings that makes the player duck into the cab when going through a tunnel.

Anyone else have more accurate knowledge?

rpicardi1
07-03-2008, 08:08 AM
The complex bounding boxes keeps smoke from going through the object and bounces it back down. It is also used in the default stone viaducts for the same purpose.

Hawk
07-03-2008, 08:24 AM
I forgot about that.

What about the code that ducks you back into the cab in a tunnel. Is that one of those 3 complex bounding boxes, or is that somewhere else?

rpicardi1
07-03-2008, 08:42 AM
What about the code that ducks you back into the cab in a tunnel.

Those may be a function of some interactive like a tunnel marker or tunnel sound region marker. They are not in the tunnel portal sd as far as I can tell. Anyhow, the newer bin patches now over rides those settings. External camera still follows the terrain and your head will bump the tunnel wall.

Hawk
07-03-2008, 08:56 AM
OK! Thanks Ron.

rdamurphy
07-03-2008, 09:50 AM
I believe the ducking your head back in is caused by the track section containing the word "tunnel" within the name. There are tunnel pieces in X-tracks that don't actually have sides for subways, etc, that have tunnel in the names for that purpose.

OK, so it's a compex bounding box. How do I figure out what the numbers should be, since my portal looks absolutely nothing like the one I used the sd file from?

Robert

inflammable
07-03-2008, 11:14 AM
Robert,

There are possibly two things that are being discussed here. I looked in the How To Write Shape Data Files.doc, which is in the Help folder of the CD. It talks about an ESD_Tunnel parameter, which defines the bounding box of a tunnel portal. It also talks about the ESD_Complex parameter, which allows you to define similar characteristics for other types of objects.

I suspect you are actually asking about the ESD_Tunnel information, and we all thought you were after the ESD_Complex information.

But at any rate, the help document discusses it alot, though I don't know if it is actually GOOD information.

James