Originally Posted by propbeanie
As an example, open that ship's zon file, and then from the upper-right menu, open its dat file. Click on one of the ship's 3D named nodes, and then click on the "Model Preview" link in the lower part of the right window. Now click on the sixth icon from the left, above that preview window, the icon with the "Toggle zones editor" tooltip. Notice that the node you selected will show its "collision" spheres. The "F" section will have all spheres associated with it, the "B" section all that are associated with it, and the "Cabina" nodes, or the "Catarg" nodes might all have spheres associated with them also. Those are what determine if a collision has occurred. Working in conjunction with those, are the boxes. Those are of varying "types", such as "48" or "46" or "74", or whatever. If you then open the Zones.cfg file in the Data folder, you will find like-numbered entries there. 46=FloodFrontb, 48=FloodFrontf and 74=ShipBubbles (etc.) that are listed in the Zones List (index or TOC) near the top of the file. Below, you will find those names used as "headers" for those boxes you see inside the ship. Some do not have an "Effect" line, while others have multiple effects associated. Those "Effect" lines are what determines what happens with a "collision", and what effect is called.
If you shoot a torpedo, and it hits in a location that does not have an underlying effect, you won't see anything other than the torpedo explosion (and maybe an associate ship-damage decal). But damage is usually incurred by the ship... The torpedo sim file is what controls the "torpedo explosion" (which is what your picture shows), and those are called by ID numbers, such as 0xe37ec3e300ec4ba5, which is a water explosion. Trace that number, and you end up with the "@ref_torp_great_explosion" in the "particles.dat" file... you might notice that there are seven sections to that particular "explosion" effect, and each has a ParticleGenerator, each configured differently for the various aspects of the effect...
There is much more involved in this, and almost all of it beyond what my feeble brain can comprehend...
|